Code

Added mqilQueue Commands
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Nov 2005 05:11:09 +0000 (05:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Nov 2005 05:11:09 +0000 (05:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1828 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/gosa.conf
plugins/addons/mailqueue/class_mailqueue.inc

index 9454e3eea49447690bdf5a62626d677609d1dc6e..8bc676e09ef4c3d9b5a74e9cf4da5e388c44602b 100644 (file)
@@ -58,6 +58,8 @@
                        <plugin acl="logs" class="logview" icon="logview.png"
                 path="plugins/addons/logview" />
                        <plugin acl="mailqueue" class="mailqueue" icon="mailqueue.png"
+                               mailqueue_query_command ="" 
+                               mailqueue_remove_command="" 
                                path="plugins/addons/mailqueue" />
                        <plugin acl="ldif" class="ldif" icon="ldif.png"
                                path="plugins/addons/ldapmanager" />
index 95e8819f43dd83f755577a81f9f07a1648136c06..a07c5330416d875946be6041c40d0dc091d12151 100644 (file)
@@ -10,11 +10,16 @@ class mailqueue extends plugin
   var $attributes= array();
   var $objectclasses= array();
 
+  var $QueryCommand = "";
+  var $RemoveCommand= "";
+
   function mailqueue($config, $dn= NULL)
   {
        /* Include config object */
        $this->config= $config;
 
+       $this->QueryCommand = search_config($this->config->data['MENU'], "mailqueue", "MAILQUEUE_QUERY_COMMAND");
+       $this->RemoveCommand= search_config($this->config->data['MENU'], "mailqueue", "MAILQUEUE_REMOVE_COMMAND");
   }
 
   function execute()
@@ -22,6 +27,8 @@ class mailqueue extends plugin
        /* Call parent execute */
        plugin::execute();
        $smarty= get_smarty();
+       print search_config($this->config->data['MENU'], "mailqueue", "MAILQUEUE_QUERY_COMMAND");
+       print search_config($this->config->data['MENU'], "mailqueue", "MAILQUEUE_REMOVE_COMMAND");
        return ($smarty->fetch (get_template_path('contents.tpl', TRUE)));
   }