Skip to content

Commit fc96c64

Browse files
committed
Add current PHP enhancements (WiP)
1 parent 9539e9b commit fc96c64

38 files changed

+218
-12
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE `server_php` ADD `php_cli_binary` varchar(255) DEFAULT NULL AFTER `php_fpm_socket_dir`;

install/sql/ispconfig3.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,7 @@ CREATE TABLE `server_php` (
14601460
`php_fpm_ini_dir` varchar(255) DEFAULT NULL,
14611461
`php_fpm_pool_dir` varchar(255) DEFAULT NULL,
14621462
`php_fpm_socket_dir` varchar(255) DEFAULT NULL,
1463+
`php_cli_binary` varchar(255) DEFAULT NULL,
14631464
`active` enum('n','y') NOT NULL DEFAULT 'y',
14641465
`sortprio` int(20) NOT NULL DEFAULT 100,
14651466
PRIMARY KEY (`server_php_id`)

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,30 @@
248248
//#################################
249249
)
250250
);
251+
$form["tabs"]['php_cli'] = array (
252+
'title' => "PHP-CLI settings",
253+
'width' => 80,
254+
'template' => "templates/server_php_cli_edit.htm",
255+
'fields' => array(
256+
//#################################
257+
// Begin Datatable fields
258+
//#################################
259+
'php_cli_binary' => array(
260+
'datatype' => 'VARCHAR',
261+
'formtype' => 'TEXT',
262+
'filters' => array(
263+
0 => array( 'event' => 'SAVE',
264+
'type' => 'STRIPTAGS'),
265+
1 => array( 'event' => 'SAVE',
266+
'type' => 'STRIPNL')
267+
),
268+
'default' => '',
269+
'value' => '',
270+
'width' => '40',
271+
'maxlength' => '255'
272+
),
273+
)
274+
);
251275
$form["tabs"]['php_sort'] = array (
252276
'title' => "PHP Sort Priority",
253277
'width' => 80,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ $wb['php_name_in_use_error'] = 'The name can not be changed.';
2020
$wb['PHP Sort Priority'] = 'Priority';
2121
$wb['sortprio_txt'] = 'Priority';
2222
$wb['sortprio_long_txt'] = 'Priority of PHP version in the PHP version select box<br>Default PHP has prio 0 if enabled<br>Lower value is higher priority';
23+
$wb['PHP-CLI settings'] = 'PHP-CLI settings';
24+
$wb['php_cli_binary_txt'] = 'Path to the PHP CLI binary';
2325
?>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ $wb['php_name_in_use_error'] = 'The name can not be changed.';
2020
$wb['PHP Sort Priority'] = 'Priority';
2121
$wb['sortprio_txt'] = 'Priority';
2222
$wb['sortprio_long_txt'] = 'Priority of PHP version in the PHP version select box<br>Default PHP has prio 0 if enabled<br>Lower value is higher priority';
23+
$wb['PHP-CLI settings'] = 'PHP-CLI settings';
24+
$wb['php_cli_binary_txt'] = 'Path to the PHP CLI binary';
2325
?>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ $wb['php_name_in_use_error'] = 'O nome não pode ser modificado.';
2020
$wb['PHP Sort Priority'] = 'Priority';
2121
$wb['sortprio_txt'] = 'Priority';
2222
$wb['sortprio_long_txt'] = 'Priority of PHP version in the PHP version select box<br>Default PHP has prio 0 if enabled<br>Lower value is higher priority';
23+
$wb['PHP-CLI settings'] = 'PHP-CLI settings';
24+
$wb['php_cli_binary_txt'] = 'Path to the PHP CLI binary';
2325
?>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ $wb['php_name_in_use_error'] = 'The name can not be changed.';
2020
$wb['PHP Sort Priority'] = 'Priority';
2121
$wb['sortprio_txt'] = 'Priority';
2222
$wb['sortprio_long_txt'] = 'Priority of PHP version in the PHP version select box<br>Default PHP has prio 0 if enabled<br>Lower value is higher priority';
23+
$wb['PHP-CLI settings'] = 'PHP-CLI settings';
24+
$wb['php_cli_binary_txt'] = 'Path to the PHP CLI binary';
2325
?>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ $wb['php_fpm_socket_dir_txt'] = 'PHP-FPM套接字目录';
1717
$wb['active_txt'] = '激活';
1818
$wb['php_in_use_error'] = '此PHP版本正在使用中。';
1919
$wb['php_name_in_use_error'] = '名称无法更改。';
20+
$wb['PHP Sort Priority'] = 'Priority';
21+
$wb['sortprio_txt'] = 'Priority';
22+
$wb['sortprio_long_txt'] = 'Priority of PHP version in the PHP version select box<br>Default PHP has prio 0 if enabled<br>Lower value is higher priority';
23+
$wb['PHP-CLI settings'] = 'PHP-CLI settings';
24+
$wb['php_cli_binary_txt'] = 'Path to the PHP CLI binary';
2025
?>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ $wb['php_name_in_use_error'] = 'The name can not be changed.';
2020
$wb['PHP Sort Priority'] = 'Priority';
2121
$wb['sortprio_txt'] = 'Priority';
2222
$wb['sortprio_long_txt'] = 'Priority of PHP version in the PHP version select box<br>Default PHP has prio 0 if enabled<br>Lower value is higher priority';
23+
$wb['PHP-CLI settings'] = 'PHP-CLI settings';
24+
$wb['php_cli_binary_txt'] = 'Path to the PHP CLI binary';
2325
?>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ $wb['php_name_in_use_error'] = 'Der Name kann nicht geändert werden.';
2020
$wb['PHP Sort Priority'] = 'Priorität';
2121
$wb['sortprio_txt'] = 'Sorting Priority';
2222
$wb['sortprio_long_txt'] = 'Priority of PHP Version in the PHP version select box<br>Default PHP has prio 0 if enabled<br>Lower value is higher priority';
23+
$wb['PHP-CLI settings'] = 'PHP-CLI-Einstellungen';
24+
$wb['php_cli_binary_txt'] = 'Pfad zur PHP-CLI Binary';
2325
?>

0 commit comments

Comments
 (0)