if (can_admin(strtolower($module_name))) { $db->sql_query("DELETE FROM " . $prefix . "_reviews_comments \n\t\tWHERE cid=" . intval($_GET['cid'])); URL::redirect(URL::index("&rop=showcontent&id=" . intval($_GET['id']))); } cpg_error('ACCESS DENIED'); } $rop = isset($_POST['rop']) ? $_POST['rop'] : (isset($_GET['rop']) ? $_GET['rop'] : ''); switch ($rop) { case 'showcontent': showcontent(); break; case 'write_review': write_review(); break; case 'preview_review': preview_review(); break; case 'send_review': send_review(); break; case 'del_review': del_review(); break; case 'mod_review': mod_review(); break; case 'postcomment': postcomment(); break; case 'savecomment': savecomment();
include "modules/comments/reviews.conf.php"; sql_query("DELETE FROM " . $NPDS_Prefix . "posts WHERE forum_id='{$forum}' AND topic_id='{$id_del}'"); } } redirect_url("reviews.php"); } settype($op, 'string'); switch ($op) { case "showcontent": showcontent($id); break; case "write_review": write_review(); break; case "preview_review": preview_review($title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id); break; case "add_reviews": send_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $asb_question, $asb_reponse); break; case "del_review": del_review($id_del); break; case "mod_review": mod_review($id); break; case "sort": reviews($field, $order); break; default: reviews("date", "DESC");
} if (!isset($id)) { $id = ""; } if (strlen($rop) == 1 and ctype_alnum($rop)) { reviews($rop, $field, $order); } else { switch ($rop) { case "showcontent": showcontent($id, $page); break; case "write_review": write_review(); break; case "preview_review": preview_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage); break; case "" . _YES . "": send_review($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage); break; case "del_review": del_review($id_del); break; case "mod_review": mod_review($id); break; case "postcomment": postcomment($id, $title); break; case "savecomment": savecomment($xanonpost, $uname, $id, $score, $comments);