* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: utilisateurs.php,v 1.16 2004-09-02 19:39:20 x2000habouzit Exp $
+ $Id: utilisateurs.php,v 1.17 2004-09-02 23:06:11 x2000habouzit Exp $
***************************************************************************/
require("auto.prepend.inc.php");
}
if(isset($mr)) {
+ $r=$globals->db->query("SELECT alias FROM aliases WHERE ( id = {$mr['user_id']} AND tpe='a_vie' )");
+ list($forlife) = mysql_fetch_row($r);
+ mysql_free_result($r);
+ $mr['forlife'] = $forlife;
$page->assign('mr',$mr);
$result=$globals->db->query("SELECT UNIX_TIMESTAMP(s.start), s.host
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: epouse.php,v 1.6 2004-09-01 22:15:54 x2000habouzit Exp $
+ $Id: epouse.php,v 1.7 2004-09-02 23:06:10 x2000habouzit Exp $
***************************************************************************/
require("auto.prepend.inc.php");
$page->assign('same',true);
} else { // le nom de mariage est distinct du nom à l'X
// on calcule l'alias pour l'afficher
- $myepouse = new EpouseReq($_SESSION['uid'], $_SESSION['username'], $epouse);
- list($prenom_username,) = explode('.',$_SESSION['username']);
+ $myepouse = new EpouseReq($_SESSION['uid'], $_SESSION['forlife'], $epouse);
+ list($prenom_username,) = explode('.',$_SESSION['forlife']);
$alias_old=make_username($prenom_username,$epouse_old);
$myepouse->submit();
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: login.php,v 1.13 2004-09-02 18:30:34 x2000habouzit Exp $
+ $Id: login.php,v 1.14 2004-09-02 23:06:10 x2000habouzit Exp $
***************************************************************************/
require("auto.prepend.inc.php");
// 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.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()
- AND (e.promo_min = 0 || e.promo_min <= {$_SESSION['promo']})
- AND (e.promo_max = 0 || e.promo_max >= {$_SESSION['promo']})
- ORDER BY (e.promo_min != 0 AND e.promo_max != 0) DESC, e.peremption";
+$sql = "SELECT e.id,e.titre,e.texte,a.user_id,a.nom,a.prenom,a.promo,l.alias AS forlife
+ FROM evenements AS e
+ INNER JOIN auth_user_md5 AS a ON e.user_id=a.user_id
+ INNER JOIN aliases AS l ON ( a.user_id=l.id AND l.type='a_vie' )
+ WHERE FIND_IN_SET(flags, 'valide') AND peremption >= NOW()
+ AND (e.promo_min = 0 || e.promo_min <= {$_SESSION['promo']})
+ AND (e.promo_max = 0 || e.promo_max >= {$_SESSION['promo']})
+ ORDER BY (e.promo_min != 0 AND e.promo_max != 0) DESC, e.peremption";
$page->mysql_assign($sql, 'evenement');
$page->assign('toto',"");
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: mescontacts.php,v 1.7 2004-09-02 19:51:22 x2000habouzit Exp $
+ $Id: mescontacts.php,v 1.8 2004-09-02 23:06:10 x2000habouzit Exp $
***************************************************************************/
require("auto.prepend.inc.php");
}
$sql = "SELECT contact AS id,
- a.*,
+ a.*, l.alias AS forlife
i.deces != 0 AS dcd, i.matricule_ax,
e.entreprise, es.label AS secteur, ef.label AS fonction,
n.text AS nat,
FROM contacts AS c
INNER JOIN auth_user_md5 AS a ON (a.user_id = c.contact)
INNER JOIN identification AS i ON (a.matricule = i.matricule)
+ INNER JOIN aliases AS l ON (a.user_id = l.id AND l.type='a_vie')
LEFT JOIN entreprises AS e ON (e.entrid = 1 AND e.uid = a.user_id)
LEFT JOIN emploi_secteur AS es ON (e.secteur = es.id)
LEFT JOIN emploi_naf AS ef ON (e.fonction = ef.id)
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: utilisateurs.tpl,v 1.12 2004-09-02 17:43:14 x2000habouzit Exp $
+ $Id: utilisateurs.tpl,v 1.13 2004-09-02 23:06:11 x2000habouzit Exp $
***************************************************************************}
</tr>
<tr class="center">
<td>
- <a href="javascript:x()" onclick="popWin('{"fiche.php?id=`$mr.user_id`"|url}')">[Voir fiche]</a>
+ <a href="javascript:x()" onclick="popWin('{"fiche.php?user=`$mr.forlife`"|url}')">[Voir fiche]</a>
</td>
<td>
<input onclick="doEditUser(); return true;" type="submit" name="u_edit" value="UPDATE" />
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: x_inscrit.tpl,v 1.7 2004-09-02 19:51:23 x2000habouzit Exp $
+ $Id: x_inscrit.tpl,v 1.8 2004-09-02 23:06:11 x2000habouzit Exp $
***************************************************************************}
{/strip}
</div>
<div class="bits">
- <a href="javascript:x()" onclick="popWin('fiche.php?user={$c.user_id}')">
+ <a href="javascript:x()" onclick="popWin('fiche.php?user={$c.forlife}')">
<img src="images/loupe.gif" alt="Afficher les détails" />
</a>
<a href="vcard.php/{$c.prenom}{$c.nom}..{$c.promo}.vcf?x={$c.user_id}">
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: login.tpl,v 1.10 2004-09-02 18:30:34 x2000habouzit Exp $
+ $Id: login.tpl,v 1.11 2004-09-02 23:06:11 x2000habouzit Exp $
***************************************************************************}
{dynamic on="0$fiche_incitation"}
<p>La dernière mise à jour de ta
- <a href="javascript:x()" onclick="popWin('fiche.php?uid={$smarty.session.user_id}">fiche</a>
+ <a href="javascript:x()" onclick="popWin('fiche.php?user={$smarty.session.forlife}">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>
{$ev.texte|smarty:nodefaults|nl2br}
<br />
<p class="smaller">Annonce proposée par
- <a href="javascript:x()" onclick="popWin('fiche.php?uid={$ev.user_id}')">
+ <a href="javascript:x()" onclick="popWin('fiche.php?user={$ev.forlife}')">
{$ev.prenom} {$ev.nom} X{$ev.promo}
</a>
</p>