Marius Burkard
2015-12-23 6a00b4e599f724cbc9a12927c8a0446ef5621028
Merge branch 'master' into 'master'

Master



See merge request !253
6 files modified
17 ■■■■ changed files
install/install.php 1 ●●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php 9 ●●●● patch | view | raw | blame | history
install/sql/incremental/upd_dev_collection.sql 2 ●●● patch | view | raw | blame | history
install/update.php 1 ●●●● patch | view | raw | blame | history
interface/web/admin/form/server_ip.tform.php 2 ●●● patch | view | raw | blame | history
interface/web/sites/web_vhost_domain_edit.php 2 ●●● patch | view | raw | blame | history
install/install.php
@@ -139,6 +139,7 @@
//** 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>.'));
install/lib/installer_base.lib.php
@@ -36,6 +36,7 @@
    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';
@@ -129,6 +130,12 @@
    }
    */
    //** 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() {
@@ -2737,4 +2744,4 @@
}
?>
?>
install/sql/incremental/upd_dev_collection.sql
@@ -188,4 +188,4 @@
  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`;
install/update.php
@@ -174,6 +174,7 @@
$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
interface/web/admin/form/server_ip.tform.php
@@ -105,7 +105,7 @@
            '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'
            ),
interface/web/sites/web_vhost_domain_edit.php
@@ -218,7 +218,7 @@
            //* 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) {