Merge branch 'master' into 'master'
Master
See merge request !253
| | |
| | | //** Installer Interface |
| | | //**************************************************************************************************** |
| | | $inst = new installer(); |
| | | if (!$inst->get_php_version()) die('ISPConfig requieres PHP '.$inst->min_php."\n"); |
| | | |
| | | swriteln($inst->lng(' Following will be a few questions for primary configuration so be careful.')); |
| | | swriteln($inst->lng(' Default values are in [brackets] and can be accepted with <ENTER>.')); |
| | |
| | | public $conf; |
| | | public $install_ispconfig_interface = true; |
| | | public $is_update = false; // true if it is an update, falsi if it is a new install |
| | | public $min_php = '5.3.3'; // minimal php-version for update / install |
| | | protected $mailman_group = 'list'; |
| | | |
| | | |
| | |
| | | |
| | | } |
| | | */ |
| | | |
| | | //** Detect PHP-Version |
| | | public function get_php_version() { |
| | | if(version_compare(PHP_VERSION, $this->min_php, '<')) return false; |
| | | else return true; |
| | | } |
| | | |
| | | //** Detect installed applications |
| | | public function find_installed_apps() { |
| | |
| | | |
| | | } |
| | | |
| | | ?> |
| | | ?> |
| | |
| | | ADD COLUMN `bootorder` INT(11) NOT NULL DEFAULT '1' AFTER `start_boot`, |
| | | ADD COLUMN `custom` text; |
| | | |
| | | ALTER TABLE `web_domain` ADD `ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n' AFETR `ssl`; |
| | | ALTER TABLE `web_domain` ADD `ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n' AFTER `ssl`; |
| | |
| | | $conf['ispconfig_log_priority'] = $conf_old["log_priority"]; |
| | | |
| | | $inst = new installer(); |
| | | if (!$inst->get_php_version()) die('ISPConfig requieres PHP '.$inst->min_php."\n"); |
| | | $inst->is_update = true; |
| | | |
| | | //** Detect the installed applications |
| | |
| | | 'formtype' => 'SELECT', |
| | | 'default' => '', |
| | | 'datasource' => array ( 'type' => 'SQL', |
| | | 'querystring' => "SELECT client_id,CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') as name FROM client WHERE {AUTHSQL} ORDER BY contact_name", |
| | | 'querystring' => "(SELECT 0 AS client_id, '' AS name) UNION ALL (SELECT client_id,CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') as name FROM client WHERE {AUTHSQL} ORDER BY contact_name)", |
| | | 'keyfield'=> 'client_id', |
| | | 'valuefield'=> 'name' |
| | | ), |
| | |
| | | //* Fill the IPv6 select field with the IP addresses that are allowed for this client |
| | | $sql = "SELECT ip_address FROM server_ip WHERE server_id IN ? AND ip_type = 'IPv6' AND (client_id = 0 OR client_id=?)"; |
| | | $ips = $app->db->queryAllRecords($sql, explode(',', $client['web_servers']), $_SESSION['s']['user']['client_id']); |
| | | $ip_select = "<option value=''></option>"; |
| | | $ip_select = ($web_config[$server_id]['enable_ip_wildcard'] == 'y')?"<option value='*'>*</option>":""; |
| | | //$ip_select = ""; |
| | | if(is_array($ips)) { |
| | | foreach( $ips as $ip) { |