diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-17 00:45:05 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-17 00:45:05 +0200 |
commit | 3263b80ea94a2d3c8a7d68d8190a93db198e2203 (patch) | |
tree | 65032ac05f6525e80d8e9b2873bd0c5220a05660 /index.php | |
parent | 87ebd6700d7726ce4de1d3572ceaad1521c00b6c (diff) | |
download | nextcloud-server-3263b80ea94a2d3c8a7d68d8190a93db198e2203.tar.gz nextcloud-server-3263b80ea94a2d3c8a7d68d8190a93db198e2203.zip |
first-run wizzard wip
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
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(); |