# Copyright (c) 2007 Erwan Briand # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation # # 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 # # ***** END LICENSE BLOCK ***** session_start(); require_once("include/config.inc.php"); require_once("include/members.inc.php"); $testouille = mysql_query("SELECT * FROM member WHERE pseudo='$pseudo'") or die (mysql_error()); $row = mysql_fetch_array($testouille); $heure = $row['heureins']; $date = $row['dateins']; $niveautomodif = $row['niveau']; $idtomodif = $row['id']; $nom=addslashes($_POST['nom']); $prenom=addslashes($_POST['prenom']); $email=addslashes($_POST['email']); $jid=addslashes($_POST['jid']); $url1=addslashes($_POST['url1']); $ville=addslashes($_POST['ville']); $pays=addslashes($_POST['pays']); $description=harmonise_magic_quotes_gpc(addslashes($_POST['description'])); $signature=harmonise_magic_quotes_gpc(addslashes($_POST['signature'])); $what=addslashes($_POST['what']); mysql_query("UPDATE member SET prenom='$prenom', nom='$nom', heureins='$heure', dateins='$date', email='$email', jid='$jid', url='$url1', signature='$signature', description='$description', sexe='$what', ville='$ville', pays='$pays', niveau='$niveautomodif' WHERE id='$idtomodif'") or die (mysql_error()); Header("Location: modprofil_".$ct_lang.".php"); ?>