mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
/*
|
|
+ ----------------------------------------------------------------------------+
|
|
| e107 website system
|
|
|
|
|
| ©Steve Dunstan 2001-2002
|
|
| http://e107.org
|
|
| jalist@e107.org
|
|
|
|
|
| Released under the terms and conditions of the
|
|
| GNU General Public License (http://gnu.org).
|
|
|
|
|
| $Source: /cvs_backup/e107_0.8/e107_admin/comment.php,v $
|
|
| $Revision: 1.1.1.1 $
|
|
| $Date: 2006-12-02 04:33:12 $
|
|
| $Author: mcfly_e107 $
|
|
+----------------------------------------------------------------------------+
|
|
*/
|
|
require_once("../class2.php");
|
|
if (!getperms("B")) {
|
|
header("location:".e_BASE."index.php");
|
|
exit;
|
|
}
|
|
|
|
if (e_QUERY) {
|
|
$temp = explode("-", e_QUERY);
|
|
$action = $temp[0];
|
|
$id = intval($temp[1]);
|
|
$item = $temp[2];
|
|
$c_item = $temp[3];
|
|
if ($action == "block") {
|
|
$sql->db_Update("comments", "comment_blocked='1' WHERE comment_id='$id' ");
|
|
}
|
|
if ($action == "unblock") {
|
|
$sql->db_Update("comments", "comment_blocked='0' WHERE comment_id='$id' ");
|
|
}
|
|
if ($action == "delete") {
|
|
$sql->db_Delete("comments", "comment_id='$id' ");
|
|
}
|
|
if (!$e107cache->clear($item)) {
|
|
$tmp = explode("?", $item);
|
|
$item = $tmp[0]."?news.".$c_item;
|
|
$e107cache->clear($item);
|
|
}
|
|
}
|
|
echo "<script type='text/javascript'>window.history.go(-1);</script>\n";
|
|
?>
|