renamed installer.php to setup.php

This commit is contained in:
Jakob Sack 2011-05-06 22:50:18 +02:00
parent e8e0608991
commit 6b83e5ccfe
2 changed files with 13 additions and 13 deletions

View File

@ -33,7 +33,7 @@ $errors=OC_UTIL::checkServer();
if(count($errors)>0){ if(count($errors)>0){
OC_TEMPLATE::printGuestPage( "", "error", array( "errors" => $errors )); OC_TEMPLATE::printGuestPage( "", "error", array( "errors" => $errors ));
}elseif(isset($_POST['install']) and $_POST['install']=='true'){ }elseif(isset($_POST['install']) and $_POST['install']=='true'){
require_once 'installer.php'; require_once 'setup.php';
}elseif (!OC_CONFIG::getValue('installed',false)) { }elseif (!OC_CONFIG::getValue('installed',false)) {
$hasSQLite=is_callable('sqlite_open'); $hasSQLite=is_callable('sqlite_open');
$hasMySQL=is_callable('mysql_connect'); $hasMySQL=is_callable('mysql_connect');

View File

@ -1,7 +1,7 @@
<?php <?php
if(isset($_POST['install']) and $_POST['install']=='true'){ if(isset($_POST['install']) and $_POST['install']=='true'){
$errors=OC_INSTALLER::install($_POST); $errors=OC_SETUP::install($_POST);
if(count($errors)>0){ if(count($errors)>0){
OC_TEMPLATE::printGuestPage( "", "error", array( "errors" => $errors )); OC_TEMPLATE::printGuestPage( "", "error", array( "errors" => $errors ));
}else{ }else{
@ -10,7 +10,7 @@ if(isset($_POST['install']) and $_POST['install']=='true'){
} }
} }
class OC_INSTALLER{ class OC_SETUP{
public static function install($options){ public static function install($options){
$error=array(); $error=array();
$dbtype=$options['dbtype']; $dbtype=$options['dbtype'];