Changeset 3 for trunk/Application/Core.php
- Timestamp:
- Sep 8, 2016, 11:03:23 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Core.php
r1 r3 30 30 $this->ShowPage = true; 31 31 $this->BaseURL = $_SERVER['SCRIPT_NAME']; 32 if(substr($this->BaseURL, -10, 10) == '/index.php') 33 $this->BaseURL = substr($this->BaseURL, 0, -10); 32 $BaseScriptName = '/index.php'; 33 if(substr($this->BaseURL, -strlen($BaseScriptName), strlen($BaseScriptName)) == $BaseScriptName) 34 $this->BaseURL = substr($this->BaseURL, 0, -strlen($BaseScriptName)); 34 35 $this->FormManager = new FormManager($this->Database); 35 36 } … … 62 63 63 64 $this->RegisterPageBar('Top'); 65 $this->RegisterPageBar('TopLeft'); 64 66 65 67 // Register and start existing modules … … 164 166 { 165 167 Header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); 166 return('<h3 align="center">'.T('Required page not found') );168 return('<h3 align="center">'.T('Required page not found').'</h3>'); 167 169 } 168 170 }
Note:
See TracChangeset
for help on using the changeset viewer.