Skip to content

Commit 6a00b4e

Browse files
author
Marius Burkard
committed
Merge branch 'master' into 'master'
Master See merge request !253
2 parents b25f400 + de492a1 commit 6a00b4e

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

install/install.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
//** Installer Interface
140140
//****************************************************************************************************
141141
$inst = new installer();
142+
if (!$inst->get_php_version()) die('ISPConfig requieres PHP '.$inst->min_php."\n");
142143

143144
swriteln($inst->lng(' Following will be a few questions for primary configuration so be careful.'));
144145
swriteln($inst->lng(' Default values are in [brackets] and can be accepted with <ENTER>.'));

install/lib/installer_base.lib.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class installer_base {
3636
public $conf;
3737
public $install_ispconfig_interface = true;
3838
public $is_update = false; // true if it is an update, falsi if it is a new install
39+
public $min_php = '5.3.3'; // minimal php-version for update / install
3940
protected $mailman_group = 'list';
4041

4142

@@ -130,6 +131,12 @@ function request_language(){
130131
}
131132
*/
132133

134+
//** Detect PHP-Version
135+
public function get_php_version() {
136+
if(version_compare(PHP_VERSION, $this->min_php, '<')) return false;
137+
else return true;
138+
}
139+
133140
//** Detect installed applications
134141
public function find_installed_apps() {
135142
global $conf;
@@ -2737,4 +2744,4 @@ protected function insert_db_credentials($tContents) {
27372744

27382745
}
27392746

2740-
?>
2747+
?>

install/sql/incremental/upd_dev_collection.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@ ALTER TABLE openvz_vm
188188
ADD COLUMN `bootorder` INT(11) NOT NULL DEFAULT '1' AFTER `start_boot`,
189189
ADD COLUMN `custom` text;
190190

191-
ALTER TABLE `web_domain` ADD `ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n' AFETR `ssl`;
191+
ALTER TABLE `web_domain` ADD `ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n' AFTER `ssl`;

install/update.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
$conf['ispconfig_log_priority'] = $conf_old["log_priority"];
175175

176176
$inst = new installer();
177+
if (!$inst->get_php_version()) die('ISPConfig requieres PHP '.$inst->min_php."\n");
177178
$inst->is_update = true;
178179

179180
//** Detect the installed applications

interface/web/admin/form/server_ip.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
'formtype' => 'SELECT',
106106
'default' => '',
107107
'datasource' => array ( 'type' => 'SQL',
108-
'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",
108+
'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)",
109109
'keyfield'=> 'client_id',
110110
'valuefield'=> 'name'
111111
),

interface/web/sites/web_vhost_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function onShowEnd() {
218218
//* Fill the IPv6 select field with the IP addresses that are allowed for this client
219219
$sql = "SELECT ip_address FROM server_ip WHERE server_id IN ? AND ip_type = 'IPv6' AND (client_id = 0 OR client_id=?)";
220220
$ips = $app->db->queryAllRecords($sql, explode(',', $client['web_servers']), $_SESSION['s']['user']['client_id']);
221-
$ip_select = "<option value=''></option>";
221+
$ip_select = ($web_config[$server_id]['enable_ip_wildcard'] == 'y')?"<option value='*'>*</option>":"";
222222
//$ip_select = "";
223223
if(is_array($ips)) {
224224
foreach( $ips as $ip) {

0 commit comments

Comments
 (0)