Update init.php
This commit is contained in:
parent
c31cd5f200
commit
73395b1bc1
|
@ -152,11 +152,9 @@ $base = empty( $_SERVER['SCRIPT_NAME'] ) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRI
|
||||||
$base = dirname($base);
|
$base = dirname($base);
|
||||||
|
|
||||||
if($base!=DS) {
|
if($base!=DS) {
|
||||||
$base = $base.'/';
|
$base = $base.'/';
|
||||||
}
|
}else{ // work in subdomain
|
||||||
|
$base = '/';
|
||||||
if (dirname($_SERVER['SCRIPT_NAME']) == '\\') {
|
|
||||||
$base = '/';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
define('HTML_PATH_ROOT', $base);
|
define('HTML_PATH_ROOT', $base);
|
||||||
|
|
Loading…
Reference in New Issue