You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 746B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. require_once '../bootstrap.php';
  3. use SCF\Additionals\Carousel;
  4. use SCF\Core\DI;
  5. $c = new Carousel(ROOT . DS . 'web/Styles/sks-screens' . DS);
  6. /**
  7. * AltoRouter INCLUSION
  8. */
  9. require_once ROOT.DS.APP."/Config/router.php";
  10. $tpl->assign('sksscreens', $c->getPicArray());
  11. $match = $router->match();
  12. $tracking = DI::getInstance()->get('tracking');
  13. $tracking->setCurrentUserIp($_SERVER['REMOTE_ADDR']);
  14. $tracking->setCurrentUserAgent($_SERVER['HTTP_USER_AGENT']);
  15. $tracking->setCurrentUserReferer($_SERVER['HTTP_REFERER']);
  16. $tracking->checkUniqueUser();
  17. if($match === false) {
  18. $tpl->display('errorpages/404.tpl');
  19. }
  20. else {
  21. try {
  22. require $match['target'];
  23. } catch(Exception $e) {
  24. return $e->getMessage();
  25. }
  26. }