login.php with no username anymore
authorx2000habouzit <x2000habouzit>
Thu, 2 Sep 2004 18:30:34 +0000 (18:30 +0000)
committerx2000habouzit <x2000habouzit>
Thu, 2 Sep 2004 18:30:34 +0000 (18:30 +0000)
htdocs/login.php
templates/login.tpl

index 708c657..0dae491 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: login.php,v 1.12 2004-08-31 10:03:28 x2000habouzit Exp $
+        $Id: login.php,v 1.13 2004-09-02 18:30:34 x2000habouzit Exp $
  ***************************************************************************/
 
 require("auto.prepend.inc.php");
@@ -75,7 +75,7 @@ $page->assign_by_ref('publicite', $publicite);
 // affichage des evenements
 // annonces promos triées par présence d'une limite sur les promos
 // puis par dates croissantes d'expiration
-$sql = "SELECT e.id,e.titre,e.texte,a.username,a.nom,a.prenom,a.promo
+$sql = "SELECT e.id,e.titre,e.texte,a.user_id,a.nom,a.prenom,a.promo
         FROM evenements AS e INNER JOIN auth_user_md5 AS a
         ON e.user_id=a.user_id
         WHERE FIND_IN_SET(flags, 'valide') AND peremption >= NOW()
index dc94676..9b3c6d6 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: login.tpl,v 1.9 2004-08-31 11:25:39 x2000habouzit Exp $
+        $Id: login.tpl,v 1.10 2004-09-02 18:30:34 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -49,7 +49,7 @@
   
 {dynamic on="0$fiche_incitation"}
   <p>La dernière mise à jour de ta
-  <a href="javascript:x()" onclick="popWin('fiche.php?user={$smarty.session.username}">fiche</a>
+  <a href="javascript:x()" onclick="popWin('fiche.php?uid={$smarty.session.user_id}">fiche</a>
   date du {$fiche_incitation|date_format:"%x"}.
   Il est possible qu'elle ne soit pas à jour.
   Si tu souhaites la modifier, <a href=\"profil.php\">clique ici !</a>
@@ -91,7 +91,7 @@
         {$ev.texte|smarty:nodefaults|nl2br}
         <br />
         <p class="smaller">Annonce proposée par
-        <a href="javascript:x()" onclick="popWin('fiche.php?user={$ev.username}')">
+        <a href="javascript:x()" onclick="popWin('fiche.php?uid={$ev.user_id}')">
           {$ev.prenom} {$ev.nom} X{$ev.promo}
         </a>
         </p>