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.

27 lines
595 B

  1. <?php
  2. /**
  3. * Файл роутеров
  4. *
  5. * @copyright NetMonsters <team@netmonsters.ru>
  6. * @link
  7. * @package Nakon
  8. * @subpackage Config
  9. * @since
  10. * @version SVN: $Id$
  11. * @filesource $URL$
  12. */
  13. require('sys.inc.php');
  14. $path = explode('?', Env::Server('REQUEST_URI'));
  15. $path = trim($path[0], '/');
  16. define('MJ_URL', '/'.$path.'/');
  17. if (defined('PATH_TRIM') && PATH_TRIM != '' && strpos($path, PATH_TRIM) === 0) {
  18. $path = substr($path, strlen(PATH_TRIM) + 1);
  19. }
  20. define('MJ_PATH', $path);
  21. unset($path);
  22. require(CONFIG_PATH.'/routers.inc.php');
  23. define('E_404', 404);
  24. define('E_403', 403);
  25. ?>