diff --git a/customer_extras.php b/customer_extras.php index 9ed48994..6c42196b 100644 --- a/customer_extras.php +++ b/customer_extras.php @@ -560,6 +560,7 @@ if ($page == 'overview') { 'backup_mail' => $backup_mail, 'backup_web' => $backup_web ); + // schedule backup job inserttask('20', $task_data); standard_success('backupscheduled'); diff --git a/lib/formfields/customer/extras/formfield.backup.php b/lib/formfields/customer/extras/formfield.backup.php index 82c9259b..4a808ec0 100644 --- a/lib/formfields/customer/extras/formfield.backup.php +++ b/lib/formfields/customer/extras/formfield.backup.php @@ -30,6 +30,11 @@ return array( 'select_var' => $pathSelect['value'], 'value' => $pathSelect['value'] ), + 'path_protection_info' => array( + 'label' => $lng['extras']['path_protection_label'], + 'type' => 'label', + 'value' => $lng['extras']['path_protection_info'] + ), 'backup_web' => array( 'label' => $lng['extras']['backup_web'], 'type' => 'checkbox', diff --git a/lng/english.lng.php b/lng/english.lng.php index f35d5437..abe69ec0 100644 --- a/lng/english.lng.php +++ b/lng/english.lng.php @@ -1986,3 +1986,5 @@ $lng['crondesc']['cron_backup'] = 'Process backup jobs'; $lng['error']['backupfunctionnotenabled'] = 'The backup function is not enabled'; $lng['serversettings']['backupenabled']['title'] = "Enable backup for customers"; $lng['serversettings']['backupenabled']['description'] = "If activated, the customer will be able to schedule backup jobs (cron-backup) which generates an archive within his docroot (subdirectory chosable by customer)"; +$lng['extras']['path_protection_label'] = 'Important'; +$lng['extras']['path_protection_info'] = 'We strongly recommend protecting the given path, see "Extras" -> "Directory protection"'; diff --git a/lng/german.lng.php b/lng/german.lng.php index 76de5ec4..cf6f2816 100644 --- a/lng/german.lng.php +++ b/lng/german.lng.php @@ -1639,3 +1639,5 @@ $lng['crondesc']['cron_backup'] = 'Ausstehende Sicherungen erstellen'; $lng['error']['backupfunctionnotenabled'] = 'Die Sicherungs-Funktion is nicht aktiviert'; $lng['serversettings']['backupenabled']['title'] = "Backup für Kunden aktivieren"; $lng['serversettings']['backupenabled']['description'] = "Wenn dies aktiviert ist, kann der Kunde Sicherungen planen (cron-backup) welche ein Archiv in sein Heimatverzeichnis ablegt (Unterordner vom Kunden wählbar)"; +$lng['extras']['path_protection_label'] = 'Wichtig'; +$lng['extras']['path_protection_info'] = 'Wir raten dringend dazu den angegebenen Pfad zu schützen, siehe "Extras" -> "Verzeichnisschutz"';