require_once('../../plugins/modifier.date_format.php');
$date = smarty_modifier_date_format($x['date'], '%d %b %Y');
$text .= " - (X{$x['promo']}) {$x['prenom']} {$x['nom']} le $date\n";
- $text .= " {$globals->baseurl}/fiche.php?user={$x['bestalias']}&force_login=1\n\n";
- $html .= "<li>(X{$x['promo']}) <a href='{$globals->baseurl}/fiche.php?user={$x['bestalias']}&force_login=1'>{$x['prenom']} {$x['nom']}</a> le $date</li>\n";
+ $text .= " {$globals->baseurl}/profile/{$x['bestalias']}&force_login=1\n\n";
+ $html .= "<li>(X{$x['promo']}) <a href='{$globals->baseurl}/profile/{$x['bestalias']}&force_login=1'>{$x['prenom']} {$x['nom']}</a> le $date</li>\n";
}
$text .= "\n";
$html .= "</ul>\n";
<?php
require 'xnet.inc.php';
- redirect("https://www.polytechnique.org/fiche.php?user=".$_GET['user']);
+ redirect("https://www.polytechnique.org/profile/".$_GET['user']);
?>
+++ /dev/null
-<?php
-/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
- * http://opensource.polytechnique.org/ *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., *
- * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
- ***************************************************************************/
-
-
-require_once("xorg.inc.php");
-
-// manage the public fiche or ax fiche
-$view = 'private';
-if (!logged() || Env::get('view') == 'public') $view = 'public';
-if (logged() && Env::get('view') == 'ax') $view = 'ax';
-
-new_simple_page('fiche.tpl', ($view == 'public')?AUTH_PUBLIC:AUTH_COOKIE);
-require_once('user.func.inc.php');
-
-if (!Env::has('user') && !Env::has('mat')) {
- $page->kill("cette page n'existe pas");
-}
-
-if (Env::has('user')) {
- $login = get_user_forlife(Env::get('user'));
- if ($login === false) {
- $page->kill("");
- }
-}
-
-if (Env::has('mat')) {
- $res = $globals->xdb->query(
- "SELECT alias
- FROM aliases AS a
- INNER JOIN auth_user_md5 AS u ON (a.id=u.user_id AND a.type='a_vie')
- WHERE matricule={?}", Env::getInt('mat'));
- $login = $res->fetchOneCell();
- if (empty($login)) {
- $page->kill("cette page n'existe pas");
- }
-}
-
-$new = Env::get('modif') == 'new';
-$user = get_user_details($login, Session::getInt('uid'), $view);
-$title = $user['prenom'] . ' ' . empty($user['nom_usage']) ? $user['nom'] : $user['nom_usage'];
-$page->assign('xorg_title', $title);
-
-// photo
-
-$photo = 'photo/'.$user['forlife'].($new ? '/req' : '');
-
-if(!isset($user['y']) and !isset($user['x'])) {
- list($user['x'], $user['y']) = getimagesize("images/none.png");
-}
-if(!isset($user['y']) or $user['y'] < 1) $user['y']=1;
-if(!isset($user['x']) or $user['x'] < 1) $user['x']=1;
-if($user['x'] > 240){
- $user['y'] = (integer)($user['y']*240/$user['x']);
- $user['x'] = 240;
-}
-if($user['y'] > 300){
- $user['x'] = (integer)($user['x']*300/$user['y']);
- $user['y'] = 300;
-}
-if($user['x'] < 160){
- $user['y'] = (integer)($user['y']*160/$user['x']);
- $user['x'] = 160;
-}
-
-$page->assign('logged', has_user_right('private', $view));
-if (!has_user_right($user['photo_pub'], $view)) {
- $photo = "";
-}
-
-$page->assign_by_ref('x', $user);
-$page->assign('photo_url', $photo);
-// alias virtual
-$res = $globals->xdb->query(
- "SELECT alias
- FROM virtual
- INNER JOIN virtual_redirect USING(vid)
- INNER JOIN auth_user_quick ON ( user_id = {?} AND emails_alias_pub = 'public' )
- WHERE ( redirect={?} OR redirect={?} )
- AND alias LIKE '%@{$globals->mail->alias_dom}'",
- Session::getInt('uid'), $user['forlife'].'@'.$globals->mail->domain, $user['forlife'].'@'.$globals->mail->domain2);
-$page->assign('virtualalias', $res->fetchOneCell());
-
-$page->addJsLink('javascript/close_on_esc.js');
-$page->run();
-
-// vim:set et sws=4 sw=4 sts=4:
-?>
function hook_formatDisplayHeader($_header,$_text) {
global $globals;
if ($_header == 'x-org-id') {
- return $_text . ' [<a href="' . $globals->baseurl . '/fiche.php?user='
+ return $_text . ' [<a href="' . $globals->baseurl . '/profile/'
. $_text . '" class="popup2">fiche</a>]';
}
}
'photo' => $this->make_hook('photo', AUTH_PUBLIC),
'photo/change' => $this->make_hook('photo_change', AUTH_MDP),
+ 'fiche.php' => $this->make_hook('fiche', AUTH_PUBLIC),
+ 'profile' => $this->make_hook('profile', AUTH_PUBLIC),
'profile/orange' => $this->make_hook('p_orange', AUTH_MDP),
'profile/referent' => $this->make_hook('p_referent', AUTH_MDP),
'profile/usage' => $this->make_hook('p_usage', AUTH_MDP),
);
}
+ /* XXX COMPAT */
+ function handler_fiche(&$page)
+ {
+ return $this->handler_profile($page, Env::get('user'));
+ }
+
+
function _trombi_getlist($offset, $limit)
{
global $globals;
return PL_OK;
}
+ function handler_profile(&$page, $x = null)
+ {
+ if (is_null($x)) {
+ return PL_NOT_FOUND;
+ }
+
+ global $globals;
+ require_once 'user.func.inc.php';
+
+ $page->changeTpl('fiche.tpl');
+ $page->assign('simple', true);
+
+ $view = 'private';
+ if (!logged() || Env::get('view') == 'public') $view = 'public';
+ if (logged() && Env::get('view') == 'ax') $view = 'ax';
+
+ if (is_numeric($x)) {
+ $res = $globals->xdb->query(
+ "SELECT alias
+ FROM aliases AS a
+ INNER JOIN auth_user_md5 AS u ON (a.id=u.user_id AND a.type='a_vie')
+ WHERE matricule={?}", $x);
+ $login = $res->fetchOneCell();
+ } else {
+ $login = get_user_forlife($x);
+ }
+
+ if (empty($login)) {
+ return PL_NOT_FOUND;
+ }
+
+ $new = Env::get('modif') == 'new';
+ $user = get_user_details($login, Session::getInt('uid'), $view);
+ $title = $user['prenom'] . ' ' . empty($user['nom_usage']) ? $user['nom'] : $user['nom_usage'];
+ $page->assign('xorg_title', $title);
+
+ // photo
+
+ $photo = $globals->baseurl.'/photo/'.$user['forlife'].($new ? '/req' : '');
+
+ if(!isset($user['y']) and !isset($user['x'])) {
+ list($user['x'], $user['y']) = getimagesize("images/none.png");
+ }
+ if(!isset($user['y']) or $user['y'] < 1) $user['y']=1;
+ if(!isset($user['x']) or $user['x'] < 1) $user['x']=1;
+ if($user['x'] > 240){
+ $user['y'] = (integer)($user['y']*240/$user['x']);
+ $user['x'] = 240;
+ }
+ if($user['y'] > 300){
+ $user['x'] = (integer)($user['x']*300/$user['y']);
+ $user['y'] = 300;
+ }
+ if($user['x'] < 160){
+ $user['y'] = (integer)($user['y']*160/$user['x']);
+ $user['x'] = 160;
+ }
+
+ $page->assign('logged', has_user_right('private', $view));
+ if (!has_user_right($user['photo_pub'], $view)) {
+ $photo = "";
+ }
+
+ $page->assign_by_ref('x', $user);
+ $page->assign('photo_url', $photo);
+ // alias virtual
+ $res = $globals->xdb->query(
+ "SELECT alias
+ FROM virtual
+ INNER JOIN virtual_redirect USING(vid)
+ INNER JOIN auth_user_quick ON ( user_id = {?} AND emails_alias_pub = 'public' )
+ WHERE ( redirect={?} OR redirect={?} )
+ AND alias LIKE '%@{$globals->mail->alias_dom}'",
+ Session::getInt('uid'),
+ $user['forlife'].'@'.$globals->mail->domain,
+ $user['forlife'].'@'.$globals->mail->domain2);
+ $page->assign('virtualalias', $res->fetchOneCell());
+
+ $page->addJsLink('javascript/close_on_esc.js');
+
+ return PL_OK;
+ }
+
function handler_p_orange(&$page)
{
global $globals;
// set profiles to point to plat/al fiche
Markup('[[~platal', '<[[~', '/\[\[~([^|\]]*)\|([^\]]*)\]\]/e',
'PreserveText("=", \'<a href="'.$globals->baseurl
- .'/fiche.php?user=$1" class="popup2">$2</a>\', "")');
+ .'/profile/$1" class="popup2">$2</a>\', "")');
// prevent restorelinks before block apply (otherwise [[Sécurité]] will give
// .../S<span class='e9curit'>e9'>Sécurité</a>
<table class="bicol">
<tr>
<th>
- Posté par <a href="{rel}/fiche.php?user={$ev.forlife}" class='popup2'>{$ev.prenom} {$ev.nom} (X{$ev.promo})</a>
+ Posté par <a href="{rel}/profile/{$ev.forlife}" class='popup2'>{$ev.prenom} {$ev.nom} (X{$ev.promo})</a>
</th>
</tr>
<tr class="{if $ev.fvalide}impair{else}pair{/if}">
</td>
<td>{$user.expire|date_format}</td>
<td>
- <a href="{"fiche.php"|url}?user={$user.forlife}" class='popup2'>fiche</a>
+ <a href="{rel}/profile/{$user.forlife}" class='popup2'>fiche</a>
<a href="utilisateurs.php?login={$user.forlife}">edit</a>
{if $user.type eq 'alias'}
<a href="?op=mail-conf&target={$user.user_id}">mailer</a>
{/if}
<div>Les fiches de cet utilisateur :
<ul>
-<li><a href='{rel}/fiche.php?user={$x.user_id}' class='popup2'>polytechnique.org</a></li>
+<li><a href='{rel}/profile/{$x.user_id}' class='popup2'>polytechnique.org</a></li>
<li><a href='http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&anc_id={$x.matricule_ax}'>polytechniciens.com</a></li>
</ul>
</div>
</tr>
<tr class="center">
<td>
- <a href="{"fiche.php"|url}?user={$mr.forlife}" class="popup2">[Voir fiche]</a>
+ <a href="{rel}/profile/{$mr.forlife}" class="popup2">[Voir fiche]</a>
</td>
<td>
<input onclick="doEditUser(); return true;" type="submit" name="u_edit" value="UPDATE" />
<tr>
<td class="titre" style="width: 20%">Demandeur :</td>
<td>
- <a href="{rel}/fiche.php?user={$valid->bestalias}" class="popup2">
+ <a href="{rel}/profile/{$valid->bestalias}" class="popup2">
{$valid->prenom} {$valid->nom} (X{$valid->promo})
</a>
</td>
{foreach from=$valid->comments item=c}
<tr class="{cycle values="impair,pair"}">
<td class="titre">
- <a href="{rel}/fiche.php?user={$c[0]}" class="popup2">{$c[0]}</a>
+ <a href="{rel}/profile/{$c[0]}" class="popup2">{$c[0]}</a>
</td>
<td>{$c[1]}</td>
</tr>
<td class='titre' style="width:15%">{if $smarty.section.row.first}{$p}{/if}</td>
<td>
{if $promo[row].inscrit}
- <a href="{"fiche.php"|url}?user={$promo[row].bestalias}" class="popup2">
+ <a href="{rel}/profile/{$promo[row].bestalias}" class="popup2">
{$promo[row].prenom} {$promo[row].nom}
</a>
{if !$promo[row].contact}
<title>
[{$notifs->_cats[$cid].short}] {$x.prenom} {$x.nom} ({$x.promo}) - le {$x.date|date_format|utf8_encode}
</title>
- <link>{#globals.baseurl#}/fiche.php?user={$x.bestalias}&force_login=1</link>
+ <link>{#globals.baseurl#}/profile/{$x.bestalias}?force_login=1</link>
<description><![CDATA[
{if !$x.contact and !$x.dcd}
<a href="{#globals.baseurl#}/carnet/contacts?action=ajouter&user={$x.bestalias}">
<input type="checkbox" name="contacts[{$contact.forlife}]"
value="{$contact.prenom} {$contact.nom} <{$contact.forlife}@{#globals.mail.domain#}>"
{if $smarty.request.contacts && $smarty.request.contacts.forlife}checked="checked"{/if} />
- <a href="{"fiche.php"|url}?user={$contact.forlife}" class="popup2">{$contact.prenom} {$contact.nom}</a> (X{$contact.promo})
+ <a href="{rel}/profile/{$contact.forlife}" class="popup2">{$contact.prenom} {$contact.nom}</a> (X{$contact.promo})
</td>
{if $key is odd}
</tr>
{$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if}
{if $logged}
{if $x.nickname} (aka {$x.nickname}){/if}
- <a href="vcard/{$x.forlife}.vcf">
- <img src="images/vcard.png" alt="Afficher la carte de visite" title="Afficher la carte de visite"/>
+ <a href="{rel}/vcard/{$x.forlife}.vcf">
+ <img src="{rel}/images/vcard.png" alt="Afficher la carte de visite" title="Afficher la carte de visite"/>
</a>
{if !$x.is_contact}
<a href="javascript:x()" onclick="chgMainWinLoc('{rel}/carnet/contacts?action=ajouter&user={$x.forlife}')">
- <img src="images/ajouter.gif" alt="Ajouter à mes contacts" title="Ajouter à mes contacts" />
+ <img src="{rel}/images/ajouter.gif" alt="Ajouter à mes contacts" title="Ajouter à mes contacts" />
</a>
{else}
<a href="javascript:x()" onclick="chgMainWinLoc('{rel}/carnet/contacts?action=retirer&user={$x.forlife}')">
- <img src="images/retirer.gif" alt="Retirer de mes contacts" title="Retirer de mes contacts" />
+ <img src="{rel}/images/retirer.gif" alt="Retirer de mes contacts" title="Retirer de mes contacts" />
</a>
{/if}
{perms level=admin}
<a href="javascript:x()" onclick="chgMainWinLoc('{rel}/admin/utilisateurs.php?login={$x.forlife}')">
- <img src="images/admin.png" alt='admin' title="administrer user" />
+ <img src="{rel}/images/admin.png" alt='admin' title="administrer user" />
</a>
{/perms}
{/if}
{literal}
function ficheXorg(id)
{
- window.open('../fiche.php?user='+id,'_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=840,height=600');
+ window.open('{rel}/profile/'+id,'_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=840,height=600');
}
{/literal}
{if !$no_annu}
<td class="titre">Homonymes :</td>
<td>
{foreach from=$valid->homonymes_forlife item=o}
- <a href='{rel}/fiche.php?user={$o}' class='popup2'>{$o}</a>
+ <a href='{rel}/profile/{$o}' class='popup2'>{$o}</a>
{/foreach}
</td>
</tr>
<td class="titre">Gestionnaires :</td>
<td>
{foreach from=$valid->owners item=o}
- <a href="{rel}/fiche.php?user={$o}" class="popup2">{$o}</a>
+ <a href="{rel}/profile/{$o}" class="popup2">{$o}</a>
{/foreach}
</td>
</tr>
<td class="titre">Membres :</td>
<td>
{foreach from=$valid->members item=o}
- <a href="{rel}/fiche.php?user={$o}" class="popup2">{$o}</a>
+ <a href="{rel}/profile/{$o}" class="popup2">{$o}</a>
{/foreach}
</td>
</tr>
<tr class="impair">
<td colspan="2">
<span class="erreur">Probleme d'homonymie !
- <a href="{rel}/fiche.php?user=$valid->homonyme" class="popup2">{$valid->homonyme}</a>
+ <a href="{rel}/profile/{$valid->homonyme}" class="popup2">{$valid->homonyme}</a>
</span>
</td>
</tr>
<div class="nom">
{if $c.sexe}•{/if}
- {if !$c.dcd && $c.inscrit}<a href="{"fiche.php"|url}?user={$c.user_id}" class="popup2">{/if}
+ {if !$c.dcd && $c.inscrit}<a href="{rel}/profile/{$c.forlife}" class="popup2">{/if}
{if $c.nom_usage}{$c.nom_usage} {$c.prenom}<br />({$c.nom}){else}{$c.nom} {$c.prenom}{/if}
{if !$c.dcd && $c.inscrit}</a>{/if}
</div>
*}<img src="{rel}/images/retirer.gif" alt="Retirer de la liste de mes surveillances" title="Retirer de la liste de mes surveillances" /></a>
{/if}
{elseif $c.wasinscrit}
- <a href="{rel}/fiche.php?user={$c.forlife}" class="popup2">{*
+ <a href="{rel}/profile/{$c.forlife}" class="popup2">{*
*}<img src="{rel}/images/loupe.gif" alt="Afficher la fiche" title="Afficher la fiche" /></a>
{if !$c.dcd}
<a href="{rel}/vcard/{$c.forlife}.vcf">{*
<tr>
{/if}
<td class="center">
- <a href="{"fiche.php"|url}?user={$p.forlife}" class="popup2">
+ <a href="{rel}/profile/{$p.forlife}" class="popup2">
<img src="{rel}/photo/{$p.forlife}" width="110" alt=" [ PHOTO ] " />
</a>
{if $trombi_admin && $smarty.session.perms eq 'admin'}
</a>
{/if}
<br />
- <a href="{"fiche.php"|url}?user={$p.forlife}" class="popup2">
+ <a href="{rel}/profile/{$p.forlife}" class="popup2">
{$p.prenom} {$p.nom}{if $trombi_show_promo} ({$p.promo}){/if}
</a>
</td>
<td>
{foreach from=$xs item=x}
{if $promo}
- <a href="{"fiche.php"|url}?user={$x.l}" class="popup2">{$x.n}</a>
+ <a href="{rel}/profile/{$x.l}" class="popup2">{$x.n}</a>
{else}
{$x.l}
{/if}
<td>
{foreach from=$xs item=x}
{if $promo}
- <a href="{"fiche.php"|url}?user={$x.l}" class="popup2">{$x.n}</a>
+ <a href="{rel}/profile/{$x.l}" class="popup2">{$x.n}</a>
{else}
{$x.l}
{/if}
<td>
{foreach from=$xs item=x}
{if $promo}
- <a href="{"fiche.php"|url}?user={$x.l}" class="popup2">{$x.n}</a><br />
+ <a href="{rel}/profile/{$x.l}" class="popup2">{$x.n}</a><br />
{else}
{$x.l}<br />
{/if}
{foreach from=$subs item=s}
<tr class='{cycle values="pair,impair"}'>
<td>{$s.name}{if $s.login}
- <a href="{rel}/fiche.php?user={$s.login}" class="popup2">{*
+ <a href="{rel}/profile/{$s.login}" class="popup2">{*
*}<img src="{rel}/images/loupe.gif" alt="Afficher la fiche" title="Afficher la fiche" /></a>
{/if}
</td>
<td class='center'>
<img src="{rel}/photo/{$x.l}" width="110" alt=" [ PHOTO ] " />
<br />
- <a href="{"fiche.php"|url}?user={$x.l}" class="popup2">
+ <a href="{rel}/profile/{$x.l}" class="popup2">
{$x.n} ({$promo})
</a>
</td>
{if $fiche_incitation}
<p>La dernière mise à jour de ta
- <a href="{rel}/fiche.php?user={$smarty.session.forlife}" class="popup2">fiche</a>
+ <a href="{rel}/profile/{$smarty.session.forlife}" class="popup2">fiche</a>
date du {$fiche_incitation|date_format}.
Il est possible qu'elle ne soit pas à jour.
Si tu souhaites la modifier, <a href="profil.php">clique ici !</a>
{/tidy}
<br />
<p class="smaller"><a href="#" style="display:block;float:right"><img alt="Sommaire" title="Remonter tout en haut" src="{rel}/images/up.png"/></a>Annonce proposée par
- <a href="{rel}/fiche.php?user={$ev.forlife}" class="popup2">
+ <a href="{rel}/profile/{$ev.forlife}" class="popup2">
{$ev.prenom} {$ev.nom} X{$ev.promo}
</a>
</p>
{iterate from=$addr item=a}
<tr class="{cycle values='impair,pair'}">
<td>{$a.email}</td>
- <td><a href="{rel}/fiche.php?user={$a.alias}" class="popup2">{$a.alias}</a> {if $a.type eq user}(*){/if}</td>
+ <td><a href="{rel}/profile/{$a.alias}" class="popup2">{$a.alias}</a> {if $a.type eq user}(*){/if}</td>
<td>{$a.date|date_format|default:'-'}</td>
<td>{$a.last|date_format|default:'-'}</td>
<td class='center'>{$a.nb|default:"-"}</td>
<a href="{rel}/marketing/promo/{$in.promo}">{$in.promo}</a>
</td>
<td>
- <a href="{"fiche.php"|url}?user={$in.forlife}" class="popup2">
+ <a href="{rel}/profile/{$in.forlife}" class="popup2">
{$in.nom} {$in.prenom}</a>
</td>
</tr>
<p class="erreur">{$e}</p>
{/foreach}
-<p>Tu peux consulter <a href="{rel}/fiche.php?user={$smarty.session.forlife}" class="popup2">l'état actuel de ta fiche</a>
-telle qu'elle apparaîtra pour un camarade,
-ou telle qu'elle apparaîtra dans l'annuaire de l'<a href="{rel}/fiche.php?user={$smarty.session.forlife}&view=ax" class="popup2">AX</a> ou à <a href="{rel}/fiche.php?user={$smarty.session.forlife}&view=public" class="popup2">tout le monde</a>.</p>
+<p>
+Tu peux consulter <a href="{rel}/profile/{$smarty.session.forlife}" class="popup2">l'état actuel de ta fiche</a>
+telle qu'elle apparaîtra pour un camarade, ou telle qu'elle apparaîtra dans l'annuaire de
+l'<a href="{rel}/profile/{$smarty.session.forlife}?view=ax" class="popup2">AX</a>
+ou à <a href="{rel}/profile/{$smarty.session.forlife}?view=public" class="popup2">tout le monde</a>.</p>
<form action="{$smarty.server.PHP_SELF}" method="post" id="prof_annu">
<table class="cadre_a_onglet" cellpadding="0" cellspacing="0" style="width: 98%; margin-left:1%;">
Voilà la photo qui apparaîtra sur la fiche de ton profil{if $nouvellephoto} (tu viens
de changer ta photo, celle-ci correspond à ton ancien
profil car la nouvelle n'a pas encore été validée par un administrateur du site !
- <a href="{"fiche.php"|url}?user={$smarty.session.forlife}&modif=new" class="popup2">Ta fiche avec la nouvelle photo</a>)
+ <a href="{rel}/profile/{$smarty.session.forlife}?modif=new" class="popup2">Ta fiche avec la nouvelle photo</a>)
{/if}.
</td>
<td class="dcolg">
</div>
<div class="bits" style="width: 40%;">
<span class='smaller'>
- <a href="{"fiche.php"|url}?user={$personnes[resultat].bestalias}" class="popup2">
+ <a href="{rel}/profile/{$personnes[resultat].bestalias}" class="popup2">
<img src="images/loupe.gif" alt="voir sa fiche" title="Voir sa fiche" /></a> -
<a href="{rel}/profile/referent/{$personnes[resultat].bestalias}" class="popup2">Voir sa fiche référent</a>
</span>
<td>{$m.promo}</td>
<td>
{if $m.x}
- <a href="https://www.polytechnique.org/fiche.php?user={$m.email}"><img src="{rel}/images/loupe.gif" alt="[fiche]" /></a>
+ <a href="https://www.polytechnique.org/profile/{$m.email}"><img src="{rel}/images/loupe.gif" alt="[fiche]" /></a>
<a href="https://www.polytechnique.org/vcard/{$m.email}.vcf"><img src="{rel}/images/vcard.png" alt="[vcard]" /></a>
<a href="mailto:{$m.email}@polytechnique.org"><img src="{rel}/images/mail.png" alt="mail" /></a>
{else}
<tr {popup caption=$e.intitule text=$e.descriptif}>
<td class="titre">annonceur :</td>
<td>
- <a href='https://polytechnique.org/fiche.php?user={$e.alias}' class='popup2'>{$e.prenom} {$e.nom} ({$e.promo})</a>
+ <a href='https://polytechnique.org/profile/{$e.alias}' class='popup2'>{$e.prenom} {$e.nom} ({$e.promo})</a>
</td>
</tr>
{if $admin || $e.show_participants}
</td>
<td>{$m.promo}</td>
<td>
- <a href="https://www.polytechnique.org/fiche.php?user={$m.email}"><img src="{rel}/images/loupe.gif" alt="[fiche]" /></a>
+ <a href="https://www.polytechnique.org/profile/{$m.email}"><img src="{rel}/images/loupe.gif" alt="[fiche]" /></a>
<a href="https://www.polytechnique.org/vcard/{$m.email}.vcf"><img src="{rel}/images/vcard.png" alt="[vcard]" /></a>
<a href="mailto:{$m.email}@polytechnique.org"><img src="{rel}/images/mail.png" alt="mail" /></a>
</td>
<td>{$m.promo}</td>
<td>
{if $m.x}
- <a href="https://www.polytechnique.org/fiche.php?user={$m.email}"><img src="{rel}/images/loupe.gif" alt="[fiche]" /></a>
+ <a href="https://www.polytechnique.org/profile/{$m.email}"><img src="{rel}/images/loupe.gif" alt="[fiche]" /></a>
<a href="https://www.polytechnique.org/vcard/{$m.email}.vcf"><img src="{rel}/images/vcard.png" alt="[vcard]" /></a>
<a href="mailto:{$m.email}@polytechnique.org"><img src="{rel}/images/mail.png" alt="mail" /></a>
{else}
<h2>
Demande de la part de : {$prenom} {$nom} (X{$promo})
- <a href="https://www.polytechnique.org/fiche.php?user={$smarty.request.u}">Voir sa fiche</a>
+ <a href="https://www.polytechnique.org/profile/{$smarty.request.u}">Voir sa fiche</a>
</h2>
<form action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="u" value="{$smarty.request.u}" />
--
Ma fiche sur Polytechnique.org :
-https://www.polytechnique.org/fiche.php?user={$smarty.session.forlife}
+https://www.polytechnique.org/profile/{$smarty.session.forlife}
</textarea>
<div class="center">
<input type="submit" name="inscrire" value="M'inscrire !" />
Édition du profil de {$user.prenom} {$user.nom}
{if $user.origine eq 'X'}
(X{$user.promo})
- <a href="https://www.polytechnique.org/fiche.php?user={$user.alias}"><img src="{rel}/images/loupe.gif" alt="Voir la fiche" /></a>
+ <a href="https://www.polytechnique.org/profile/{$user.alias}"><img src="{rel}/images/loupe.gif" alt="Voir la fiche" /></a>
{/if}
<a href="?del={$user.email}"><img src="{rel}/images/del.png" alt="Suppression du compte" /></a>
<a href="mailto:{$user.email}"><img src="{rel}/images/mail.png" alt="Ecrire un mail" /></a>
<td class="center">{$p.date|date_format:"%d/%m/%y"}</td>
<td>
{$p.prenom} {$p.nom}
- <a href="https://www.polytechnique.org/fiche.php?user={$p.alias}"><img alt="[fiche]" title="Voir sa fiche" src="{rel}/images/loupe.gif"/></a>
+ <a href="https://www.polytechnique.org/profile/{$p.alias}"><img alt="[fiche]" title="Voir sa fiche" src="{rel}/images/loupe.gif"/></a>
<a href="mailto:{$p.alias}@polytechnique.org"><img alt="[mail]" title="Lui envoyer un mail" src="{rel}/images/mail.png"/></a>
</td>
<td class="center">X {$p.promo}</td>