diff --git a/web/bulk/cron/index.php b/web/bulk/cron/index.php index 3798b06c..2f08fed5 100644 --- a/web/bulk/cron/index.php +++ b/web/bulk/cron/index.php @@ -17,12 +17,40 @@ if ($_SESSION['user'] == 'admin') { break; case 'unsuspend': $cmd='v-unsuspend-cron-job'; break; + case 'delete-cron-reports': $cmd='v-delete-cron-reports'; + exec (VESTA_CMD.$cmd." ".$user, $output, $return_var); + $_SESSION['error_msg'] = __('Cronjob email reporting has been successfully diabled'); + unset($output); + header("Location: /list/cron/"); + exit; + break; + case 'add-cron-reports': $cmd='v-add-cron-reports'; + exec (VESTA_CMD.$cmd." ".$user, $output, $return_var); + $_SESSION['error_msg'] = __('Cronjob email reporting has been successfully enabled'); + unset($output); + header("Location: /list/cron/"); + exit; + break; default: header("Location: /list/cron/"); exit; } } else { switch ($action) { case 'delete': $cmd='v-delete-cron-job'; break; + case 'delete-cron-reports': $cmd='v-delete-cron-reports'; + exec (VESTA_CMD.$cmd." ".$user, $output, $return_var); + $_SESSION['error_msg'] = __('Cronjob email reporting has been successfully diabled'); + unset($output); + header("Location: /list/cron/"); + exit; + break; + case 'add-cron-reports': $cmd='v-add-cron-reports'; + exec (VESTA_CMD.$cmd." ".$user, $output, $return_var); + $_SESSION['error_msg'] = __('Cronjob email reporting has been successfully enabled'); + unset($output); + header("Location: /list/cron/"); + exit; + break; default: header("Location: /list/cron/"); exit; } } diff --git a/web/templates/admin/add_firewall.html b/web/templates/admin/add_firewall.html index eb7b795c..3df11938 100644 --- a/web/templates/admin/add_firewall.html +++ b/web/templates/admin/add_firewall.html @@ -85,7 +85,7 @@ - () + () diff --git a/web/templates/admin/add_firewall_banlist.html b/web/templates/admin/add_firewall_banlist.html index 0da1a58b..9f8a6fd5 100644 --- a/web/templates/admin/add_firewall_banlist.html +++ b/web/templates/admin/add_firewall_banlist.html @@ -64,7 +64,7 @@ - () + () diff --git a/web/templates/admin/edit_firewall.html b/web/templates/admin/edit_firewall.html index 9c7fa371..87fd798b 100644 --- a/web/templates/admin/edit_firewall.html +++ b/web/templates/admin/edit_firewall.html @@ -90,7 +90,7 @@ - () + () diff --git a/web/templates/admin/list_cron.html b/web/templates/admin/list_cron.html index d07400c2..7ac97190 100644 --- a/web/templates/admin/list_cron.html +++ b/web/templates/admin/list_cron.html @@ -15,25 +15,29 @@ + + diff --git a/web/templates/admin/list_firewall_banlist.html b/web/templates/admin/list_firewall_banlist.html index 8b2ce48c..42ab7203 100644 --- a/web/templates/admin/list_firewall_banlist.html +++ b/web/templates/admin/list_firewall_banlist.html @@ -75,7 +75,7 @@
+ +