Changeset 343 for trunk/global.php
- Timestamp:
- Jan 17, 2012, 1:00:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/global.php
r342 r343 20 20 include_once('Modules/Module.php'); 21 21 include_once('Model.php'); 22 include_once('Modules/User/user.php');23 22 24 23 $PrefixMultipliers = array … … 91 90 ); 92 91 93 class System extends OldModule 94 { 95 var $Modules = array(); 96 97 function ModulePresent($Name) 98 { 99 return(array_key_exists($Name, $this->Modules)); 100 } 101 92 class System extends ModularSystem 93 { 94 102 95 function AddModule($Module) 103 96 { … … 211 204 $Database->ShowSQLQuery = $Config['Web']['ShowSQLQuery']; 212 205 213 $System = new System( );206 $System = new System($Database); 214 207 $System->Config = $Config; 215 $System->Database = &$Database; 208 //$System->Install(); 209 //$System->ReloadList(); 210 $System->Init(); 211 if(isset($_SERVER['REMOTE_ADDR'])) $System->Models['User']->Check(); 216 212 $System->AddModule(new Log()); 217 $System->AddModule(new User());218 if(isset($_SERVER['REMOTE_ADDR'])) $System->Modules['User']->Check();219 213 $System->AddModule(new News()); 220 214 $System->AddModule(new Webcam()); … … 222 216 $System->AddModule(new Finance()); 223 217 $System->Modules['Finance']->LoadMonthParameters(0); 224 225 $System->ModularSystem = new ModularSystem($Database);226 $System->ModularSystem->Install();227 //$System->ModularSystem->ReloadList();228 $System->ModularSystem->Init();229 218 } 230 219
Note:
See TracChangeset
for help on using the changeset viewer.