Changeset 590 for trunk/Common/System.php
- Timestamp:
- Nov 2, 2013, 12:10:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/System.php
r589 r590 27 27 $this->ShowPage = true; 28 28 $this->ConfigManager = new Config(); 29 $this->RootURLFolder = $_SERVER['SCRIPT_NAME']; 30 if(substr($this->RootURLFolder, -10, 10) == '/index.php') 31 $this->RootURLFolder = substr($this->RootURLFolder, 0, -10); 29 32 } 30 33 … … 42 45 $Page[$LastKey] = $Handler; 43 46 } else $this->Pages[$Path] = $Handler; 47 } 48 49 function UnregisterPage($Path) 50 { 51 unset($this->Pages[$Path]); 44 52 } 45 53 … … 129 137 //$Output .= 'Nelze se připojit k databázi.'; 130 138 } 131 $this->RootURLFolder = $this->Config['Web']['RootFolder']; 132 $this->FormManager->Root = $this->Config['Web']['RootFolder']; 139 if(isset($this->Config['Web']['RootFolder'])) 140 $this->RootURLFolder = $this->Config['Web']['RootFolder']; 141 $this->FormManager->Root = $this->RootURLFolder; 133 142 134 143 $Database = $this->Database; … … 138 147 include_once(dirname(__FILE__).'/../Modules/Setup/Setup.php'); 139 148 $this->ModuleManager->RegisterModule(new ModuleSetup($this)); 149 $this->ModuleManager->Modules['Setup']->Installed = true; 140 150 $this->ModuleManager->Modules['Setup']->Start(); 141 151 if($this->ModuleManager->Modules['Setup']->CheckState()) 142 152 { 143 153 $this->ModuleManager->LoadModules(); 154 $this->ModuleManager->Modules['Setup']->Installed = true; 144 155 $this->ModuleManager->Modules['Setup']->Start(); 145 156 $this->ModuleManager->StartAll();
Note:
See TracChangeset
for help on using the changeset viewer.