# 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']; $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"); $select = mysql_query("SELECT * FROM ct2_os WHERE id = '$ida' "); $selero = mysql_fetch_array($select); $auteur = $selero['auteur']; $naemop = $selero['titre']; $plaintext = CODINGTEAM_FORUM_42.$auteur.". ".CODINGTEAM_PROJETLIBRE_111.utf8_encode($_POST['titre']).". Voyez à cette adresse : ".$racine."/".$idb."-bugs_".$_GET['ct_lang'].".html (".htmlspecialchars(utf8_encode($naemop)).")"; $txthtml = '

'.CODINGTEAM_FORUM_42.$auteur.',

'.CODINGTEAM_PROJETLIBRE_111.''.htmlspecialchars(utf8_encode($_POST['titre'])).'

'.CODINGTEAM_GAUCHE_23.' ('.htmlspecialchars(utf8_encode($naemop)).')

'; codingteam_send_mail($auteur,harmonise_magic_quotes_gpc(addslashes(utf8_decode(CODINGTEAM_PROJETLIBRE_112))),$plaintext,$txthtml); if(file_exists("rss/cache/cache-rss-rss3-projets-".$ida.".xml")) { unlink("rss/cache/cache-rss-rss3-projets-".$ida.".xml"); } mysql_query("INSERT INTO ct2_os_bug (projet,date,auteur,titre,message,tag) VALUES ('$ida','$date','$pseudo','$titre','$texte','b') ") or die (mysql_error()); $id = mysql_insert_id(); Header("Location: ".$racine."/".$idb."-bugs_".$_GET['ct_lang'].".html"); ?>