# 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("include/config.inc.php"); require("include/members.inc.php"); $codep = $_GET['p']; $code = $_GET['c']; $test = mysql_query("SELECT * FROM ct2_os WHERE adresse = '$codep' "); $admin = mysql_fetch_array($test); if ($pseudo != $admin['auteur']) { exit('Error.'); } mysql_query("DELETE FROM ct2_os_team WHERE pseudo = '".$code."' ") or die (mysql_error()); mysql_insert_id(); Header('Location: '.$racine.'/'.$codep.'-aff_'.$ct_lang.'.html'); ?>