Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bart@thisnet.nl>2011-09-18 22:57:05 +0400
committerBart Visscher <bart@thisnet.nl>2011-09-18 22:57:05 +0400
commit8966ed5a004a9b830f093355170d381566d58554 (patch)
treec114ef6ceb1e385b10bf015ce3ad00bae5ed89bd /index.php
parent82c7598861db175617694891bb9f21b426426225 (diff)
Cleanup lib/base.php
Diffstat (limited to 'index.php')
-rw-r--r--index.php18
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
+?>