mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
new module creation
This commit is contained in:
47
e107_admin/comment.php
Normal file
47
e107_admin/comment.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| <20>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";
|
||||
?>
|
Reference in New Issue
Block a user