From: x2000habouzit Date: Fri, 26 Nov 2004 08:08:07 +0000 (+0000) Subject: backport X-Git-Tag: xorg/old~778 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5cd73bfc7f058dda072cbd213f41b1b69643c0ab;p=platal.git backport --- diff --git a/htdocs/banana/include/profile.inc.php b/htdocs/banana/include/profile.inc.php index 92099c8..9d7db62 100644 --- a/htdocs/banana/include/profile.inc.php +++ b/htdocs/banana/include/profile.inc.php @@ -24,6 +24,7 @@ function checkcancel($_headers) { function getprofile() { if (logged()) { + global $globals; $req = mysql_query("SELECT nom,mail,sig,if(FIND_IN_SET('threads',flags),'1','0'), IF(FIND_IN_SET('automaj',flags),'1','0') FROM forums.profils @@ -44,7 +45,7 @@ function getprofile() { $array['lastnews'] = $_SESSION['banana_last']; $array['dropsig'] = true; if ($maj) { - mysql_query("UPDATE auth_user_md5 SET banana_last='" + mysql_query("UPDATE auth_user_quick SET banana_last='" .gmdate("YmdHis")."' WHERE user_id='{$_SESSION['uid']}'"); } $req=mysql_query("SELECT nom