| | |
| | | |
| | | if($dist['id'] == '') die('Linux distribution or version not recognized.'); |
| | | |
| | | //** Check the PHP Version |
| | | if (version_compare(PHP_VERSION, '7.0.0') >= 0) { |
| | | die('PHP 7 is not supported by ISPConfig 3.0.5. Plesae use ISPConfig version 3.1 instead.'); |
| | | } |
| | | |
| | | //** Include the autoinstaller configuration (for non-interactive setups) |
| | | error_reporting(E_ALL ^ E_NOTICE); |
| | | |
| | |
| | | include_once $cmd_opt['autoinstall']; |
| | | } elseif($path_parts['extension'] == 'ini') { |
| | | $tmp = ini_to_array(file_get_contents('autoinstall.ini')); |
| | | if(!is_array($tmp['install'])) $tmp['install'] = array(); |
| | | if(!is_array($tmp['ssl_cert'])) $tmp['ssl_cert'] = array(); |
| | | if(!is_array($tmp['expert'])) $tmp['expert'] = array(); |
| | | if(!is_array($tmp['update'])) $tmp['update'] = array(); |
| | | $autoinstall = $tmp['install'] + $tmp['ssl_cert'] + $tmp['expert'] + $tmp['update']; |
| | | unset($tmp); |
| | | } |