diff options
author | Bart Visscher <bart@thisnet.nl> | 2011-09-18 20:57:05 +0200 |
---|---|---|
committer | Bart Visscher <bart@thisnet.nl> | 2011-09-18 20:57:05 +0200 |
commit | 8966ed5a004a9b830f093355170d381566d58554 (patch) | |
tree | c114ef6ceb1e385b10bf015ce3ad00bae5ed89bd /index.php | |
parent | 82c7598861db175617694891bb9f21b426426225 (diff) | |
download | nextcloud-server-8966ed5a004a9b830f093355170d381566d58554.tar.gz nextcloud-server-8966ed5a004a9b830f093355170d381566d58554.zip |
Cleanup lib/base.php
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/index.php b/index.php index 249ce41d51e..46105a106fb 100644 --- a/index.php +++ b/index.php @@ -25,23 +25,17 @@ $RUNTIME_NOAPPS = TRUE; //no apps, yet require_once('lib/base.php'); -OC_Util::addScript('setup'); - +// Setup required : $not_installed = !OC_Config::getValue('installed', false); $install_called = (isset($_POST['install']) AND $_POST['install']=='true'); -// First step : check if the server is correctly configured for ownCloud : -$errors = OC_Util::checkServer(); -if(count($errors) > 0) { - OC_Template::printGuestPage("", "error", array("errors" => $errors)); -} - -// Setup required : -elseif($not_installed OR $install_called) { +if($not_installed OR $install_called) { + OC_Util::addScript('setup'); require_once('setup.php'); exit(); } -if($_SERVER['REQUEST_METHOD']=='PROPFIND'){//handle webdav +// Handle WebDAV +if($_SERVER['REQUEST_METHOD']=='PROPFIND'){ header('location: '.OC_Helper::linkTo('files','webdav.php')); exit(); } @@ -141,4 +135,4 @@ else { } } -?>
\ No newline at end of file +?> |