# 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_once("include/config.inc.php"); $opt = $_GET['opt']; $ida = $_GET['id']; $idb = $_GET['url']; if ($opt == 3) { mysql_query("DELETE FROM ct2_os_todo WHERE id = '$ida' LIMIT 1") or die (mysql_error()); mysql_query("DELETE FROM ct2_os_todo_v WHERE id = '$ida' AND projet = '$idb' LIMIT 1") or die (mysql_error()); } else { mysql_query("UPDATE ct2_os_todo SET etat='$opt' WHERE id = '$ida' ") or die (mysql_error()); } Header("Location: ".$racine."/".$idb."-todo.html"); ?>