fix when owncloud is installed in the root of a server
This commit is contained in:
parent
78e54e1909
commit
086f060b9e
|
@ -37,9 +37,10 @@ $DOCUMENTROOT=$_SERVER['DOCUMENT_ROOT'];
|
||||||
$SERVERROOT=str_replace("\\",'/',$SERVERROOT);
|
$SERVERROOT=str_replace("\\",'/',$SERVERROOT);
|
||||||
$count=strlen($DOCUMENTROOT);
|
$count=strlen($DOCUMENTROOT);
|
||||||
$WEBROOT=substr($SERVERROOT,$count);
|
$WEBROOT=substr($SERVERROOT,$count);
|
||||||
if($WEBROOT{0}!=='/'){
|
if($WEBROOT{0}!=='/' and $WEBROOT!=''){
|
||||||
$WEBROOT='/'.$WEBROOT;
|
$WEBROOT='/'.$WEBROOT;
|
||||||
}
|
}
|
||||||
|
// $WEBROOT='http://localhost'.$WEBROOT;
|
||||||
|
|
||||||
// set the right include path
|
// set the right include path
|
||||||
// set_include_path(get_include_path().PATH_SEPARATOR.$SERVERROOT.PATH_SEPARATOR.$SERVERROOT.'/inc'.PATH_SEPARATOR.$SERVERROOT.'/config');
|
// set_include_path(get_include_path().PATH_SEPARATOR.$SERVERROOT.PATH_SEPARATOR.$SERVERROOT.'/inc'.PATH_SEPARATOR.$SERVERROOT.'/config');
|
||||||
|
|
Loading…
Reference in New Issue