Skip to content

Commit e84d5f9

Browse files
committed
Update mail_user.tform.php
1 parent 18b23bc commit e84d5f9

File tree

1 file changed

+35
-33
lines changed

1 file changed

+35
-33
lines changed

interface/web/mail/form/mail_user.tform.php

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -408,38 +408,40 @@
408408
}
409409

410410
//* Backup
411-
$form["tabs"]['backup'] = array (
412-
'title' => "Backup",
413-
'width' => 100,
414-
'template' => "templates/mail_user_backup.htm",
415-
'readonly' => false,
416-
'fields' => array (
417-
##################################
418-
# Begin Datatable fields
419-
##################################
420-
'backup_interval' => array (
421-
'datatype' => 'VARCHAR',
422-
'formtype' => 'SELECT',
423-
'default' => '',
424-
'value' => array('none' => 'no_backup_txt', 'daily' => 'daily_backup_txt', 'weekly' => 'weekly_backup_txt', 'monthly' => 'monthly_backup_txt')
425-
),
426-
'backup_copies' => array (
427-
'datatype' => 'INTEGER',
428-
'formtype' => 'SELECT',
429-
'default' => '',
430-
'value' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10')
431-
),
432-
##################################
433-
# ENDE Datatable fields
434-
##################################
435-
),
436-
'plugins' => array (
437-
'backup_records' => array (
438-
'class' => 'plugin_backuplist_mail',
439-
'options' => array(
440-
)
441-
)
442-
)
443-
);
411+
if ($global_config['mail']['mailbox_show_backup_tab'] === 'y') {
412+
$form["tabs"]['backup'] = array (
413+
'title' => "Backup",
414+
'width' => 100,
415+
'template' => "templates/mail_user_backup.htm",
416+
'readonly' => false,
417+
'fields' => array (
418+
##################################
419+
# Begin Datatable fields
420+
##################################
421+
'backup_interval' => array (
422+
'datatype' => 'VARCHAR',
423+
'formtype' => 'SELECT',
424+
'default' => '',
425+
'value' => array('none' => 'no_backup_txt', 'daily' => 'daily_backup_txt', 'weekly' => 'weekly_backup_txt', 'monthly' => 'monthly_backup_txt')
426+
),
427+
'backup_copies' => array (
428+
'datatype' => 'INTEGER',
429+
'formtype' => 'SELECT',
430+
'default' => '',
431+
'value' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10')
432+
),
433+
##################################
434+
# ENDE Datatable fields
435+
##################################
436+
),
437+
'plugins' => array (
438+
'backup_records' => array (
439+
'class' => 'plugin_backuplist_mail',
440+
'options' => array(
441+
)
442+
)
443+
)
444+
);
445+
}
444446

445447
?>

0 commit comments

Comments
 (0)