= UC_MODERATOR) $updateset[] = "moderated = 'yes'"; $updateset[] = "moderatedby = ".sqlesc($CURUSER["id"]); $updateset[] = "moderatorname = ".sqlesc($CURUSER["username"]); mysql_query("UPDATE torrents SET " . join(",", $updateset) . " WHERE id = $id"); $returl = "details.php?id=$id"; if (isset($_POST["returnto"])) $returl .= "&returnto=" . urlencode($_POST["returnto"]); header("Refresh: 0; url=$returl"); ?>