# 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'); $id=$_GET['ida']; $cat=$_GET['idb']; $titre=harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['titre']))); $message=harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['texte']))); $secutest = mysql_query("SELECT auteur FROM forum_sujet WHERE id = '$id' "); $testsecu = mysql_fetch_array($secutest); if ($testsecu['auteur'] == $pseudo || IsAdminOrModo($pseudo)) { mysql_query("UPDATE forum_sujet SET titre = '$titre', message = '$message' WHERE id = '$id' "); Header("Location: ".$racine."/forumvoir,".$cat.",".$id."_".$ct_lang.".html"); } else { exit('Error'); } } 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"; $ida=$_GET['ida']; $id=$_GET['idb']; $ct_title = CODINGTEAM_FORUM_26.' - '.CODINGTEAM_GAUCHE_28.' - CodingTeam.net'; require(dirname(__FILE__).'/prepend.core.php'); ?>