index.php 366 B

1234567891011121314151617
  1. <?php
  2. include (dirname(__FILE__) . "/../config.inc");
  3. $rest = new Rest();
  4. $page = PageFactory::getInstance()->create($rest->getDefaulted("action", "generic"));
  5. session_start();
  6. try
  7. {
  8. echo $page->process();
  9. }
  10. catch (PageDataNotValidException $e)
  11. {
  12. echo NotFoundPage::getInstance()->process();
  13. }
  14. catch (Exception $e)
  15. {
  16. echo ErrorPage::getInstance()->process($e);
  17. }