News admin panel

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@39 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
akulikov
2008-12-29 16:16:58 +00:00
parent 83d25fa24b
commit 9345b8d27e
3 changed files with 11 additions and 18 deletions

View File

@ -13,8 +13,12 @@
require('sys.inc.php');
$path = explode('?', Env::Server('REQUEST_URI'));
define('MJ_PATH', trim($path[0], '/'));
define('MJ_URL', "/".MJ_PATH."/");
$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');