summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@dev.(none)>2010-03-24 10:27:07 +0100
committerFrank Karlitschek <frank@dev.(none)>2010-03-24 10:27:07 +0100
commit3f88fb9f14d330e7454edcfecfdf6d39a589949c (patch)
tree1fb51db8449100f09fcb246c404fa84c64c75db2 /inc
parent9816cd2bb8cceedb9beedd64901f6355db10b7e5 (diff)
downloadnextcloud-server-3f88fb9f14d330e7454edcfecfdf6d39a589949c.tar.gz
nextcloud-server-3f88fb9f14d330e7454edcfecfdf6d39a589949c.zip
rename variables
Diffstat (limited to 'inc')
-rwxr-xr-xinc/lib_base.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/inc/lib_base.php b/inc/lib_base.php
index 9a3319549bf..f30c85d7aec 100755
--- a/inc/lib_base.php
+++ b/inc/lib_base.php
@@ -31,14 +31,13 @@ ini_set('session.cookie_httponly','1;');
session_start();
// calculate the documentroot
-$DOCUMENTROOT=substr(__FILE__,0,-17);
-$SERVERROOT=$_SERVER['DOCUMENT_ROOT'];
-$count=strlen($SERVERROOT);
-$WEBROOT=substr($DOCUMENTROOT,$count);
-//echo($WEBROOT);
+$SERVERROOT=substr(__FILE__,0,-17);
+$DOCUMENTROOT=$_SERVER['DOCUMENT_ROOT'];
+$count=strlen($DOCUMENTROOT);
+$WEBROOT=substr($SERVERROOT,$count);
// set the right include path
-set_include_path(get_include_path().PATH_SEPARATOR.$DOCUMENTROOT.PATH_SEPARATOR.$DOCUMENTROOT.'/inc'.PATH_SEPARATOR.$DOCUMENTROOT.'/config');
+set_include_path(get_include_path().PATH_SEPARATOR.$SERVERROOT.PATH_SEPARATOR.$SERVERROOT.'/inc'.PATH_SEPARATOR.$SERVERROOT.'/config');
// define default config values
$CONFIG_ADMINLOGIN='';
@@ -139,8 +138,8 @@ class OC_UTIL {
*
*/
public static function checkserver(){
- global $DOCUMENTROOT;
- $f=@fopen($DOCUMENTROOT.'/config/config.php','a+');
+ global $SERVERROOT;
+ $f=@fopen($SERVERROOT.'/config/config.php','a+');
if(!$f) die('Error: Config file (config/config.php) is not writable for the webserver.');
@fclose($f);