mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 15:46:44 +02:00
Issue #4283 - Update deprecated sql method usage. Removed old code.
This commit is contained in:
@@ -348,55 +348,3 @@ e107::getAdminUI()->runPage();
|
||||
require_once(e_ADMIN."footer.php");
|
||||
exit;
|
||||
|
||||
/*
|
||||
if (e_QUERY)
|
||||
{
|
||||
$temp = explode("-", e_QUERY);
|
||||
$action = $temp[0];
|
||||
$id = intval($temp[1]);
|
||||
$item = $temp[2];
|
||||
$c_item = $temp[3];
|
||||
if ($sql->select('comments','*', 'comment_id='.$id))
|
||||
{
|
||||
$comment = $sql->db_Fetch();
|
||||
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);
|
||||
switch ($comment['comment_type'])
|
||||
{
|
||||
case '0' :
|
||||
case 'news' : // Need to update count in news record as well
|
||||
$sql2->db_Update('news', 'news_comment_total = CAST(GREATEST(CAST(news_comment_total AS SIGNED) - 1, 0) AS UNSIGNED) WHERE news_id='.$comment['comment_item_id']);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!$e107cache->clear($item))
|
||||
{
|
||||
$tmp = explode("?", $item);
|
||||
$item = $tmp[0]."?news.".$c_item;
|
||||
$e107cache->clear($item);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// $cm= new comment_manager;
|
||||
// $cm->commentList();
|
||||
}
|
||||
// echo "<script type='text/javascript'>window.history.go(-1);</script>\n";
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user