tbrehm
2008-06-04 8a05d7625a4e75484abcf5293033a38d1bf7a314
install/install.php
@@ -81,6 +81,10 @@
    die("ERROR: Cannot write to the directory ".dirname(ISPC_LOG_FILE).". Are you root or sudo ?\n\n");
}
if(is_dir('/root/ispconfig') || is_dir('/home/admispconfig')) {
   die('This software can not be installed on a server wich runs ISPConfig 2.x.');
}
//** Select the language
$conf['language'] = $inst->simple_query('Select language', array('en','de'), 'en');
@@ -124,6 +128,9 @@
   
   //* Create the mysql database
   $inst->configure_database();
   //* Insert the Server record into the database
   $inst->add_database_server_record();
   //* Configure postfix
   $inst->configure_postfix();
@@ -191,13 +198,18 @@
}else{
   //** Get Server ID
   $conf['server_id'] = $inst->free_query('Unique Numeric ID of the server','1');
   // $conf['server_id'] = $inst->free_query('Unique Numeric ID of the server','1');
   // Server ID is an autoInc value of the mysql database now
   
   if(strtolower($inst->simple_query('Create Database',array('y','n'),'y')) == 'y') {
   if(strtolower($inst->simple_query('Shall this server join a existing ISPConfig installation? If not, we will create a new database now',array('y','n'),'y')) == 'n') {
      //* Create the mysql database
      $inst->configure_database();
      system('/etc/init.d/mysql restart');
   }
   //* Insert the Server record into the database
   $inst->add_database_server_record();
   
   if(strtolower($inst->simple_query('Configure Mail', array('y','n') ,'y') ) == 'y') {