# 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"); require_once("include/mail.inc.php"); if (empty($_POST['titre']) || empty($_POST['texte'])) { exit('Error.'); } $ida = $_GET['id']; $idb = $_GET['url']; $idc = $_GET['idrep']; $auteur = $_POST['auteur']; $titre = harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['titre']))); $texte = harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['texte']))); $date = date("d/m/Y")." - ".date("H:i:s"); mysql_query("INSERT INTO ct2_os_bug_reply (idrep,date,auteur,titre,message) VALUES ('$idc','$date','$auteur','$titre','$texte') ") or die (mysql_error()); $id = mysql_insert_id(); Header("Location: ".$racine."/".$idb."-bugs-affiche-".$idc."_".$ct_lang.".html"); ?>