* Core:
- Password strength checker -FRU
- Show user picture on the mini-profile -FRU
+ - Add an anti-XSRF framework, and add protection to most pages -VZA
+
+Bug/Wish:
+ * Core:
+ - Fix email sending, correcting bugs introduced in r1897 -VZA
From 0.9.16 branch:
protected function _mail_subj()
{
+ global $globals;
return "[Polytechnique.org/Support] ".($this->warning?"Dans une semaine : suppression de l'alias":"Mise en place du robot")." $loginbis@" . $globals->mail->domain;
}
signature = {?}, promo_min = {?}, promo_max = {?}, echeance = {?}",
$id, $shortname, $subject, $title, $body, $signature, $promo_min, $promo_max, $echeance);
if (!$saved) {
+ global $globals;
$mailer = new PlMailer();
$mailer->setFrom("support@" . $globals->mail->domain);
$mailer->setSubject("Un nouveau projet de mail de l'AX vient d'ĂȘtre proposĂ©");
INNER JOIN auth_user_md5 AS u USING(user_id)
INNER JOIN aliases AS a ON (u.user_id = a.id
AND FIND_IN_SET('bestalias', a.flags))");
- global $globals;
while (list($nom, $prenom, $alias) = $res->next()) {
$mailer->addTo("$nom $prenom <$alias@{$globals->mail->domain}>");
}
function handler_private(&$page, $uid = null,
$action = null, $value = null)
{
+ global $globals;
$page->changeTpl('marketing/private.tpl');
if (is_null($uid)) {
/* sort en affichant une erreur */
function cb_erreur($text) {
+ global $globals;
$mymail = new PlMailer();
$mymail->addTo($globals->money->email);
$mymail->setFrom("webmaster@" . $globals->mail->domain);
/* sort en affichant une erreur */
function paypal_erreur($text, $send=true)
{
- global $page, $erreur;
+ global $page, $erreur, $globals;
if ($erreur) return;
$erreur = $text;
if (!$send) return;
$alert .= "Tentative d'inscription depuis une IP surveillee";
}
if ($email_banned || $ip_banned) {
+ global $globals;
$err = "Une erreur s'est produite lors de l'inscription."
. " Merci de contacter <a href='mailto:register@{$globals->mail->domain}>"
. " register@{$globals->mail->domain}</a>"
function create_aliases (&$sub)
{
+ global $globals;
extract ($sub);
require_once "xorg.misc.inc.php";