require_once("include/bittorrent.php");
function bark($msg) {
genbark($msg, _("Job failed!"));
}
dbconn();
loggedinorreturn();
if (empty($_POST["delreq"]))
bark("Don't leave any fields blank.");
$where = 'userid='.$CURUSER['id'].' AND ';
if( get_user_class() >= UC_MODERATOR)
{
$where = '';
}
$do="DELETE FROM requests WHERE ".$where." id IN (" . implode_type_check(",", $_POST['delreq'], 'int') . ")";
$do2="DELETE FROM addedrequests WHERE ".$where." requestid IN (" . implode_type_check(",", $_POST['delreq'], 'int') . ")";
$res2=do_mysql_query($do2) or die($do.'
'.mysql_error());
$res=do_mysql_query($do) or die($do.'
'.mysql_error());
header("Refresh: 0; url=requests.php");
?>