The logos & websocket host server can be changed depending on the URL used to access the site. This includes the logo at the top of the app, the login dialogue box, and about box.
Two logo files are required.
<mycompany>Logo35.png (155 x 35px)
<mycompany>LogoLarge.png (around 250 x 56px)
The branding settings are changed in the following file:
./branding/branding.php
- <?php
- function readAlertFile($brandingpath) {
- $alertFile = $brandingpath."/about.html";
- return $alertText;
- }
- function readLoginFile($brandingpath) {
- $loginFile = $brandingpath."/login.html";
- return $loginText;
- }
-
- switch ($_SERVER["HTTP_HOST"])
- {
- case "map.mytrackingcompany.com":
- default:
- $websocketURL = "ws://myserver.net:1400/websocket";
- $brandingpath = "branding/mytrackingcompany/";
- $prefix = "MyTrackingCo";
- $brandingLogoURL = "http://www.mytrackingcompany.com";
- $brandingDefaultTheme = "";
- break;
- }
-
- $brandingLogoImg = $brandingpath.$prefix."Logo35.png";
- $brandingDialogImg = $brandingpath.$prefix."LogoLarge.png";
- $brandingAboutDialog = readAlertFile($brandingpath);
- $brandingLoginDialog = readLoginFile($brandingpath);
- ?>