addresses seems to be ok
authorx2000habouzit <x2000habouzit>
Tue, 31 Aug 2004 18:31:34 +0000 (18:31 +0000)
committerx2000habouzit <x2000habouzit>
Tue, 31 Aug 2004 18:31:34 +0000 (18:31 +0000)
include/profil/assign_adresses.inc.php [new file with mode: 0644]
include/profil/get_adresses.inc.php [moved from include/profil/profil_adresses.inc.php with 97% similarity]

diff --git a/include/profil/assign_adresses.inc.php b/include/profil/assign_adresses.inc.php
new file mode 100644 (file)
index 0000000..0800754
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+/***************************************************************************
+ *  Copyright (C) 2003-2004 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                *
+ ***************************************************************************
+        $Id: assign_adresses.inc.php,v 1.1 2004-08-31 18:31:34 x2000habouzit Exp $
+ ***************************************************************************/
+
+$page->assign('adresses', $adresses);
+
+?>
similarity index 97%
rename from include/profil/profil_adresses.inc.php
rename to include/profil/get_adresses.inc.php
index b0cfb57..dd040c9 100644 (file)
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: profil_adresses.inc.php,v 1.4 2004-08-31 14:48:57 x2000habouzit Exp $
+        $Id: get_adresses.inc.php,v 1.1 2004-08-31 18:31:34 x2000habouzit Exp $
  ***************************************************************************/
 
-
 require_once('geoloc.inc.php');
 
 // on limite à 6 adresses personnelles par utilisateur
@@ -39,6 +38,7 @@ function is_adr_empty($adrid){
 }
 
 function delete_address($adrid, $in_request_array = false){
+    global $globals;
     $globals->db->query("DELETE FROM adresses WHERE uid = ".$_SESSION["uid"]." AND adrid = '$adrid'");
     if($in_request_array == true){
       unset($_REQUEST['adrid'][$adrid]);
@@ -66,8 +66,6 @@ while(list($adrids[$i]) = mysql_fetch_row($res)){
   $i++;
 }
 
-$page->assign('adresses', $adresses);
-
 //recuperation des donnees de la bd
 $res = $globals->db->query(
        "SELECT