Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
a0fd5ab7
Commit
a0fd5ab7
authored
Apr 16, 2013
by
tbrehm
Browse files
- Merged revisions 3922-3958 from svn stable branch
- Added backup size to web backups
parent
a3f74860
Changes
489
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
a0fd5ab7
...
...
@@ -59,22 +59,8 @@ class installer_dist extends installer_base {
}
}
$config_dir
=
$conf
[
'mailman'
][
'config_dir'
]
.
'/'
;
$full_file_name
=
$config_dir
.
'virtual_to_transport.sh'
;
//* Backup exiting virtual_to_transport.sh script
if
(
is_file
(
$full_file_name
))
{
copy
(
$full_file_name
,
$config_dir
.
'virtual_to_transport.sh~'
);
}
copy
(
'tpl/mailman-virtual_to_transport.sh'
,
$full_file_name
);
chgrp
(
$full_file_name
,
'mailman'
);
chmod
(
$full_file_name
,
0750
);
if
(
!
is_file
(
'/var/lib/mailman/data/transport-mailman'
))
touch
(
'/var/lib/mailman/data/transport-mailman'
);
exec
(
'/usr/sbin/postmap /var/lib/mailman/data/transport-mailman'
);
exec
(
'/usr/lib/mailman/bin/genaliases 2>/dev/null'
);
$virtual_domains
=
''
;
if
(
$status
==
'update'
)
...
...
@@ -101,6 +87,25 @@ class installer_dist extends installer_base {
$content
=
str_replace
(
'{virtual_domains}'
,
$virtual_domains
,
$content
);
wf
(
$full_file_name
,
$content
);
//* Write virtual_to_transport.sh script
$config_dir
=
$conf
[
'mailman'
][
'config_dir'
]
.
'/'
;
$full_file_name
=
$config_dir
.
'virtual_to_transport.sh'
;
//* Backup exiting virtual_to_transport.sh script
if
(
is_file
(
$full_file_name
))
{
copy
(
$full_file_name
,
$config_dir
.
'virtual_to_transport.sh~'
);
}
if
(
is_dir
(
'/etc/mailman'
))
{
copy
(
'tpl/mailman-virtual_to_transport.sh'
,
$full_file_name
);
chgrp
(
$full_file_name
,
'mailman'
);
chmod
(
$full_file_name
,
0750
);
}
//* Create aliasaes
exec
(
'/usr/lib/mailman/bin/genaliases 2>/dev/null'
);
}
function
configure_postfix
(
$options
=
''
)
...
...
@@ -204,6 +209,16 @@ class installer_dist extends installer_base {
touch
(
$config_dir
.
'/nested_header_checks'
);
touch
(
$config_dir
.
'/body_checks'
);
//* Create the mailman files
if
(
!
is_dir
(
'/var/lib/mailman/data'
))
exec
(
'mkdir -p /var/lib/mailman/data'
);
//if(!is_file('/var/lib/mailman/data/aliases')) touch('/var/lib/mailman/data/aliases');
if
(
is_file
(
'/var/lib/mailman/data/aliases'
))
unlink
(
'/var/lib/mailman/data/aliases'
);
if
(
!
is_link
(
'/var/lib/mailman/data/aliases'
))
symlink
(
'/etc/mailman/aliases'
,
'/var/lib/mailman/data/aliases'
);
exec
(
'postalias /var/lib/mailman/data/aliases'
);
if
(
!
is_file
(
'/var/lib/mailman/data/virtual-mailman'
))
touch
(
'/var/lib/mailman/data/virtual-mailman'
);
exec
(
'postmap /var/lib/mailman/data/virtual-mailman'
);
if
(
!
is_file
(
'/var/lib/mailman/data/transport-mailman'
))
touch
(
'/var/lib/mailman/data/transport-mailman'
);
exec
(
'/usr/sbin/postmap /var/lib/mailman/data/transport-mailman'
);
//* Make a backup copy of the main.cf file
copy
(
$config_dir
.
'/main.cf'
,
$config_dir
.
'/main.cf~'
);
...
...
install/dist/lib/opensuse.lib.php
View file @
a0fd5ab7
...
...
@@ -59,22 +59,8 @@ class installer_dist extends installer_base {
}
}
$config_dir
=
$conf
[
'mailman'
][
'config_dir'
]
.
'/'
;
$full_file_name
=
$config_dir
.
'virtual_to_transport.sh'
;
//* Backup exiting virtual_to_transport.sh script
if
(
is_file
(
$full_file_name
))
{
copy
(
$full_file_name
,
$config_dir
.
'virtual_to_transport.sh~'
);
}
copy
(
'tpl/mailman-virtual_to_transport.sh'
,
$full_file_name
);
chgrp
(
$full_file_name
,
'mailman'
);
chmod
(
$full_file_name
,
0750
);
if
(
!
is_file
(
'/var/lib/mailman/data/transport-mailman'
))
touch
(
'/var/lib/mailman/data/transport-mailman'
);
exec
(
'/usr/sbin/postmap /var/lib/mailman/data/transport-mailman'
);
exec
(
'/usr/lib/mailman/bin/genaliases 2>/dev/null'
);
$virtual_domains
=
''
;
if
(
$status
==
'update'
)
...
...
@@ -101,6 +87,24 @@ class installer_dist extends installer_base {
$content
=
str_replace
(
'{virtual_domains}'
,
$virtual_domains
,
$content
);
wf
(
$full_file_name
,
$content
);
//* Write virtual_to_transport.sh script
$config_dir
=
$conf
[
'mailman'
][
'config_dir'
]
.
'/'
;
$full_file_name
=
$config_dir
.
'virtual_to_transport.sh'
;
//* Backup exiting virtual_to_transport.sh script
if
(
is_file
(
$full_file_name
))
{
copy
(
$full_file_name
,
$config_dir
.
'virtual_to_transport.sh~'
);
}
if
(
is_dir
(
'/etc/mailman'
))
{
copy
(
'tpl/mailman-virtual_to_transport.sh'
,
$full_file_name
);
chgrp
(
$full_file_name
,
'mailman'
);
chmod
(
$full_file_name
,
0750
);
}
//* Create aliasaes
exec
(
'/usr/lib/mailman/bin/genaliases 2>/dev/null'
);
}
function
configure_postfix
(
$options
=
''
)
...
...
@@ -218,6 +222,14 @@ class installer_dist extends installer_base {
touch
(
$config_dir
.
'/nested_header_checks'
);
touch
(
$config_dir
.
'/body_checks'
);
//* Create the mailman files
if
(
!
is_dir
(
'/var/lib/mailman/data'
))
exec
(
'mkdir -p /var/lib/mailman/data'
);
if
(
!
is_file
(
'/var/lib/mailman/data/aliases'
))
touch
(
'/var/lib/mailman/data/aliases'
);
exec
(
'postalias /var/lib/mailman/data/aliases'
);
if
(
!
is_file
(
'/var/lib/mailman/data/virtual-mailman'
))
touch
(
'/var/lib/mailman/data/virtual-mailman'
);
exec
(
'postmap /var/lib/mailman/data/virtual-mailman'
);
if
(
!
is_file
(
'/var/lib/mailman/data/transport-mailman'
))
touch
(
'/var/lib/mailman/data/transport-mailman'
);
exec
(
'/usr/sbin/postmap /var/lib/mailman/data/transport-mailman'
);
//* Make a backup copy of the main.cf file
copy
(
$config_dir
.
'/main.cf'
,
$config_dir
.
'/main.cf~'
);
...
...
install/sql/incremental/upd_0049.sql
View file @
a0fd5ab7
ALTER
TABLE
`client_template`
CHANGE
`limit_aps`
`limit_aps`
INT
(
11
)
NOT
NULL
DEFAULT
'-1'
;
\ No newline at end of file
ALTER
TABLE
`client_template`
CHANGE
`limit_aps`
`limit_aps`
INT
(
11
)
NOT
NULL
DEFAULT
'-1'
;
install/sql/incremental/upd_0050.sql
0 → 100644
View file @
a0fd5ab7
ALTER
TABLE
`dns_slave`
DROP
INDEX
`origin`
;
ALTER
TABLE
`dns_slave`
ADD
CONSTRAINT
`slave`
UNIQUE
(
`origin`
,
`server_id`
);
\ No newline at end of file
install/sql/incremental/upd_0051.sql
0 → 100644
View file @
a0fd5ab7
ALTER
TABLE
`web_backup`
ADD
`filesize`
VARCHAR
(
10
)
NOT
NULL
AFTER
`filename`
;
install/sql/ispconfig3.sql
View file @
a0fd5ab7
...
...
@@ -418,7 +418,7 @@ CREATE TABLE `dns_slave` (
`active`
enum
(
'N'
,
'Y'
)
NOT
NULL
,
`xfer`
varchar
(
255
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`
origin`
(
`origin
`
),
UNIQUE
KEY
`
slave`
(
`origin`
,
`server_id
`
),
KEY
`active`
(
`active`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
AUTO_INCREMENT
=
1
;
...
...
@@ -1628,12 +1628,13 @@ CREATE TABLE `web_backup` (
`server_id`
int
(
10
)
unsigned
NOT
NULL
,
`parent_domain_id`
int
(
10
)
unsigned
NOT
NULL
,
`backup_type`
enum
(
'web'
,
'mysql'
)
NOT
NULL
DEFAULT
'web'
,
`backup_mode`
varchar
(
64
)
NOT
NULL
DEFAULT
''
,
`tstamp`
int
(
10
)
unsigned
NOT
NULL
,
`filename`
varchar
(
255
)
NOT
NULL
,
PRIMARY
KEY
(
`backup_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
AUTO_INCREMENT
=
1
;
`backup_mode`
varchar
(
64
)
NOT
NULL
DEFAULT
''
,
`tstamp`
int
(
10
)
unsigned
NOT
NULL
,
`filename`
varchar
(
255
)
NOT
NULL
,
`filesize`
VARCHAR
(
10
)
NOT
NULL
,
PRIMARY
KEY
(
`backup_id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
AUTO_INCREMENT
=
1
;
-- --------------------------------------------------------
--
...
...
@@ -2168,7 +2169,7 @@ INSERT INTO `sys_user` (`userid`, `sys_userid`, `sys_groupid`, `sys_perm_user`,
--
-- Dumping data for table `sys_config`
--
INSERT
INTO
sys_config
VALUES
(
'1'
,
'db'
,
'db_version'
,
'3.0.5.
1
'
);
INSERT
INTO
sys_config
VALUES
(
'1'
,
'db'
,
'db_version'
,
'3.0.5.
2
'
);
SET
FOREIGN_KEY_CHECKS
=
1
;
\ No newline at end of file
install/tpl/apache_ispconfig.conf.master
View file @
a0fd5ab7
...
...
@@ -51,4 +51,4 @@ CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m
Alias /awstats-icon "/usr/share/awstats/icon"
NameVirtualHost *:80
NameVirtualHost *:443
\ No newline at end of file
NameVirtualHost *:443
install/tpl/apache_ispconfig.vhost.master
View file @
a0fd5ab7
...
...
@@ -26,6 +26,7 @@ NameVirtualHost *:{vhost_port}
Allow from all
</Directory>
IPCCommTimeout 7200
MaxRequestLen 15728640
</IfModule>
<IfModule mpm_itk_module>
...
...
install/tpl/config.inc.php.master
View file @
a0fd5ab7
...
...
@@ -56,7 +56,7 @@ $revision = str_replace(array('Revision:','$',' '), '', $svn_revision);
//** Application
define
(
'ISPC_APP_TITLE'
,
'ISPConfig'
);
define
(
'ISPC_APP_VERSION'
,
'3.0.5.
1
'
);
define
(
'ISPC_APP_VERSION'
,
'3.0.5.
2
'
);
define
(
'DEVSYSTEM'
,
0
);
...
...
interface/lib/lang/cz.lng
View file @
a0fd5ab7
...
...
@@ -132,5 +132,3 @@ $wb['datalog_status_u_web_folder_user'] = 'Aktualizace nastavení uživatele pro
$wb
[
'datalog_status_d_web_folder_user'
]
=
'Odstranění uživatele pro adresáře chráněné heslem'
;
$wb
[
'login_as_txt'
]
=
'Přihlaste se jako'
;
?>
interface/lib/lang/pl.lng
View file @
a0fd5ab7
...
...
@@ -132,4 +132,3 @@ $wb['datalog_status_u_web_folder_user'] = 'Edytuj konto zabezpieczonego folderu'
$wb
[
'datalog_status_d_web_folder_user'
]
=
'Usuń konto zabezpieczonego folderu'
;
$wb
[
'login_as_txt'
]
=
'Zaloguj jako'
;
?>
interface/web/admin/form/system_config.tform.php
View file @
a0fd5ab7
...
...
@@ -214,7 +214,7 @@ $form["tabs"]['mail'] = array (
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'TEXT'
,
'validators'
=>
array
(
0
=>
array
(
'type'
=>
'REGEX'
,
'regex'
=>
'/^[0-9a-zA-Z\:\/\-\.]{0,255}$/'
,
'regex'
=>
'/^[0-9a-zA-Z\:\/\-\.]{0,255}
(\?.+)?
$/'
,
'errmsg'
=>
'webmail_url_error_regex'
),
),
'default'
=>
''
,
...
...
interface/web/admin/language_complete.php
View file @
a0fd5ab7
...
...
@@ -138,7 +138,7 @@ function merge_langfile($langfile,$masterfile) {
$file_content
=
"<?php
\n
"
;
foreach
(
$wb
as
$key
=>
$val
)
{
$val
=
str_replace
(
"'"
,
"
\\
'"
,
$val
);
$val
=
str_replace
(
'"'
,
'\
\
"'
,
$val
);
$val
=
str_replace
(
'"'
,
'\"'
,
$val
);
$file_content
.
=
'$wb['
.
"'
$key
'"
.
'] = '
.
"'
$val
';
\n
"
;
}
$file_content
.
=
"?>
\n
"
;
...
...
interface/web/admin/lib/lang/ar_server_config.lng
View file @
a0fd5ab7
...
...
@@ -170,4 +170,5 @@ $wb['enable_ip_wildcard_txt'] = 'Enable IP wildcard (*)';
$wb
[
'web_folder_protection_txt'
]
=
'Make web folders immutable (extended attributes)'
;
$wb
[
'overtraffic_notify_admin_txt'
]
=
'Send overtraffic notification to admin'
;
$wb
[
'overtraffic_notify_client_txt'
]
=
'Send overtraffic notification to client'
;
$wb
[
'rbl_error_regex'
]
=
'Please specify valid RBL hostnames.'
;
?>
interface/web/admin/lib/lang/bg_server_config.lng
View file @
a0fd5ab7
...
...
@@ -170,4 +170,5 @@ $wb['website_autoalias_txt'] = 'Website auto alias';
$wb
[
'website_autoalias_note_txt'
]
=
'Placeholders:'
;
$wb
[
'overtraffic_notify_admin_txt'
]
=
'Send overtraffic notification to admin'
;
$wb
[
'overtraffic_notify_client_txt'
]
=
'Send overtraffic notification to client'
;
$wb
[
'rbl_error_regex'
]
=
'Please specify valid RBL hostnames.'
;
?>
interface/web/admin/lib/lang/br_server_config.lng
View file @
a0fd5ab7
...
...
@@ -170,4 +170,5 @@ $wb['enable_ip_wildcard_txt'] = 'Enable IP wildcard (*)';
$wb
[
'web_folder_protection_txt'
]
=
'Make web folders immutable (extended attributes)'
;
$wb
[
'overtraffic_notify_admin_txt'
]
=
'Send overtraffic notification to admin'
;
$wb
[
'overtraffic_notify_client_txt'
]
=
'Send overtraffic notification to client'
;
$wb
[
'rbl_error_regex'
]
=
'Please specify valid RBL hostnames.'
;
?>
interface/web/admin/lib/lang/cz.lng
View file @
a0fd5ab7
...
...
@@ -48,5 +48,3 @@ $wb['Do OS-Update'] = 'Aktualizovat operační systém';
$wb
[
'Do ISPConfig-Update'
]
=
'Aktualizovat ISPConfig'
;
$wb
[
'Directive Snippets'
]
=
'Directive Snippets'
;
?>
interface/web/admin/lib/lang/cz_directive_snippets.lng
View file @
a0fd5ab7
...
...
@@ -7,5 +7,3 @@ $wb['active_txt'] = 'Aktivní';
$wb
[
'directive_snippets_name_empty'
]
=
'Please specify a name for the snippet.'
;
$wb
[
'directive_snippets_name_error_unique'
]
=
'There is already a directive snippet with this name.'
;
?>
interface/web/admin/lib/lang/cz_directive_snippets_list.lng
View file @
a0fd5ab7
...
...
@@ -5,5 +5,3 @@ $wb['name_txt'] = 'Name of Snippet';
$wb
[
'type_txt'
]
=
'Verze'
;
$wb
[
'add_new_record_txt'
]
=
'Add Directive Snippet'
;
?>
interface/web/admin/lib/lang/cz_firewall.lng
View file @
a0fd5ab7
...
...
@@ -9,5 +9,3 @@ $wb['firewall_error_unique'] = 'Pro tento server již existuje záznam firewallu
$wb
[
'tcp_ports_error_regex'
]
=
'Znak není povole v definici TCP portu. Povolené symboly jsou čísla, : a ,.'
;
$wb
[
'udp_ports_error_regex'
]
=
'Znak není povole v definici UDP portu. Povolené symboly jsou čísla, : a ,.'
;
?>
Prev
1
2
3
4
5
…
25
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment