emMsg('权限不足!', './'); } $ip = isset($_GET['ip']) ? $_GET['ip'] : ''; $Comment_Model->delCommentByIp($ip); $CACHE->updateCache(array('sta', 'comment')); emDirect("./comment.php?active_del=1"); } if ($action == 'hide') { $id = isset($_GET['id']) ? intval($_GET['id']) : ''; $Comment_Model->hideComment($id); $CACHE->updateCache(array('sta', 'comment')); emDirect("./comment.php?active_hide=1"); } if ($action == 'show') { $id = isset($_GET['id']) ? intval($_GET['id']) : ''; $Comment_Model->showComment($id); $CACHE->updateCache(array('sta', 'comment')); emDirect("./comment.php?active_show=1"); } if ($action == 'admin_all_coms') { $operate = isset($_POST['operate']) ? $_POST['operate'] : ''; $comments = isset($_POST['com']) ? array_map('intval', $_POST['com']) : array(); if ($operate == '') { emDirect("./comment.php?error_b=1"); } if ($comments == '') { emDirect("./comment.php?error_a=1"); } if ($operate == 'del') { $Comment_Model->batchComment('delcom', $comments); $CACHE->updateCache(array('sta', 'comment'));