Changeset 344 for trunk/index.php
- Timestamp:
- Jan 17, 2012, 1:32:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.