<?php
/***************************************************************************
- * Copyright (C) 2003-2009 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+class ReminderEmailWarning extends Reminder
+{
+ public function HandleAction($action)
+ {
+ if ($action == 'dismiss') {
+ $this->UpdateOnDismiss();
+ }
+ }
+
+ public function template()
+ {
+ return 'reminder/email_warning.tpl';
+ }
+ public function title()
+ {
+ return "Problème avec ta redirections d'emails";
+ }
+ public function warning()
+ {
+ return true;
+ }
+
+ public static function IsCandidate(User $user, $candidate)
+ {
+ if (!$user->checkPerms(User::PERM_MAIL)) {
+ return false;
+ }
+
+ return count(S::v('mx_failures', array())) > 0;
+ }
+}
+
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>