require "include/bittorrent.php";
dbconn();
loggedinorreturn();
$res = do_mysql_query("SELECT id, name FROM categories ORDER BY name");
while($cat = mysql_fetch_assoc($res))
$catoptions .= "$cat[name]
";
// $category[$cat['id']] = $cat['name'];
stdhead("RSS Feed");
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$link = $GLOBALS['DEFAULTBASEURL']."/rss.php";
if ($_POST['feed'] == "dl")
$query[] = "feed=dl";
foreach($_POST['cat'] as $cat)
$query[] = "cat[]=$cat";
if ($_POST['login'] == "passkey")
$query[] = "passkey=$CURUSER[passkey]";
$queries = implode("&", $query);
if ($queries)
$link .= "?$queries";
print("Use the following url in your RSS reader:
$link
");
die();
}
?>