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.

1234567891011121314151617181920212223242526272829303132333435
  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. $userReferer = (!isset($_SERVER['HTTP_REFERER']) ? 'direct' : $_SERVER['HTTP_REFERER']);
  13. $tracking = DI::getInstance()->get('tracking');
  14. $tracking->setCurrentUserIp($_SERVER['REMOTE_ADDR']);
  15. $tracking->setCurrentUserAgent($_SERVER['HTTP_USER_AGENT']);
  16. $tracking->setCurrentUserReferer($userReferer);
  17. $tracking->checkUniqueUser();
  18. if($match === false) {
  19. var_dump($match);
  20. $tpl->display('errorpages/404.tpl');
  21. }
  22. else {
  23. try {
  24. require $match['target'];
  25. } catch(Exception $e) {
  26. echo '3';
  27. return $e->getMessage();
  28. }
  29. }