# 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'); if(!empty($_POST['texte'])) { require('include/members.inc.php'); require('include/mail.inc.php'); if(!IsLogged()) { $cap = $_POST['captcha1']; if ($cap == 0) { $result = "4"; } if ($cap == 1) { $result = "8"; } if ($cap == 2) { $result = "6"; } if ($cap == 3) { $result = "7"; } if(!isset($_POST['captcha2'])) { exit("Error."); } else { if($_POST['captcha2'] != $result) { exit("Error."); } } $pseudom="ANONYME_".harmonise_magic_quotes_gpc(addslashes($_POST['captcha3'])); } else { $pseudom=addslashes($pseudo); } $date = date("d/m/Y"); $heure = date("H:i:s"); $post=$_GET['idb']; $cat=$_GET['ida']; $message=harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['texte']))); mysql_query("INSERT INTO forum_commentaire (sujet,auteur,message,date,heure) VALUES ('$post','$pseudom','$message','$date','$heure')") or die (mysql_error()); mysql_insert_id(); $testouille = mysql_query("SELECT * FROM forum_sujet WHERE id='$post'") or die (mysql_error()); $row = mysql_fetch_array($testouille); $auteur = $row['auteur']; $plaintext = CODINGTEAM_FORUM_42.$auteur.". ".CODINGTEAM_FORUM_53.utf8_encode($row['titre']).". ".$racine."/forumvoir,".$cat.",".$post.".html"; $txthtml = '

'.CODINGTEAM_FORUM_42.$auteur.',

'.CODINGTEAM_FORUM_53.''.utf8_encode($row['titre']).'

Voir votre message

'; codingteam_send_mail($auteur,harmonise_magic_quotes_gpc(addslashes(utf8_decode("Notification de réponse au sujet : "))).$row['titre'],$plaintext,$txthtml); $nb_total=mysql_num_rows(mysql_query("SELECT * FROM forum_commentaire WHERE sujet='$post' ")); $i = 0; if($nb_total>10) { while($i<($nb_total/10)) { $i++; } } else { $i == 0; } if ($i != 0) { $a = $i - 1; } else { $a = 0; } Header("Location: ".$racine."/forumvoir,".$cat.",".$post.",".$a.".html"); } $id=$_GET['idb']; $ida=$_GET['ida']; if ($ida == "news") { $cat = CODINGTEAM_FORUM_5; } if ($ida == "libre") { $cat = CODINGTEAM_FORUM_7; } if ($ida == "programmation") { $cat = CODINGTEAM_FORUM_9; } if ($ida == "projets") { $cat = CODINGTEAM_FORUM_11; } if ($ida == "team") { $cat = CODINGTEAM_FORUM_13; } if ($ida == "ubunture") { $cat = "Ubuntu Réunion"; } $cadreonecat = 'communaute'; $ct_title = CODINGTEAM_FORUM_23.' - '.CODINGTEAM_GAUCHE_28.' - CodingTeam.net'; require(dirname(__FILE__).'/prepend.core.php'); ?>


 




?


ANONYME_