# 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("include/config.inc.php"); require("include/mail.inc.php"); require("include/members.inc.php"); $pseudo = addslashes(htmlentities($_SESSION['pseudo'])); $titre = harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['titre']))); $member = addslashes(htmlentities($_POST['member'])); $message = harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['texte']))); $date = date("d/m/Y"); $heure = date("H:i:s"); $open = "0"; mysql_query("INSERT INTO member_mess (destinataire,auteur,date,heure,message,sujet,open) VALUES ('$member','$pseudo','$date','$heure','$message','$titre','$open')") or die (mysql_error()); $last = mysql_insert_id(); $plaintext = CODINGTEAM_FORUM_42.$member." ".CODINGTEAM_FORUM_43." http://www.codingteam.net/messagerie,mess,".$last."_".$ct_lang.".html"; $txthtml = "

".CODINGTEAM_FORUM_42.$member."

".CODINGTEAM_FORUM_43."
Voir votre message

"; codingteam_send_mail($member,CODINGTEAM_FORUM_44.$titre,$plaintext,$txthtml); header("Location: messagerie_".$ct_lang.".php"); ?>