--- /dev/null
+<?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);
+
+?>
* 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
}
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]);
$i++;
}
-$page->assign('adresses', $adresses);
-
//recuperation des donnees de la bd
$res = $globals->db->query(
"SELECT