# 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(dirname(__FILE__).'/include/config.inc.php'); $ps = $_GET['ps']; if (isset($_GET['action'])) { $idtomodif = $_GET['id']; if ($_GET['action'] == "avatar") { $TYPEDETRAITEMENT = $_POST['typetraitement']; $rw1 = mysql_fetch_array(mysql_query("SELECT * FROM member WHERE id = '$idtomodif' ")); if ($rw1['avatar'] != "" && dirname($rw1['avatar']) != "../images/avatar") { $stock = explode("../member/",$rw1['avatar']); if(file_exists($stock[1])) { unlink($stock[1]); } } if($TYPEDETRAITEMENT == "upload") { require('include/vignettes.inc.php'); $rep = "upload/"; $pseudoins = $pseudo; if(preg_match('#[\x00-\x1F\x7F-\x9F/\\\\]#', $_FILES['fichier']['name'])) exit('ERROR : Unidentified error occurred'); $type_file = $_FILES['userfile']['type']; if( !strstr($type_file, 'jpg') && !strstr($type_file, 'jpeg') && !strstr($type_file, 'gif') && !strstr($type_file, 'png') ) { exit('Error (Filetype).'); } $savefile= $rep."".$pseudoins."".$_FILES['userfile']['name']; $temp = $_FILES['userfile']['tmp_name']; if (move_uploaded_file($temp, $savefile)) { $file = $pseudoins."".$_FILES['userfile']['name']; $avatarCHO = "../member/".vignette("upload/".$file,100,100); } } else { $predef=addslashes($_POST['predef']); $avatarCHO = $predef; } mysql_query("UPDATE member SET avatar='$avatarCHO' WHERE id='$idtomodif'") or die (mysql_error()); } elseif ($_GET['action'] == "mail") { $affichemail = $_POST['affiche']; if($affichemail != "oui") { $affichemail = "non"; } $newsletter = $_POST['news']; if($newsletter != "oui") { $newsletter = "non"; } if (mysql_num_rows(mysql_query(" SELECT * FROM ct2_member_mail_pref WHERE member = '$idtomodif' ")) == 0) { mysql_query(" INSERT INTO ct2_member_mail_pref (member,affiche,newsletter) VALUES ('$idtomodif','$affichemail','$newsletter') "); } else { mysql_query(" UPDATE ct2_member_mail_pref SET affiche = '$affichemail', newsletter = '$newsletter' WHERE member = '$idtomodif' "); } } } $cadreonecat = "communaute"; $ct_title = CODINGTEAM_GAUCHE_9.' - CodingTeam.net'; $ct_description = ''; require(dirname(__FILE__).'/prepend.core.php'); ?>

 

_.html' method='post' enctype="multipart/form-data">


/>

Projets
- Wiki


- Bugs

Divers

/>


 

avatar
".CODINGTEAM_INSCRIPTION_32.""; ?>



"; */ ?>


 


 
 

 
 

 
 

 
 
    presence.jabberfr.org

 
 

 
 

 
 

 
 

 
 


 
  
  


Commencez par vous identifier !

"; } ?>