From 227efdf499c5b75d7b0c640d320b002b0574f4a9 Mon Sep 17 00:00:00 2001 From: x2001corpet Date: Sat, 7 Oct 2006 23:28:21 +0000 Subject: [PATCH] force_login => profile/private, #486 git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.11@954 839d8a87-29fc-0310-9880-83ba4fa771e5 --- bin/cron/notifs.send.php | 4 ++-- modules/profile.php | 1 + templates/carnet/rss.tpl | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/cron/notifs.send.php b/bin/cron/notifs.send.php index 7656ef9..44466ac 100755 --- a/bin/cron/notifs.send.php +++ b/bin/cron/notifs.send.php @@ -54,8 +54,8 @@ EOF; 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 .= " https://www.polytechnique.org/profile/{$x['bestalias']}?force_login=1\n\n"; - $html .= "
  • (X{$x['promo']}) {$x['prenom']} {$x['nom']} le $date
  • \n"; + $text .= " https://www.polytechnique.org/profile/private/{$x['bestalias']}\n\n"; + $html .= "
  • (X{$x['promo']}) {$x['prenom']} {$x['nom']} le $date
  • \n"; } $text .= "\n"; $html .= "\n"; diff --git a/modules/profile.php b/modules/profile.php index 0c048bd..bef7dc7 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -29,6 +29,7 @@ class ProfileModule extends PLModule 'fiche.php' => $this->make_hook('fiche', AUTH_PUBLIC), 'profile' => $this->make_hook('profile', AUTH_PUBLIC), + 'profile/private' => $this->make_hook('profile', AUTH_MDP), 'profil.php' => $this->make_hook('p_edit', AUTH_MDP), 'profile/edit' => $this->make_hook('p_edit', AUTH_MDP), 'profile/orange' => $this->make_hook('p_orange', AUTH_MDP), diff --git a/templates/carnet/rss.tpl b/templates/carnet/rss.tpl index 81b744a..23c041c 100644 --- a/templates/carnet/rss.tpl +++ b/templates/carnet/rss.tpl @@ -58,7 +58,7 @@ [{$notifs->_cats[$cid].short}] {$x.prenom} {$x.nom} ({$x.promo}) - le {$x.date|date_format|utf8_encode} - {#globals.baseurl#}/profile/{$x.bestalias}?force_login=1 + {#globals.baseurl#}/profile/private/{$x.bestalias} -- 2.1.4