# 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'); $code = $_GET['p']; $ma = mysql_query("SELECT * FROM ct2_os WHERE adresse = '$code' "); if (mysql_num_rows($ma) == 0) { require('include/erreurs.inc.php'); GenerateErrorPage ("404","Not Found",$txt); exit(); } $ma = mysql_query("SELECT * FROM ct2_os WHERE adresse = '$code' "); $mb = mysql_fetch_array($ma); $titre = $mb['titre']; $desc = $mb['description']; $numero = $mb['id']; $instig = $mb['auteur']; if(isset($_GET['auteur'])) { require('include/members.inc.php'); require('include/mail.inc.php'); $numero = $_GET['numero']; $ct_lang = $_GET['ct_lang']; $texte = harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['texte']))); $auteur = $_GET['auteur']; $date = date('d/m/Y'); $heure = date('H:i:s'); $page = $_GET['page']; $plaintext = CODINGTEAM_DIVERS_58." ".CODINGTEAM_DIVERS_59.harmonise_magic_quotes_gpc(htmlspecialchars(stripslashes($_GET['page'])))." ".CODINGTEAM_DIVERS_60.$auteur." ".CODINGTEAM_DIVERS_61.$date." - ".$heure." ".CODINGTEAM_DIVERS_62; $htmltext = "

".CODINGTEAM_DIVERS_58."

".CODINGTEAM_DIVERS_59."".str_replace(" ","_",harmonise_magic_quotes_gpc(htmlspecialchars(stripslashes($_GET['page']))))."
".CODINGTEAM_DIVERS_60."".$auteur."
".CODINGTEAM_DIVERS_61."".$date." - ".$heure."

".CODINGTEAM_DIVERS_62."

"; codingteam_send_mail($instig,CODINGTEAM_DIVERS_63.$code,$plaintext,$htmltext); mysql_query("INSERT INTO ct2_os_wiki (date,heure,texte,auteur,nompage,projet) VALUES ('$date','$heure','$texte','$auteur','$page','$numero') ") or die (mysql_error()); $newid = mysql_insert_id(); if(isset($_POST['secure'])) { mysql_query("INSERT INTO ct2_os_wiki_lock (idpage,idprojet) VALUES ('$newid','$numero') ") or die (mysql_error()); } if ($page == "Accueil") { Header("Location: ".$racine."/".$code."-doc_".$ct_lang.".html"); } else { Header("Location: ".$racine."/".$code."-doc-".str_replace(" ","_",harmonise_magic_quotes_gpc(htmlspecialchars(stripslashes($_GET['page']))))."_".$ct_lang.".html"); } } $cadreonecat = "os"; $ct_title = utf8_encode(htmlspecialchars($titre)). ' - CodingTeam.net : '.CODINGTEAM_GAUCHE_18.' : '.str_replace("_"," ",stripslashes(htmlspecialchars($_GET['page'])));; require(dirname(__FILE__).'/prepend.core.php'); ?>

-

".$pageenquestion."

"; $pageaafficher = utf8_decode("[gauche][img]/images/dialog-warning.png[/img][/gauche][g]".CODINGTEAM_DIVERS_64."[/g] ".CODINGTEAM_DIVERS_65." ".CODINGTEAM_DIVERS_66.""); echo parsewiki(bb_parse($pageaafficher)); echo "

 

".date('d/m/Y')." - ".date('H:i:s')." - CodingTeamBot"; } else { echo "

".$pageenquestion."

"; $row = mysql_fetch_array($test); $IDPOURPLUSTARD = $row['id']; $pageaafficher = $row['texte']; echo parsewiki(bb_parse($pageaafficher)); echo "

 

".$row['date']." - ".$row['heure']." - ".$row['auteur'].""; } } else { $pageenquestion = "Accueil"; $test = mysql_query("SELECT * FROM ct2_os_wiki WHERE projet = $numero AND nompage = 'Accueil' ORDER BY id DESC LIMIT 1 "); if (mysql_num_rows($test) == 0) { echo "

".CODINGTEAM_DIVERS_67."

"; $pageaafficher = utf8_decode("[gauche][img]/images/dialog-warning.png[/img][/gauche][g]".CODINGTEAM_DIVERS_64."[/g] ".CODINGTEAM_DIVERS_65." ".CODINGTEAM_DIVERS_66.""); echo parsewiki(bb_parse($pageaafficher)); echo "

 

".date('d/m/Y')." - ".date('H:i:s')." - CodingTeamBot"; } else { echo "

".CODINGTEAM_DIVERS_67."

"; $row = mysql_fetch_array($test); $IDPOURPLUSTARD = $row['id']; $pageaafficher = $row['texte']; echo parsewiki(bb_parse($pageaafficher)); echo "

 

".$row['date']." - ".$row['heure']." - ".$row['auteur'].""; } } ?> Lecture seule / Read only

- ()