Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
f4097a24
Commit
f4097a24
authored
Nov 16, 2016
by
Florian Schaal
Browse files
check for backup-enabled in mailbackups
parent
83d3c44c
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/form/mail_user.tform.php
View file @
f4097a24
...
...
@@ -41,6 +41,13 @@ global $app;
$app
->
uses
(
'getconf'
);
$global_config
=
$app
->
getconf
->
get_global_config
();
$backup_available
=
true
;
if
(
!
$app
->
auth
->
is_admin
())
{
$client_group_id
=
$_SESSION
[
's'
][
'user'
][
'default_group'
];
$client
=
$app
->
db
->
queryOneRecord
(
"SELECT limit_backup FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ?"
,
$client_group_id
);
if
(
$client
[
'limit_backup'
]
!=
'y'
)
$backup_available
=
false
;
]
$form
[
"title"
]
=
"Mailbox"
;
$form
[
"description"
]
=
""
;
$form
[
"name"
]
=
"mail_user"
;
...
...
@@ -408,38 +415,40 @@ if ($_SESSION["s"]["user"]["typ"] == 'admin' && $global_config['mail']['mailbox_
}
//* Backup
$form
[
"tabs"
][
'backup'
]
=
array
(
'title'
=>
"Backup"
,
'width'
=>
100
,
'template'
=>
"templates/mail_user_backup.htm"
,
'readonly'
=>
false
,
'fields'
=>
array
(
##################################
# Begin Datatable fields
##################################
'backup_interval'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'SELECT'
,
'default'
=>
''
,
'value'
=>
array
(
'none'
=>
'no_backup_txt'
,
'daily'
=>
'daily_backup_txt'
,
'weekly'
=>
'weekly_backup_txt'
,
'monthly'
=>
'monthly_backup_txt'
)
),
'backup_copies'
=>
array
(
'datatype'
=>
'INTEGER'
,
'formtype'
=>
'SELECT'
,
'default'
=>
''
,
'value'
=>
array
(
'1'
=>
'1'
,
'2'
=>
'2'
,
'3'
=>
'3'
,
'4'
=>
'4'
,
'5'
=>
'5'
,
'6'
=>
'6'
,
'7'
=>
'7'
,
'8'
=>
'8'
,
'9'
=>
'9'
,
'10'
=>
'10'
)
if
(
$backup_available
)
{
$form
[
"tabs"
][
'backup'
]
=
array
(
'title'
=>
"Backup"
,
'width'
=>
100
,
'template'
=>
"templates/mail_user_backup.htm"
,
'readonly'
=>
false
,
'fields'
=>
array
(
##################################
# Begin Datatable fields
##################################
'backup_interval'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'SELECT'
,
'default'
=>
''
,
'value'
=>
array
(
'none'
=>
'no_backup_txt'
,
'daily'
=>
'daily_backup_txt'
,
'weekly'
=>
'weekly_backup_txt'
,
'monthly'
=>
'monthly_backup_txt'
)
),
'backup_copies'
=>
array
(
'datatype'
=>
'INTEGER'
,
'formtype'
=>
'SELECT'
,
'default'
=>
''
,
'value'
=>
array
(
'1'
=>
'1'
,
'2'
=>
'2'
,
'3'
=>
'3'
,
'4'
=>
'4'
,
'5'
=>
'5'
,
'6'
=>
'6'
,
'7'
=>
'7'
,
'8'
=>
'8'
,
'9'
=>
'9'
,
'10'
=>
'10'
)
),
##################################
# ENDE Datatable fields
##################################
),
##################################
# ENDE Datatable fields
##################################
),
'plugins'
=>
array
(
'backup_records'
=>
array
(
'class'
=>
'plugin_backuplist_mail'
,
'options'
=>
array
(
'plugins'
=>
array
(
'backup_records'
=>
array
(
'class'
=>
'plugin_backuplist_mail'
,
'options'
=>
array
(
)
)
)
)
);
)
;
}
?>
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