tbrehm
2013-10-01 d7b5ecb24ddbb366d54e77a051f43fe6f3c6e9f8
install/install.php
@@ -34,6 +34,8 @@
error_reporting(E_ALL|E_STRICT);
define('INSTALLER_RUN', true);
//** The banner on the command line
echo "\n\n".str_repeat('-',80)."\n";
echo " _____ ___________   _____              __ _         ____
@@ -104,19 +106,11 @@
//** Select the language and set default timezone
$conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en');
$conf['timezone'] = get_system_timezone();
exec('date +%z', $tmp_out);
$tmp_zone = intval($tmp_out[0]);
if(substr($tmp_out[0],0,1) == '+') {
   $conf['timezone'] = 'Etc/GMT+'.$tmp_zone;
} else {
   $conf['timezone'] = 'Etc/GMT-'.$tmp_zone;
}
unset($tmp_out);
unset($tmp_zone);
//* Set defaukt theme
//* Set default theme
$conf['theme'] = 'default';
$conf['language_file_import_enabled'] = true;
//** Select installation mode
$install_mode = $inst->simple_query('Installation mode', array('standard','expert'), 'standard');
@@ -574,7 +568,8 @@
   }*/
   
   //** Configure ISPConfig :-)
   if(strtolower($inst->simple_query('Install ISPConfig Web Interface',array('y','n'),'y')) == 'y') {
   $install_ispconfig_interface_default = ($conf['mysql']['master_slave_setup'] == 'y')?'n':'y';
   if(strtolower($inst->simple_query('Install ISPConfig Web Interface',array('y','n'),$install_ispconfig_interface_default)) == 'y') {
      swriteln('Installing ISPConfig');
      
      //** We want to check if the server is a module or cgi based php enabled server