do not check for allowed-phpconfigs if fpm/fcgid is not activated (no possibility to select a config anyway)
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -268,8 +268,11 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
|
|||||||
} else {
|
} else {
|
||||||
$allowed_phpconfigs = [];
|
$allowed_phpconfigs = [];
|
||||||
}
|
}
|
||||||
if (! in_array($phpsid_result['phpsettingid'], $allowed_phpconfigs)) {
|
// only with fcgid/fpm enabled will it be possible to select a php-setting
|
||||||
\Froxlor\UI\Response::standard_error('notallowedphpconfigused', '', true);
|
if ((int) Settings::Get('system.mod_fcgid') == 1 || (int) Settings::Get('phpfpm.enabled') == 1) {
|
||||||
|
if (! in_array($phpsid_result['phpsettingid'], $allowed_phpconfigs)) {
|
||||||
|
\Froxlor\UI\Response::standard_error('notallowedphpconfigused', '', true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// actually insert domain
|
// actually insert domain
|
||||||
@@ -654,8 +657,11 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
|
|||||||
} else {
|
} else {
|
||||||
$allowed_phpconfigs = [];
|
$allowed_phpconfigs = [];
|
||||||
}
|
}
|
||||||
if (! in_array($phpsettingid, $allowed_phpconfigs)) {
|
// only with fcgid/fpm enabled will it be possible to select a php-setting
|
||||||
\Froxlor\UI\Response::standard_error('notallowedphpconfigused', '', true);
|
if ((int) Settings::Get('system.mod_fcgid') == 1 || (int) Settings::Get('phpfpm.enabled') == 1) {
|
||||||
|
if (! in_array($phpsettingid, $allowed_phpconfigs)) {
|
||||||
|
\Froxlor\UI\Response::standard_error('notallowedphpconfigused', '', true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle redirect
|
// handle redirect
|
||||||
|
|||||||
Reference in New Issue
Block a user