From c052787778bdfad502e40bd84dbe01b5d33a225b Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 24 Nov 2005 06:10:10 +0000 Subject: [PATCH] updated del cmd git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2026 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/mailqueue/class_mailqueue.inc | 7 ++++--- plugins/addons/mailqueue/contents.tpl | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/addons/mailqueue/class_mailqueue.inc b/plugins/addons/mailqueue/class_mailqueue.inc index b995d101a..fa8aef008 100644 --- a/plugins/addons/mailqueue/class_mailqueue.inc +++ b/plugins/addons/mailqueue/class_mailqueue.inc @@ -31,6 +31,7 @@ class mailqueue extends plugin function pass_cmd($str) { +// print_red($str); return(shell_exec($str)); } @@ -64,15 +65,15 @@ class mailqueue extends plugin /* Check all post that will effect all entries */ $only_once = true; - foreach(array("unhold_all","hold_all","remove_all","requeue_all") as $attr){ + foreach(array("unhold_all","hold_all","del_all","requeue_all") as $attr){ foreach($_POST as $name => $value){ if((preg_match("/".$attr."/",$name))&&($only_once)){ $only_once = false; $act = preg_replace("/_.*$/i","",$attr); $r_cmd = preg_replace("/%action/" , $act ,$this->mailQueueScript); $r_cmd = preg_replace("/%server/" , $se_str ,$r_cmd); - $r_cmd = preg_replace("/%id/" , "all" ,$r_cmd); - if(!$this->pass_cmd($r_cmd)){ + $r_cmd = preg_replace("/%id/" , "ALL" ,$r_cmd); + if($this->pass_cmd($r_cmd)==false){ print_red(sprintf(_("Please check your 'gosa.conf' the given '%s' can't be executed."),$r_cmd)); } } diff --git a/plugins/addons/mailqueue/contents.tpl b/plugins/addons/mailqueue/contents.tpl index 049a7b9b2..ff855eb70 100644 --- a/plugins/addons/mailqueue/contents.tpl +++ b/plugins/addons/mailqueue/contents.tpl @@ -27,7 +27,7 @@   - -- 2.30.2