mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-29 04:55:02 +03:00
возможность установки в подкаталоги
This commit is contained in:
parent
986b9acbbd
commit
a6f43d5630
|
@ -98,7 +98,7 @@ class Router extends Object {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function GetRequestUri() {
|
protected function GetRequestUri() {
|
||||||
$sReq=preg_replace("/\/+/",'/',$_SERVER['REQUEST_URI']);
|
$sReq=preg_replace("/\/+/",'/',str_replace(preg_replace("@/*index\.php@U",'',$_SERVER['PHP_SELF']),'',$_SERVER['REQUEST_URI']));
|
||||||
$sReq=preg_replace("/^\/(.*)\/?$/U",'\\1',$sReq);
|
$sReq=preg_replace("/^\/(.*)\/?$/U",'\\1',$sReq);
|
||||||
$sReq=preg_replace("/^(.*)\/\?.*$/U",'\\1',$sReq);
|
$sReq=preg_replace("/^(.*)\/\?.*$/U",'\\1',$sReq);
|
||||||
|
|
||||||
|
|
|
@ -1515,11 +1515,11 @@ class Install {
|
||||||
}
|
}
|
||||||
|
|
||||||
function GetPathRootWeb() {
|
function GetPathRootWeb() {
|
||||||
return rtrim('http://'.$_SERVER['HTTP_HOST'],'/');
|
return rtrim('http://'.$_SERVER['HTTP_HOST'],'/').str_replace('/install/index.php','',$_SERVER['PHP_SELF']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function GetPathRootServer() {
|
function GetPathRootServer() {
|
||||||
return rtrim($_SERVER['DOCUMENT_ROOT'],'/');
|
return rtrim(dirname(dirname(__FILE__)),'/');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue