# 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(); } if( isset($_GET['tag']) ) { if ( $_GET['tag'] == 0 ) { if ( $_POST['tags'] == a ) { Header('Location: '.$racine.'/'.$code.'-bugs_'.$ct_lang.'.html?text='.$_POST['titre']); } else { Header('Location: '.$racine.'/'.$code.'-bugs-'.$_POST['tags'].'_'.$ct_lang.'.html?text='.$_POST['titre']); } exit(); } elseif ( $_GET['tag'] == 1 ) { $tags = $_POST['tags']; mysql_query("UPDATE ct2_os_bug SET tag = '$tags' WHERE id = '".$_GET['id']."' LIMIT 1"); Header('Location: '.$racine.'/'.$code.'-bugs-affiche-'.$_GET['id'].'_'.$ct_lang.'.html'); } } $ma = mysql_query("SELECT * FROM ct2_os WHERE adresse = '$code' "); $mb = mysql_fetch_array($ma); $titre = $mb['titre']; $desc = $mb['description']; $numero = $mb['id']; $url = $mb['adresse']; @$opt = $_GET['ops']; if ($opt == "delete") { require(dirname(__FILE__).'/include/members.inc.php'); if (IsLogged() && IsAdminOrModo($pseudo) OR IsProjectAdmin()) { $leidenquestion = $_GET['id']; mysql_query("INSERT INTO ct2_os_bug_closed (idbug) VALUES ('$leidenquestion') ") or die (mysql_error()); Header("Location: ".$racine."/".$code."-bugs_".$ct_lang.".html"); } else { exit('Error.'); } } if ($opt == "open") { require(dirname(__FILE__).'/include/members.inc.php'); if (IsProjectAdmin()) { $leidenquestion = $_GET['id']; mysql_query("DELETE FROM ct2_os_bug_closed WHERE idbug = '$leidenquestion' ") or die (mysql_error()); Header("Location: ".$racine."/".$code."-bugs_".$ct_lang.".html"); } else { exit('Error.'); } } $cadreonecat = "os"; $ct_title = utf8_encode(htmlspecialchars($titre)). ' - CodingTeam.net : '.CODINGTEAM_GAUCHE_23; require(dirname(__FILE__).'/prepend.core.php'); ?>
|
".CODINGTEAM_PROJETLIBRE_97."";
} else {
if ($na == 1) {
echo "".CODINGTEAM_PROJETLIBRE_98." ".CODINGTEAM_PROJETLIBRE_99.""; } else { ?> |
".CODINGTEAM_PROJETLIBRE_89.""; } else { if ($nb == 0) { echo "".CODINGTEAM_PROJETLIBRE_90.""; } else { $donc = 0; $plopplop = mysql_query("SELECT * FROM ct2_os_bug_reply WHERE idrep = '$id' GROUP BY auteur "); while($dcfinalstock = mysql_fetch_array($plopplop)) { if ( CheckProjectAdmin($dcfinalstock['auteur']) ) { $donc ++; } } if($donc == 0) { echo "".CODINGTEAM_PROJETLIBRE_90.""; } else { echo "".CODINGTEAM_PROJETLIBRE_91.""; } } } ?> | " style="background:;"> |