Global Parameters

From Pengower
Jump to: navigation, search

Global Parameters

Specifying the Postcode Database

Pengower.Common.GlobalData.setPostcodeDbStoreType(Pengower.Common.StoreType.MYSQL); Pengower.Common.GlobalData.PostCodeDb = "PostcodeDbName"; Pengower.Common.GlobalData.PostCodeHost = "192.x.x.x"; Pengower.Common.GlobalData.PostCodeUser = "username"; Pengower.Common.GlobalData.PostCodePwd = "password";

Specifying the Mapping Key (Interactive Maps)

Pengower.Common.GlobalData.MappingKey = "[mapbox-accountname].[key]"; Specifying the History Database Pengower.Common.GlobalData.HistoryHost = "192.x.x.x"; Pengower.Common.GlobalData.HistoryDb = "HistoryDbName"; Pengower.Common.GlobalData.HistoryUser = "username"; Pengower.Common.GlobalData.HistoryPwd = "password";

Login Attempts can now be set in the global.

Pengower.Common.GlobalData.LoginAttempts = 10;

Set Permitted File Extensions

Pengower.Common.GlobalData.setPermittedFileExtensions("doc,docx,xls,xlsx, pdf,odt,ppt,pptx,jpg,jpeg,bmp,tif,gif,png,mp3,mp4,csv,txt,rtf");