Skip to content

Commit 0bb5a18

Browse files
author
Marius Burkard
committed
Merge remote-tracking branch 'main/stable-3.1' into dns_import
2 parents 050e033 + 22819ea commit 0bb5a18

File tree

130 files changed

+298
-107
lines changed

Some content is hidden

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

130 files changed

+298
-107
lines changed

.git-scripts/syntax.sh

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/bin/bash
2+
3+
IFS=$'\n'
4+
EX=0
5+
ERRS="" ;
6+
WARNS="" ;
7+
ERRCNT=0 ;
8+
WARNCNT=0 ;
9+
10+
CMD="find . -type f \( -name \"*.php\" -o -name \"*.lng\" \) -print" ;
11+
12+
if [[ "$1" == "commit" ]] ; then
13+
CMD="git diff-tree --no-commit-id --name-only -r ${CI_COMMIT_SHA} | grep -E '\.(php|lng)$'" ;
14+
fi
15+
16+
for F in $(eval "$CMD") ; do
17+
if [[ ! -e "${F}" && -f "${F}" ]] ; then
18+
continue ;
19+
fi
20+
echo -n "${F} ... " ;
21+
R=$(php -d error_reporting=E_ALL -d display_errors=On -l "$F" 2>/dev/null) ;
22+
RET=$? ;
23+
R=$(echo "${R}" | sed "/^$/d")
24+
if [ $RET -gt 0 ] ; then
25+
EX=1 ;
26+
echo "[ERROR]" ;
27+
ERRS="${ERRS}${F}:"$'\n'"${R}"$'\n\n' ;
28+
ERRCNT=$((ERRCNT + 1)) ;
29+
else
30+
if [[ "$R" == "Deprecated: "* ]] ; then
31+
echo "[WARN]" ;
32+
WARNS="${WARNS}${F}:"$'\n'"${R}"$'\n\n' ;
33+
WARNCNT=$((WARNCNT + 1)) ;
34+
else
35+
echo "[OK]" ;
36+
fi
37+
fi
38+
done
39+
40+
echo ""
41+
echo "--------------------------";
42+
echo ""
43+
echo "${ERRCNT} Errors"
44+
if [ $ERRCNT -gt 0 ] ; then
45+
echo "${ERRS}"
46+
echo ""
47+
fi
48+
49+
echo "${WARNCNT} Warnings"
50+
if [ $WARNCNT -gt 0 ] ; then
51+
echo ""
52+
echo "${WARNS}"
53+
echo ""
54+
fi
55+
56+
exit $EX

.gitlab-ci.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Defines stages which are to be executed
22
stages:
33
- syntax
4+
- syntax_diff
45

56
#
67
### Stage syntax
@@ -13,10 +14,38 @@ syntax:lint:
1314
only:
1415
- schedules
1516
- web
17+
- merge_requests
1618

1719
script:
18-
- composer require overtrue/phplint
1920
- echo "Syntax checking PHP files"
20-
- echo "For more information http://www.icosaedro.it/phplint/"
21-
- vendor/bin/phplint
21+
- bash ./.git-scripts/syntax.sh
22+
23+
24+
syntax_diff:lint:
25+
stage: syntax
26+
image: edbizarro/gitlab-ci-pipeline-php:7.2
27+
allow_failure: false
28+
only:
29+
- web
30+
- pushes
31+
- branches
32+
33+
script:
34+
- echo "Syntax checking PHP files"
35+
- bash ./.git-scripts/syntax.sh commit
36+
37+
#syntax:lint:
38+
# stage: syntax
39+
# image: edbizarro/gitlab-ci-pipeline-php:7.2
40+
# allow_failure: false
41+
# only:
42+
# - schedules
43+
# - web
44+
# - merge_requests
45+
#
46+
# script:
47+
# - composer require overtrue/phplint
48+
# - echo "Syntax checking PHP files"
49+
# - echo "For more information http://www.icosaedro.it/phplint/"
50+
# - vendor/bin/phplint
2251

.phplint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
path: ./
2-
jobs: 10
2+
jobs: 5
33
cache: .phplint-cache
44
extensions:
55
- php

install/sql/README.txt

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,24 @@ then follow these steps:
99
1) Add the field or table in the ispconfig3.sql file. This file contains the
1010
complete database dump which is used when ISPConfig gets installed.
1111

12-
2) Create a new file in the "incremental" subfolder wich contains the alter
13-
table, or if it is a complete new table then the add table, statement(s) in
14-
MySQL syntax which is/are required to modify the current ispconfig database
15-
during update. The naming scheme of the sql patch update files is
16-
upd_0001.sql, upd_0002.sql, upd_0003.sql etc. Ensure that the number that
17-
you choose for the new file is a +1 increment of the number of the last
18-
existing file and that the number is formatted with 4 digits.
12+
2) Edit the file "incremental/upd_dev_collection.sql" which contains the SQL
13+
statements (alter table, add table, update, etc.) in MySQL syntax which
14+
are required to modify the current ispconfig database during update.
15+
16+
The upd_dev_collection.sql file contains all db schema modifications
17+
for changes made since the last ISPConfig release. If SQL statements
18+
are already present in the file when you make your additions, add yours
19+
to the end of the file, and do not remove any existing statements.
20+
21+
When a new ISPConfig update is released, the contents of
22+
upd_dev_collections.sql will move to an sql patch file, using the naming
23+
scheme upd_0001.sql, upd_0002.sql, upd_0003.sql etc.
1924

20-
A patch file may contain one or more alter table statements. Every patch file
21-
gets executed once in the database, so do not modify older (already released)
25+
A patch file may contain one or more SQL modification statements. Every patch
26+
file gets executed once in the database, so do not modify older (already released)
2227
patch files, they will not get executed again if the update was already run
23-
once on a system.
28+
once on a system, and will result in missing updates on any system where they
29+
have not run yet.
2430

2531
After a patch has been executed, the dbversion field in the server table gets
2632
increeased to the version number of the last installed patch.

install/sql/incremental/upd_dev_collection.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ ALTER TABLE `web_domain` ADD `backup_password` VARCHAR( 255 ) NOT NULL DEFAULT
1313
ALTER TABLE `web_backup` ADD `backup_format` VARCHAR( 64 ) NOT NULL DEFAULT '' AFTER `backup_mode`;
1414
ALTER TABLE `web_backup` ADD `backup_password` VARCHAR( 255 ) NOT NULL DEFAULT '' AFTER `filesize`;
1515
-- end of backup encryption
16+
17+
-- rename Comodo to "Sectigo / Comodo CA"
18+
UPDATE `dns_ssl_ca` SET `ca_name` = 'Sectigo / Comodo CA' WHERE `ca_issue` = 'comodoca.com';
19+
20+
-- default php-fpm to ondemand mode
21+
ALTER TABLE `web_domain` ALTER pm SET DEFAULT 'ondemand';
22+

install/sql/ispconfig3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2046,7 +2046,7 @@ CREATE TABLE `web_domain` (
20462046
`nginx_directives` mediumtext,
20472047
`php_fpm_use_socket` ENUM('n','y') NOT NULL DEFAULT 'y',
20482048
`php_fpm_chroot` enum('n','y') NOT NULL DEFAULT 'n',
2049-
`pm` enum('static','dynamic','ondemand') NOT NULL DEFAULT 'dynamic',
2049+
`pm` enum('static','dynamic','ondemand') NOT NULL DEFAULT 'ondemand',
20502050
`pm_max_children` int(11) NOT NULL DEFAULT '10',
20512051
`pm_start_servers` int(11) NOT NULL DEFAULT '2',
20522052
`pm_min_spare_servers` int(11) NOT NULL DEFAULT '1',

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646
}
4747

48-
$form["title"] = "Remote user";
48+
$form["title"] = "remote_user_txt";
4949
$form["description"] = "";
5050
$form["name"] = "remote_user";
5151
$form["action"] = "remote_user_edit.php";
@@ -63,7 +63,7 @@
6363
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
6464

6565
$form["tabs"]['remote_user'] = array (
66-
'title' => "Remote User",
66+
'title' => "remote_user_txt",
6767
'width' => 100,
6868
'template' => "templates/remote_user_edit.htm",
6969
'fields' => array (

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
3434
*/
3535

36-
$form["title"] = "Server Config";
36+
$form["title"] = "server_config";
3737
$form["description"] = "";
3838
$form["name"] = "server_config";
3939
$form["action"] = "server_config_edit.php";
@@ -2028,4 +2028,4 @@
20282028
$form['tabs']['mail']['fields']['content_filter']['default'] = 'amavisd';
20292029
unset($form['tabs']['mail']['fields']['content_filter']['value']['rspamd']);
20302030
unset($form['tabs']['mail']['fields']['rspamd_password']);
2031-
}*/
2031+
}*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
6161
*/
6262

63-
$form['title'] = 'Users';
63+
$form['title'] = 'users_txt';
6464
//$form['description'] = 'Form to edit systemusers.';
6565
$form['name'] = 'users';
6666
$form['action'] = 'users_edit.php';
@@ -129,7 +129,7 @@
129129
}
130130

131131
$form['tabs']['users'] = array (
132-
'title' => 'Users',
132+
'title' => 'users_txt',
133133
'width' => 80,
134134
'template' => 'templates/users_user_edit.htm',
135135
'fields' => array (

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
$wb['remote_user_txt'] = 'Remote User';
23
$wb['username_txt'] = 'Username';
34
$wb['password_txt'] = 'Password';
45
$wb['function_txt'] = 'Functions';

0 commit comments

Comments
 (0)