- Timestamp:
- Jan 17, 2012, 1:32:13 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 9 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/config.sample.php
r323 r344 49 49 'MainRouter' => array 50 50 ( 51 'HostName' => 'localhost',52 'UserName' => 'admin',53 'Password' => '',54 'InetInterface' => 'ether1',55 'LocalInterface' => 'ether2',56 'ConnectTimeout' => 5,57 'MangleRuleSubgroupMinPrefix' => 28,51 'HostName' => 'localhost', 52 'UserName' => 'admin', 53 'Password' => '', 54 'InetInterface' => 'ether1', 55 'LocalInterface' => 'ether2', 56 'ConnectTimeout' => 5, 57 'MangleRuleSubgroupMinPrefix' => 28, 58 58 ), 59 59 ); -
trunk/global.php
r343 r344 92 92 class System extends ModularSystem 93 93 { 94 94 var $Pages = array(); 95 95 96 function AddModule($Module) 96 97 { … … 205 206 206 207 $System = new System($Database); 207 $System->Config = $Config;208 $System->Config = &$Config; 208 209 //$System->Install(); 209 210 //$System->ReloadList(); -
trunk/index.php
r343 r344 303 303 } 304 304 305 $System->AddModule(new IndexPage()); 306 $System->Modules['IndexPage']->GetOutput(); 305 if(array_key_exists('page', $_GET)) 306 { 307 $Page = $_GET['page']; 308 if(array_key_exists($Page, $System->Pages)) 309 { 310 $PageClass = $System->Pages[$Page]; 311 $PageObject = new $PageClass(); 312 $PageObject->Database = &$Database; 313 $PageObject->System = &$System; 314 $PageObject->GetOutput(); 315 } else echo('Stránka nenalezena'); 316 } else 317 { 318 $System->AddModule(new IndexPage()); 319 $System->Modules['IndexPage']->GetOutput(); 320 } 307 321 308 322 ?>
Note:
See TracChangeset
for help on using the changeset viewer.