From 703bb19b0ee1eecc4a9501e7eb79932a3ccfe632 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 28 Jun 2006 11:48:48 +0000 Subject: [PATCH] Added some kind of messaging plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3961 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 6 +- html/images/notifications.png | Bin 0 -> 3972 bytes .../addons/notifications/class_msgplug.inc | 229 ++++++++++++++++++ plugins/addons/notifications/contents.tpl | 76 ++++++ plugins/addons/notifications/main.inc | 47 ++++ plugins/personal/mail/class_mailAccount.inc | 5 +- 6 files changed, 357 insertions(+), 6 deletions(-) create mode 100755 html/images/notifications.png create mode 100644 plugins/addons/notifications/class_msgplug.inc create mode 100644 plugins/addons/notifications/contents.tpl create mode 100644 plugins/addons/notifications/main.inc diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 01a127cf1..cf56c5681 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -40,8 +40,8 @@ icon="application.png" path="plugins/admin/applications" /> - + + +{else} +

{t}Notification send!{/t}

+

 

+
+{t}Your message has been sent successfully. Press the continue button to get back to the notification plugin.{/t} +

 

+
+ +
+{/if} diff --git a/plugins/addons/notifications/main.inc b/plugins/addons/notifications/main.inc new file mode 100644 index 000000000..fe806b8b2 --- /dev/null +++ b/plugins/addons/notifications/main.inc @@ -0,0 +1,47 @@ +dn, $ui->subtreeACL); + $msgplug->acl= get_module_permission($acl, "msgplug", $ui->dn); + + /* save changes back to object */ + if (isset ($_POST['target'])){ + $msgplug->save_object (); + } + + /* Execute formular */ + $display= $msgplug->execute (); + $display.= "\n"; + + /* Page header*/ + $display= print_header(get_template_path('images/notifications.png'), _("Notifications")).$display; + + /* Store changes in session */ + $_SESSION['msgplug']= $msgplug; +} +?> diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index bff7beeb0..2ade42931 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -157,9 +157,6 @@ class mailAccount extends plugin } } - - /* Get vacation message */ - /* Fill vacation array */ $this->vacation= array(); if (isset($this->config->current['VACATIONDIR'])){ @@ -379,7 +376,7 @@ class mailAccount extends plugin } - /* Vocation message */ + /* Vacation message */ /* Import vacation message? */ if (isset($_POST["import_vacation"]) && isset($this->vacation[$_POST["vacation_template"]])){ -- 2.30.2