diff options
author | root <root@dev.(none)> | 2010-03-16 08:48:36 +0100 |
---|---|---|
committer | root <root@dev.(none)> | 2010-03-16 08:48:36 +0100 |
commit | 6d57de7b326b09437b3c90c4dea60d596f92fdd3 (patch) | |
tree | f64aac8fdf48f28a3d33823291eb90e36ea22923 /index.php | |
parent | 01b7bf3b216811719e63407dcd32b8f8acbd1f4f (diff) | |
download | nextcloud-server-6d57de7b326b09437b3c90c4dea60d596f92fdd3.tar.gz nextcloud-server-6d57de7b326b09437b3c90c4dea60d596f92fdd3.zip |
cleanup autoconfiguration wizard, add settings page, make it run from subdirectories, huge cleanup
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/index.php b/index.php index 75273f73cf9..b4a19dd0388 100755 --- a/index.php +++ b/index.php @@ -21,8 +21,7 @@ * */ - -require_once('config/config.php'); +require_once('inc/lib_base.php'); if(isset($_GET['dir'])) $dir=$_GET['dir']; else $dir=''; @@ -32,14 +31,12 @@ if(isset($_GET['file'])) { }else{ - OC_USER::loginlisener(); - OC_USER::logoutlisener(); OC_UTIL::showheader(); OC_FILES::showbrowser($CONFIG_DATADIRECTORY,$dir); - echo('<br /><br /><p class="hint">Hint: Mount it via webdav like this: <a href="webdav://'.$CONFIG_SITEROOT.'/webdav/owncloud.php">webdav://'.$CONFIG_SITEROOT.'/webdav/owncloud.php</a></p>'); + echo('<br /><br /><p class="hint">Hint: Mount it via webdav like this: <a href="webdav://'.$_SERVER["HTTP_HOST"].$WEBROOT.'/webdav/owncloud.php">webdav://'.$_SERVER["HTTP_HOST"].$WEBROOT.'/webdav/owncloud.php</a></p>'); OC_UTIL::showfooter(); |