From: cajus Date: Wed, 28 Jun 2006 11:48:48 +0000 (+0000) Subject: Added some kind of messaging plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=703bb19b0ee1eecc4a9501e7eb79932a3ccfe632;p=gosa.git Added some kind of messaging plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3961 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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"]])){