Skip to content

Commit 94545ec

Browse files
author
Till Brehm
committed
Merge branch '6497_php_sort_version_3' into 'develop'
6497 sorting for php versions See merge request ispconfig/ispconfig3!1725
2 parents cc77c33 + 1d7c7eb commit 94545ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+156
-18
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ALTER TABLE `mail_user` CHANGE `quota` `quota` BIGINT(20) NOT NULL DEFAULT '0';
2-
-- 5918 add imap_prefix column to mail_user table
2+
ALTER TABLE `server_php` ADD `sortprio` INT(20) NOT NULL DEFAULT '100' AFTER `active`;
33
ALTER TABLE `mail_user` ADD COLUMN `imap_prefix` varchar(255) NULL default NULL AFTER `backup_copies`;
44
-- #6456 comodoca.com needs to become sectigo.com
55
UPDATE `dns_ssl_ca` SET `ca_issue` = 'sectigo.com' WHERE `ca_issue` = 'comodo.com';
66
UPDATE `dns_ssl_ca` SET `ca_issue` = 'sectigo.com' WHERE `ca_issue` = 'comodoca.com';
77
UPDATE `dns_ssl_ca` SET `ca_name` = 'Sectigo (formerly Comodo CA)' WHERE `ca_issue` = 'sectigo.com';
8-
-- not updating the dns_rr table to change all CAA records that have comodo.com / comodoca.com - we should not touch users records imo - TP
8+
-- not updating the dns_rr table to change all CAA records that have comodo.com / comodoca.com - we should not touch users records imo - TP

install/sql/ispconfig3.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,7 @@ CREATE TABLE `server_php` (
14611461
`php_fpm_pool_dir` varchar(255) DEFAULT NULL,
14621462
`php_fpm_socket_dir` varchar(255) DEFAULT NULL,
14631463
`active` enum('n','y') NOT NULL DEFAULT 'y',
1464+
`sortprio` int(20) NOT NULL DEFAULT 100,
14641465
PRIMARY KEY (`server_php_id`)
14651466
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
14661467

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,20 @@
248248
//#################################
249249
)
250250
);
251+
$form["tabs"]['php_sort'] = array (
252+
'title' => "PHP Sort Priority",
253+
'width' => 80,
254+
'template' => "templates/server_php_sort_edit.htm",
255+
'fields' => array(
256+
'sortprio' => array (
257+
'datatype' => 'INTEGER',
258+
'formtype' => 'TEXT',
259+
'default' => '100',
260+
'value' => '',
261+
'separator' => '',
262+
'width' => '10',
263+
'maxlength' => '20'
264+
),
265+
)
266+
);
251267
?>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ $wb['php_fpm_socket_dir_txt'] = 'PHP-FPM socket directory';
1717
$wb['active_txt'] = 'Active';
1818
$wb['php_in_use_error'] = 'This PHP-Version is in use.';
1919
$wb['php_name_in_use_error'] = 'The name can not be changed.';
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';
2023
?>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ $wb['client_id_txt'] = 'Client';
66
$wb['name_txt'] = 'PHP Name';
77
$wb['active_txt'] = 'Active';
88
$wb['usage_txt'] = 'Usage count';
9+
$wb['sortprio_txt'] = 'Priority';
910
?>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ $wb['php_fpm_socket_dir_txt'] = 'PHP-FPM socket directory';
1717
$wb['active_txt'] = 'Active';
1818
$wb['php_in_use_error'] = 'This PHP-Version is in use.';
1919
$wb['php_name_in_use_error'] = 'The name can not be changed.';
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';
2023
?>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ $wb['client_id_txt'] = 'Client';
66
$wb['name_txt'] = 'PHP Name';
77
$wb['active_txt'] = 'Active';
88
$wb['usage_txt'] = 'Usage count';
9+
$wb['sortprio_txt'] = 'Priority';
910
?>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ $wb['php_fpm_socket_dir_txt'] = 'PHP-FPM socket directory';
1717
$wb['active_txt'] = 'Ativo';
1818
$wb['php_in_use_error'] = 'Esta versão PHP está em uso.';
1919
$wb['php_name_in_use_error'] = 'O nome não pode ser modificado.';
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';
2023
?>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ $wb['php_fpm_socket_dir_txt'] = 'PHP-FPM socket directory';
1717
$wb['active_txt'] = 'Active';
1818
$wb['php_in_use_error'] = 'This PHP-Version is in use.';
1919
$wb['php_name_in_use_error'] = 'The name can not be changed.';
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';
2023
?>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ $wb['client_id_txt'] = 'Client';
66
$wb['name_txt'] = 'PHP Name';
77
$wb['active_txt'] = 'Active';
88
$wb['usage_txt'] = 'Usage count';
9+
$wb['sortprio_txt'] = 'Priority';
910
?>

0 commit comments

Comments
 (0)