summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d2687d9)
raw | patch | inline | side by side (parent: d2687d9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Nov 2005 13:53:39 +0000 (13:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Nov 2005 13:53:39 +0000 (13:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1823 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/addons/mailqueue/class_mailqueue.inc | [new file with mode: 0644] | patch | blob |
plugins/addons/mailqueue/contents.tpl | [new file with mode: 0644] | patch | blob |
plugins/addons/mailqueue/main.inc | [new file with mode: 0644] | patch | blob |
diff --git a/plugins/addons/mailqueue/class_mailqueue.inc b/plugins/addons/mailqueue/class_mailqueue.inc
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+class mailqueue extends plugin
+{
+ /* Definitions */
+ var $plHeadline= "Mail queue";
+ var $plDescription= "This does something";
+
+ /* attribute list for save action */
+ var $attributes= array();
+ var $objectclasses= array();
+
+ function mailqueue($config, $dn= NULL)
+ {
+ /* Include config object */
+ $this->config= $config;
+
+ }
+
+ function execute()
+ {
+ /* Call parent execute */
+ plugin::execute();
+ $smarty= get_smarty();
+ return ($smarty->fetch (get_template_path('contents.tpl', TRUE)));
+ }
+
+}
+
+?>
diff --git a/plugins/addons/mailqueue/contents.tpl b/plugins/addons/mailqueue/contents.tpl
--- /dev/null
@@ -0,0 +1 @@
+Class MailQueue
diff --git a/plugins/addons/mailqueue/main.inc b/plugins/addons/mailqueue/main.inc
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+/*
+ This code is part of GOsa (https://gosa.gonicus.de)
+ Copyright (C) 2003 Cajus Pollmeier
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+if (!$remove_lock){
+ /* Page header*/
+ $display= print_header(get_template_path('images/logview.png'), _("Mail queue"));
+
+ /* Create mailqueue object on demand */
+ if (!isset($_SESSION['mailqueue']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){
+ $_SESSION['mailqueue']= new mailqueue ($config);
+ }
+ $mailqueue= $_SESSION['mailqueue'];
+
+ /* Execute formular */
+ $display.= $mailqueue->execute ();
+ $display.= "<input type=\"hidden\" name=\"ignore\">\n";
+
+ /* Store changes in session */
+ $_SESSION['mailqueue']= $mailqueue;
+}
+?>