From: Pierre Habouzit (MadCoder Date: Fri, 3 Dec 2004 12:24:02 +0000 (+0000) Subject: some configurations X-Git-Tag: xorg/old~713 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a908d2c8bac4d6e549b793af69a9e9e5a178aff8;p=platal.git some configurations git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-29 --- diff --git a/include/conf.d/newsletter.globals.inc.php b/include/conf.d/newsletter.globals.inc.php new file mode 100644 index 0000000..63ed7d7 --- /dev/null +++ b/include/conf.d/newsletter.globals.inc.php @@ -0,0 +1,35 @@ +"; + var $replyto = "null@example.org"; +} + +// }}} + +$this->newsletter = new NLConfig; + +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker: +?> diff --git a/include/newsletter.inc.php b/include/newsletter.inc.php index 96d0e79..a18cfe1 100644 --- a/include/newsletter.inc.php +++ b/include/newsletter.inc.php @@ -253,12 +253,14 @@ EOF; } function sendTo($prenom,$nom,$login,$sex,$html) { + global $globals; require_once('diogenes.hermes.inc.php'); + $mailer = new HermesMailer(); - $mailer->setFrom("\"Lettre Mensuelle Polytechnique.org\" "); + $mailer->setFrom($globals->newsletter->from); $mailer->setSubject($this->title()); $mailer->addTo("\"$prenom $nom\" <$login@polytechnique.org>"); - $mailer->addHeader('Reply-To','info+nlp@polytechnique.org'); + $mailer->addHeader('Reply-To',$globals->newsletter->replyto); $mailer->setTxtBody($this->toText($prenom,$nom,$sex)); if($html) { $mailer->setHTMLBody($this->toHtml($prenom,$nom,$sex,true)); diff --git a/install.d/banana/README b/install.d/banana/README index bb5c453..ae47f89 100644 --- a/install.d/banana/README +++ b/install.d/banana/README @@ -35,5 +35,6 @@ DEPENDS ------- platal - + + uncompface (usually in compface) + + convert (usually in imagemagick) diff --git a/install.d/newsletter/README b/install.d/newsletter/README index b828bf3..c40d4fe 100644 --- a/install.d/newsletter/README +++ b/install.d/newsletter/README @@ -21,4 +21,3 @@ DEPENDS platal - diff --git a/install.d/newsletter/files b/install.d/newsletter/files index a2b85eb..4a0ee42 100644 --- a/install.d/newsletter/files +++ b/install.d/newsletter/files @@ -7,6 +7,7 @@ htdocs/css/nl.css htdocs/newsletter/index.php htdocs/newsletter/show.php htdocs/newsletter/submit.php +include/conf.d/newsletter.globals.inc.php include/conf.d/newsletter.menu.inc.php include/newsletter.inc.php templates/admin/newsletter_edit.tpl