X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=hooks%2Femails.inc.php;h=996eedf03d51f2cc40f443fdf0ce7ee3a6a6e2ea;hb=808852c59c57a98ea205d9edeefba655aa68412b;hp=96cff9f46ef8eba9810e8a58fc851cf67e79f563;hpb=81b5b7466a2fc652e261045a2eecfff6a63107f5;p=platal.git diff --git a/hooks/emails.inc.php b/hooks/emails.inc.php index 96cff9f..996eedf 100644 --- a/hooks/emails.inc.php +++ b/hooks/emails.inc.php @@ -31,8 +31,6 @@ class MailConfig var $alias_dom = ''; var $alias_dom2 = ''; - var $send_form = true; - function shorter_domain() { if (empty($this->domain2) || strlen($this->domain2)>strlen($this->domain)) { @@ -51,47 +49,4 @@ function emails_config() $globals->mail = new MailConfig; } // }}} -// {{{ menu HOOK - -function emails_menu() -{ - global $globals; - $globals->menu->addPrivateEntry(XOM_CUSTOM, 00, 'Mes emails', 'emails'); - - if ($globals->mail->send_form) { - $globals->menu->addPrivateEntry(XOM_SERVICES, 00, 'Envoyer un mail', 'emails/send'); - } - - $globals->menu->addPrivateEntry(XOM_SERVICES, 40, 'Patte cassée', 'emails/broken'); - -} - -// }}} -// {{{ prefs HOOK - -function emails_prefs() -{ - global $globals; - - $res[] = Array( - 'url' => 'emails', - 'title' => 'Mes adresses de redirection', - 'text' => 'Tu peux configurer tes différentes redirections de mails ici.', - 'weight' => 10 - ); - - if ($globals->mail->alias_dom) { - $res [] = Array( - 'url' => 'emails/alias', - 'title' => 'Mon alias mail @'.$globals->mail->alias_dom, - 'text' => "Pour choisir un alias @{$globals->mail->alias_dom}/{$globals->mail->alias_dom2} (en choisir un nouveau annule l'ancien).", - 'weight' => 20 - ); - } - - - return $res; -} - -// }}} ?>