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.
28 lines
663 B
28 lines
663 B
<?php
|
|
/**
|
|
* Файл роутеров
|
|
*
|
|
* @copyright NetMonsters <team@netmonsters.ru>
|
|
* @link
|
|
* @package Nakon
|
|
* @subpackage Config
|
|
* @since
|
|
* @version SVN: $Id$
|
|
* @filesource $URL: svn+ssh://192.168.10.199/www/svn/nakon/trunk/config/init.inc.php $
|
|
*/
|
|
|
|
require('sys.inc.php');
|
|
$path = explode('?', Env::Server('REQUEST_URI'));
|
|
$path = trim($path[0], '/');
|
|
define('MJ_URL', '/'.$path.'/');
|
|
if (defined('PATH_TRIM') && PATH_TRIM != '' && strpos($path, PATH_TRIM) === 0) {
|
|
$path = substr($path, strlen(PATH_TRIM) + 1);
|
|
}
|
|
define('MJ_PATH', $path);
|
|
unset($path);
|
|
|
|
require(CONFIG_PATH.'/routers.inc.php');
|
|
|
|
define('E_404', 404);
|
|
define('E_403', 403);
|
|
?>
|