From: Vincent Zanotti Date: Mon, 16 Jun 2008 15:46:54 +0000 (+0200) Subject: Merge branch 'platal-0.9.17' into hruid X-Git-Tag: xorg/0.10.0~86^2~66 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=eb0dd7adf65fadbee6521766fadf5a3ff8cec25e;p=platal.git Merge branch 'platal-0.9.17' into hruid Conflicts: include/banana/forum.inc.php modules/forums.php modules/marketing.php Signed-off-by: Vincent Zanotti --- eb0dd7adf65fadbee6521766fadf5a3ff8cec25e diff --cc include/banana/forum.inc.php index 2f233af,89fa0c9..96e9a58 --- a/include/banana/forum.inc.php +++ b/include/banana/forum.inc.php @@@ -214,8 -193,34 +191,34 @@@ class ForumsBanana extends Banan VALUES ({?}, {?}, {?}, {?}, {?})", S::v('uid'), Post::v('bananasig'), Post::v('bananamail'), Post::v('banananame'), - implode(',', $flags)); + $flags)) { + $page->trigSuccess("Ton profil a été enregistré avec succès."); + } else { + $page->trigError("Une erreur s'est produite lors de l'enregistrement de ton profil"); + } + } + + $req = XDB::query(" + SELECT nom, mail, sig, + FIND_IN_SET('threads', flags), + FIND_IN_SET('automaj', flags), + FIND_IN_SET('xface', flags) + FROM forums.profils + WHERE uid = {?}", S::v('uid')); + if (!(list($nom, $mail, $sig, $disp, $maj, $xface) = $req->fetchOneRow())) { + $nom = S::v('prenom').' '.S::v('nom'); - $mail = S::v('forlife').'@'.$globals->mail->domain; ++ $mail = S::user()->forlifeEmail(); + $sig = $nom.' ('.S::v('promo').')'; + $disp = 0; + $maj = 0; + $xface = 0; } + $page->assign('nom' , $nom); + $page->assign('mail', $mail); + $page->assign('sig', $sig); + $page->assign('disp', $disp); + $page->assign('maj', $maj); + $page->assign('xface', $xface); return null; } }