Update init.php

This commit is contained in:
Bedder 2015-11-13 17:38:41 -06:00
parent c31cd5f200
commit 73395b1bc1
1 changed files with 3 additions and 5 deletions

View File

@ -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);