Remove deprecated stuff.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 16 Jun 2008 15:16:41 +0000 (17:16 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 16 Jun 2008 15:25:04 +0000 (17:25 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/forums.php

index 3354d85..c9538c9 100644 (file)
@@ -70,56 +70,6 @@ class ForumsModule extends PLModule
         run_banana($page, 'ForumsBanana', $get);
     }
 
-    function handler_profile(&$page, $action = null)
-    {
-        global $globals;
-
-        $page->changeTpl('banana/profile.tpl');
-
-        if (!(Post::has('action') && Post::has('banananame') && Post::has('bananasig')
-        && Post::has('bananadisplay') && Post::has('bananamail')
-        && Post::has('bananaupdate') && Post::v('action')=="Enregistrer" ))
-        {
-            $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;
-                $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);
-        } else {
-            $flags = array();
-            if (Post::b('bananadisplay')) {
-                $flags[] = 'threads';
-            }
-            if (Post::b('bananaupdate')) {
-                $flags[] = 'automaj';
-            }
-            if (Post::b('bananaxface')) {
-                $flags[] = 'xface';
-            }
-            XDB::execute("REPLACE INTO  forums.profils (uid, sig, mail, nom, flags)
-                                VALUES  ({?}, {?}, {?}, {?}, {?})",
-                         S::v('uid'), Post::v('bananasig'),
-                         Post::v('bananamail'), Post::v('banananame'),
-                         implode(',', $flags));
-        }
-    }
-
     function handler_rss(&$page, $group, $alias, $hash, $file = null)
     {
         if (is_null($file)) {