use new directory-validator 'confdir'; fix if last ssl-ipport got deactivated and a security question is being asked
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -81,7 +81,7 @@ return array(
|
|||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'apacheconf_htpasswddir',
|
'varname' => 'apacheconf_htpasswddir',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'string_type' => 'dir',
|
'string_type' => 'confdir',
|
||||||
'default' => '/etc/apache2/htpasswd/',
|
'default' => '/etc/apache2/htpasswd/',
|
||||||
'save_method' => 'storeSettingField',
|
'save_method' => 'storeSettingField',
|
||||||
),
|
),
|
||||||
@@ -99,7 +99,7 @@ return array(
|
|||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'customer_ssl_path',
|
'varname' => 'customer_ssl_path',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'string_type' => 'dir',
|
'string_type' => 'confdir',
|
||||||
'default' => '/etc/ssl/froxlor-custom/',
|
'default' => '/etc/ssl/froxlor-custom/',
|
||||||
'save_method' => 'storeSettingField',
|
'save_method' => 'storeSettingField',
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ return array(
|
|||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'mod_fcgid_configdir',
|
'varname' => 'mod_fcgid_configdir',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'string_type' => 'dir',
|
'string_type' => 'confdir',
|
||||||
'default' => '/var/www/php-fcgi-scripts/',
|
'default' => '/var/www/php-fcgi-scripts/',
|
||||||
'plausibility_check_method' => 'checkPathConflicts',
|
'plausibility_check_method' => 'checkPathConflicts',
|
||||||
'save_method' => 'storeSettingField',
|
'save_method' => 'storeSettingField',
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ return array(
|
|||||||
'settinggroup' => 'phpfpm',
|
'settinggroup' => 'phpfpm',
|
||||||
'varname' => 'configdir',
|
'varname' => 'configdir',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'string_type' => 'dir',
|
'string_type' => 'confdir',
|
||||||
'default' => '/etc/php-fpm.d/',
|
'default' => '/etc/php-fpm.d/',
|
||||||
'save_method' => 'storeSettingField',
|
'save_method' => 'storeSettingField',
|
||||||
),
|
),
|
||||||
@@ -88,7 +88,7 @@ return array(
|
|||||||
'settinggroup' => 'phpfpm',
|
'settinggroup' => 'phpfpm',
|
||||||
'varname' => 'aliasconfigdir',
|
'varname' => 'aliasconfigdir',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'string_type' => 'dir',
|
'string_type' => 'confdir',
|
||||||
'default' => '/var/www/php-fpm/',
|
'default' => '/var/www/php-fpm/',
|
||||||
'save_method' => 'storeSettingField',
|
'save_method' => 'storeSettingField',
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1065,6 +1065,8 @@ if($page == 'domains'
|
|||||||
if (isset($_POST['ssl_ipandport']) && is_array($_POST['ssl_ipandport'])) {
|
if (isset($_POST['ssl_ipandport']) && is_array($_POST['ssl_ipandport'])) {
|
||||||
foreach ($_POST['ssl_ipandport'] as $ssl_ipandport) {
|
foreach ($_POST['ssl_ipandport'] as $ssl_ipandport) {
|
||||||
if (trim($ssl_ipandport) == "") continue;
|
if (trim($ssl_ipandport) == "") continue;
|
||||||
|
// fix if ip/port got de-checked and it was the last one
|
||||||
|
if (trim($ssl_ipandport) < 1) continue;
|
||||||
$ssl_ipandport = intval($ssl_ipandport);
|
$ssl_ipandport = intval($ssl_ipandport);
|
||||||
$ssl_ipandport_check = $db->query_first("SELECT `id`, `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id` = '" . $db->escape($ssl_ipandport) . "' ");
|
$ssl_ipandport_check = $db->query_first("SELECT `id`, `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id` = '" . $db->escape($ssl_ipandport) . "' ");
|
||||||
if (!isset($ssl_ipandport_check['id'])
|
if (!isset($ssl_ipandport_check['id'])
|
||||||
|
|||||||
Reference in New Issue
Block a user