From: Stéphane Jacob Date: Sat, 9 May 2009 22:30:20 +0000 (+0200) Subject: Adds nl reminder. X-Git-Tag: xorg/0.10.1~76 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fa07eee0d6d2a6536ee68846c65cb5c32ccbbdd1;p=platal.git Adds nl reminder. --- diff --git a/include/reminder/nl.inc.php b/include/reminder/nl.inc.php new file mode 100644 index 0000000..fe3d704 --- /dev/null +++ b/include/reminder/nl.inc.php @@ -0,0 +1,56 @@ +UpdateOnYes(); + } + + if ($action == 'dismiss') { + $this->UpdateOnDismiss(); + } + + if ($action == 'no') { + $this->UpdateOnNo(); + } + } + + protected function GetDisplayText() + { + return "La lettre mensuelle de Polytechnique.org te permet de recevoir + chaque mois des informations sur les activités et nouvelles de la + communauté des X."; + } + + public static function IsCandidate(User &$user) + { + require_once 'newsletter.inc.php'; + return !(Newsletter::subscriptionState()); + } +} + +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +?>