old code, don't understand the aim of such thing, and it's broken
authorx2000habouzit <x2000habouzit>
Wed, 20 Oct 2004 14:09:15 +0000 (14:09 +0000)
committerx2000habouzit <x2000habouzit>
Wed, 20 Oct 2004 14:09:15 +0000 (14:09 +0000)
htdocs/marketing/public.php
templates/search.result.private.tpl

index 0d302e0..0a21e14 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: public.php,v 1.4 2004-10-09 14:29:06 x2000habouzit Exp $
+        $Id: public.php,v 1.5 2004-10-20 14:09:15 x2000habouzit Exp $
  ***************************************************************************/
 
 require("auto.prepend.inc.php");
@@ -26,7 +26,7 @@ new_skinned_page('marketing/public.tpl', AUTH_MDP);
 
 if (! isset($_REQUEST["num"])) { exit; }
 
-$mat = (((integer) $_REQUEST["num"]) + 100) / 2;
+$mat = $_REQUEST["num"];
 
 $res = $globals->db->query("SELECT nom,prenom,promo FROM identification WHERE matricule = '$mat'");
 if (list($nom, $prenom, $promo) = mysql_fetch_row($res)) {
index d8b427b..1d72c65 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: search.result.private.tpl,v 1.16 2004-10-16 14:54:50 x2000habouzit Exp $
+        $Id: search.result.private.tpl,v 1.17 2004-10-20 14:09:15 x2000habouzit Exp $
  ***************************************************************************}
 
 <div class="bits">
@@ -46,7 +46,7 @@
 {if $result.inscrit!=1}
 {if $result.decede != 1}
 <div style="float:right">
-  <a href="javascript:x()" onclick="popWin('marketing/public.php?num={$result.matricule*2-100}')">
+  <a href="javascript:x()" onclick="popWin('marketing/public.php?num={$result.matricule}')">
     clique ici si tu connais son adresse email !
   </a>
 </div>