# 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']) && !empty($_POST['titre'])) { require('include/members.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"); $cat=$_GET['id']; $titre=harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['titre']))); $message=harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['texte']))); mysql_query("INSERT INTO forum_sujet (titre,auteur,message,cat,type,date,heure) VALUES ('$titre','$pseudom','$message','$cat','post.gif','$date','$heure')") or die (mysql_error()); mysql_insert_id(); if(file_exists("rss/cache/cache-rss-rss-forum.xml")) { unlink("rss/cache/cache-rss-rss-forum.xml"); } Header("Location: ".$racine."/forum,".$cat."_".$ct_lang.".html"); } $id=$_GET['id']; if ($id == "news") { $cat = CODINGTEAM_FORUM_5; } if ($id == "libre") { $cat = CODINGTEAM_FORUM_7; } if ($id == "programmation") { $cat = CODINGTEAM_FORUM_9; } if ($id == "projets") { $cat = CODINGTEAM_FORUM_11; } if ($id == "team") { $cat = CODINGTEAM_FORUM_13; } if ($id == "ubunture") { $cat = "Ubuntu RĂ©union"; } $cadreonecat = 'communaute'; $ct_title = CODINGTEAM_FORUM_29.' - '.CODINGTEAM_GAUCHE_28.' - CodingTeam.net'; require(dirname(__FILE__).'/prepend.core.php'); ?>

 
 


 




?


ANONYME_