# 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(isset($_GET['zid'])) { require(dirname(__FILE__).'/include/members.inc.php'); $id = $_GET['zid']; $numero = $_GET['zid']; if(!empty($_POST['weblink'])) { if($_POST['weblink'] != 'http://') { if($_POST['weblink'] != '') { if (IsProjectAdmin()) { $titre = harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['titre']))); $version = harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['version']))); $desc = harmonise_magic_quotes_gpc(addslashes(utf8_decode($_POST['description']))); $fileto = harmonise_magic_quotes_gpc(addslashes($_POST['weblink'])); mysql_query("INSERT INTO ct2_os_bin (titre,version,description,file,projet) VALUES ('$titre','$version','$desc','$fileto','$id') ") or die (mysql_error()); mysql_insert_id(); Header('Location: '.$_GET['p'].'-down_'.$_GET['ct_lang'].'.html'); } else { exit('Error'); } } } } else { exit('Error (1).'); } } $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']; $cadreonecat = "os"; $ct_title = utf8_encode(htmlspecialchars($titre)). ' - CodingTeam.net : '.CODINGTEAM_GAUCHE_16; require(dirname(__FILE__).'/prepend.core.php'); ?>

-


 

 

" /> " />

 


 

 




 

"; } ?>