diff options
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(); |