aboutsummaryrefslogtreecommitdiffstats
path: root/css
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2010-09-19 12:24:09 +0200
committerRobin Appelman <icewind1991@gmail.com>2010-09-19 12:24:09 +0200
commit210e5d5ca52d65df93118764d528e3270eb9c587 (patch)
treec94d7deaaf38e9c7156ef5b2196f072876f3f853 /css
parenta23c74bdbcf36b222839280f4e41389229e1f056 (diff)
downloadnextcloud-server-210e5d5ca52d65df93118764d528e3270eb9c587.tar.gz
nextcloud-server-210e5d5ca52d65df93118764d528e3270eb9c587.zip
improved loading speed of default syle sheet
Diffstat (limited to 'css')
-rw-r--r--css/default.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/css/default.php b/css/default.php
index dd96b97a86e..663dcf0d87e 100644
--- a/css/default.php
+++ b/css/default.php
@@ -1,6 +1,11 @@
<?php
header('Content-Type: text/css');
-require_once('../inc/lib_base.php');
+// calculate the documentroot
+$SERVERROOT=substr(__FILE__,0,-16);
+$DOCUMENTROOT=realpath($_SERVER['DOCUMENT_ROOT']);
+$SERVERROOT=str_replace("\\",'/',$SERVERROOT);
+$SUBURI=substr(realpath($_SERVER["SCRIPT_FILENAME"]),strlen($SERVERROOT));
+$WEBROOT=substr($_SERVER["SCRIPT_NAME"],0,strlen($_SERVER["SCRIPT_NAME"])-strlen($SUBURI));
?>
html, body {
background-color: #F9F9F9;