Skip to content

Commit 4712cac

Browse files
author
Till Brehm
committed
Merge branch '6833-php-shelluser-fixes' into 'develop'
Updated PHP cli binary code Closes #6833 See merge request ispconfig/ispconfig3!1989
2 parents 33953c5 + 2d9b5c6 commit 4712cac

33 files changed

+186
-126
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@
261261
'datatype' => 'VARCHAR',
262262
'formtype' => 'TEXT',
263263
'validators' => array(
264-
0 => array (
264+
0 => array('type' => 'NOTEMPTY',
265+
'errmsg' => 'php_cli_binary_empty'
266+
),
267+
1 => array (
265268
'type' => 'REGEX',
266269
'regex' => '/^\/[a-zA-Z0-9\/\-\_\.\s]*$/',
267270
'errmsg'=> 'php_cli_binary_error_regex'
@@ -277,7 +280,10 @@
277280
'formtype' => 'TEXT',
278281
'default' => '',
279282
'validators' => array(
280-
0 => array (
283+
0 => array('type' => 'NOTEMPTY',
284+
'errmsg' => 'php_cli_jk_section_empty'
285+
),
286+
1 => array (
281287
'type' => 'REGEX',
282288
'regex' => '/^[a-zA-Z0-9\-\_]*$/',
283289
'errmsg'=> 'php_cli_jk_section_error_regex'

interface/web/admin/lib/lang/ar_server_php.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ $wb['php_jk_section_txt'] = 'PHP Jailkit section';
2727
$wb['tooltip_php_jk_section_txt'] = 'Identifier of the PHP version in your jk_init.ini (without square brackets).';
2828
$wb['php_cli_jk_section_error_regex'] = 'Invalid Jaikit chroot section';
2929
$wb['php_cli_binary_error_regex'] = 'Invalid path to PHP cli binary';
30+
$wb['php_cli_binary_empty'] = 'PHP CLI binary field must not be empty';
31+
$wb['php_cli_jk_section_empty'] = 'PHP Jailkit section field must not be empty';
3032
?>

interface/web/admin/lib/lang/bg_server_php.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ $wb['php_jk_section_txt'] = 'PHP Jailkit section';
2727
$wb['tooltip_php_jk_section_txt'] = 'Identifier of the PHP version in your jk_init.ini (without square brackets).';
2828
$wb['php_cli_jk_section_error_regex'] = 'Invalid Jaikit chroot section';
2929
$wb['php_cli_binary_error_regex'] = 'Invalid path to PHP cli binary';
30+
$wb['php_cli_binary_empty'] = 'PHP CLI binary field must not be empty';
31+
$wb['php_cli_jk_section_empty'] = 'PHP Jailkit section field must not be empty';
3032
?>

interface/web/admin/lib/lang/br_server_php.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ $wb['php_jk_section_txt'] = 'PHP Jailkit section';
2727
$wb['tooltip_php_jk_section_txt'] = 'Identifier of the PHP version in your jk_init.ini (without square brackets).';
2828
$wb['php_cli_jk_section_error_regex'] = 'Invalid Jaikit chroot section';
2929
$wb['php_cli_binary_error_regex'] = 'Invalid path to PHP cli binary';
30+
$wb['php_cli_binary_empty'] = 'PHP CLI binary field must not be empty';
31+
$wb['php_cli_jk_section_empty'] = 'PHP Jailkit section field must not be empty';
3032
?>

interface/web/admin/lib/lang/ca_server_php.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ $wb['php_jk_section_txt'] = 'PHP Jailkit section';
2727
$wb['tooltip_php_jk_section_txt'] = 'Identifier of the PHP version in your jk_init.ini (without square brackets).';
2828
$wb['php_cli_jk_section_error_regex'] = 'Invalid Jaikit chroot section';
2929
$wb['php_cli_binary_error_regex'] = 'Invalid path to PHP cli binary';
30+
$wb['php_cli_binary_empty'] = 'PHP CLI binary field must not be empty';
31+
$wb['php_cli_jk_section_empty'] = 'PHP Jailkit section field must not be empty';
3032
?>

interface/web/admin/lib/lang/cn_server_php.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ $wb['php_jk_section_txt'] = 'PHP Jailkit section';
2727
$wb['tooltip_php_jk_section_txt'] = 'Identifier of the PHP version in your jk_init.ini (without square brackets).';
2828
$wb['php_cli_jk_section_error_regex'] = 'Invalid Jaikit chroot section';
2929
$wb['php_cli_binary_error_regex'] = 'Invalid path to PHP cli binary';
30+
$wb['php_cli_binary_empty'] = 'PHP CLI binary field must not be empty';
31+
$wb['php_cli_jk_section_empty'] = 'PHP Jailkit section field must not be empty';
3032
?>

interface/web/admin/lib/lang/cz_server_php.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ $wb['php_jk_section_txt'] = 'PHP Jailkit section';
2727
$wb['tooltip_php_jk_section_txt'] = 'Identifier of the PHP version in your jk_init.ini (without square brackets).';
2828
$wb['php_cli_jk_section_error_regex'] = 'Invalid Jaikit chroot section';
2929
$wb['php_cli_binary_error_regex'] = 'Invalid path to PHP cli binary';
30+
$wb['php_cli_binary_empty'] = 'PHP CLI binary field must not be empty';
31+
$wb['php_cli_jk_section_empty'] = 'PHP Jailkit section field must not be empty';
3032
?>

interface/web/admin/lib/lang/de_server_php.lng

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ $wb['tooltip_php_cli_binary_txt'] = 'Vollständiger Pfad zur PHP-CLI Binary (ink
2626
$wb['php_jk_section_txt'] = 'PHP Jailkit Sektion';
2727
$wb['tooltip_php_jk_section_txt'] = 'Bezeichner der PHP-Version in der jk_init.ini (Angabe ohne eckige Klammern)';
2828
$wb['php_cli_jk_section_error_regex'] = 'Ungültige Jaikit chroot-Sektion';
29-
$wb['php_cli_binary_error_regex'] = 'Ungültiger Pfad zur PHP-Cli-Binary';
29+
$wb['php_cli_binary_error_regex'] = 'Ungültiger Pfad zur PHP-CLI-Binary';
30+
$wb['php_cli_binary_empty'] = 'Das Feld PHP-CLI-Binary darf nicht leer sein.';
31+
$wb['php_cli_jk_section_empty'] = 'Das Feld PHP Jailkit-Sektion darf nicht leer sein.';
3032
?>

interface/web/admin/lib/lang/dk_server_php.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ $wb['php_jk_section_txt'] = 'PHP Jailkit section';
2727
$wb['tooltip_php_jk_section_txt'] = 'Identifier of the PHP version in your jk_init.ini (without square brackets).';
2828
$wb['php_cli_jk_section_error_regex'] = 'Invalid Jaikit chroot section';
2929
$wb['php_cli_binary_error_regex'] = 'Invalid path to PHP cli binary';
30+
$wb['php_cli_binary_empty'] = 'PHP CLI binary field must not be empty';
31+
$wb['php_cli_jk_section_empty'] = 'PHP Jailkit section field must not be empty';
3032
?>

interface/web/admin/lib/lang/el_server_php.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ $wb['php_jk_section_txt'] = 'PHP Jailkit section';
2727
$wb['tooltip_php_jk_section_txt'] = 'Identifier of the PHP version in your jk_init.ini (without square brackets).';
2828
$wb['php_cli_jk_section_error_regex'] = 'Invalid Jaikit chroot section';
2929
$wb['php_cli_binary_error_regex'] = 'Invalid path to PHP cli binary';
30+
$wb['php_cli_binary_empty'] = 'PHP CLI binary field must not be empty';
31+
$wb['php_cli_jk_section_empty'] = 'PHP Jailkit section field must not be empty';
3032
?>

0 commit comments

Comments
 (0)