Copyright (C) 2007 nso This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ require_once('init.php'); $db = new dbcon(); $bilde = mysql_real_escape_string($_GET['bilde'],$db->link); $query = "UPDATE `%sfiles` SET `flagged` = '1' WHERE `id` = '$bilde' AND WHERE `flagged` != '2'"; /* Really simple hack. If a admin has tucked his OK stamp on a picture, we believe that the OK stamp will never change. We put a '2' into the database, so further reports is ignored. This way, a single image will never be tagged false positive twice. The admin can delete the image as (s)he likes, without caring about this bit. */ $db->query($query); $goto = "http://$url/$_GET[bilde]"; header("Location: $goto"); echo $lang['imagereported']; //Will never be seen by the user /* Should we have a form requiring the user to input anything? It would reduce the false positives reports, but maybe lower the true positives. Views? I've also pondered on adding a fix so that a image tagged as OK stays OK for ever */ ?>