summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-17 00:45:05 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-17 00:45:05 +0200
commit3263b80ea94a2d3c8a7d68d8190a93db198e2203 (patch)
tree65032ac05f6525e80d8e9b2873bd0c5220a05660 /index.php
parent87ebd6700d7726ce4de1d3572ceaad1521c00b6c (diff)
downloadnextcloud-server-3263b80ea94a2d3c8a7d68d8190a93db198e2203.tar.gz
nextcloud-server-3263b80ea94a2d3c8a7d68d8190a93db198e2203.zip
first-run wizzard wip
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.php b/index.php
index b0d48b4acff..b8e1cb24dd5 100644
--- a/index.php
+++ b/index.php
@@ -29,6 +29,13 @@ require_once( 'template.php' );
$errors=OC_UTIL::checkServer();
if(count($errors)>0){
OC_TEMPLATE::printGuestPage( "", "error", array( "errors" => $errors ));
+}elseif(isset($_POST['install']) and $_POST['install']=='true'){
+ require_once 'installer.php';
+}elseif (!OC_CONFIG::getValue('installed',false)) {
+ $hasSQLite=is_callable('sqlite_open');
+ $hasMySQL=is_callable('mysql_connect');
+ $datadir=OC_CONFIG::getValue('datadir',$SERVERROOT.'/data');
+ OC_TEMPLATE::printGuestPage( "", "installation",array('hasSQLite'=>$hasSQLite,'hasMySQL'=>$hasMySQL,'datadir'=>$datadir));
}elseif( OC_USER::isLoggedIn()){
if( isset($_GET["logout"]) and ($_GET["logout"]) ){
OC_USER::logout();