Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   torrentstrike rss mod needed (http://www.bvlist.com/showthread.php?t=4161)

irfan 7th January 2010 18:38

torrentstrike rss mod needed
 
any know of a rss mod for torrentstrike? really need thanks guys.

Phogo 8th January 2010 16:11

CREATE GETRSS.PHP AND ADD IT TO YOUR ROOT

getrss.php
PHP Code:

<? require "include/bittorrent.php";
dbconn();
loggedinorreturn();

$res mysql_query("SELECT id, name FROM categories ORDER BY name");
while(
$cat mysql_fetch_assoc($res))
$catoptions .= "<input type=\"checkbox\" name=\"cat[]\" value=\"$cat[id]\" ".(strpos($CURUSER['notifs'], "[cat$cat[id]]") !== false " checked" "") . "/>$cat[name]";
$category[$cat['id']] = $cat['name'];

stdhead("RSS Feeds");

if (
$_SERVER['REQUEST_METHOD'] == "POST") {
$link "$BASEURL/rss.php";
if (
$_POST['feed'] == "dl")
$query[] = "feed=dl";
if (isset(
$_POST['cat']))
$query[] = "cat=".implode(','$_POST['cat']);
else {
print(
"You must select some categories");
stdfoot();
die();
}
if (
$_POST['login'] == "passkey")
$query[] = "passkey=$CURUSER[passkey]";
$queries implode("&"$query);
if (
$queries)
$link .= "?$queries";

print(
" Use the following url in your RSS reader: <b>$link</b>");
stdfoot();
die();
}
?>
<?
begin_frame
("RSS FEED");?>
<center>
<FORM method="POST" action="getrss.php">
<table border="1" cellspacing="1" cellpadding="5">
<TR>
<TD class="rowhead">Categories to retrieve:
</TD>
<TD><?=$catoptions?>
</TD>
</TR>
<TR>
<TD class="rowhead">Feed type:
</TD>
<TD>
<INPUT type="radio" name="feed" value="web" />Web link<BR>
<INPUT type="radio" name="feed" value="dl" />Download link
</TD>
</TR>
<TR>
<TD class="rowhead">Login type:
</TD>
<TD>

<INPUT type="radio" name="login" value="passkey" checked />Alternative (no cookies)
</TD>
</TR>
<TR>
<TD colspan="2" align="center">
<BUTTON type="submit">Generate RSS link</BUTTON>
</TD>
</TR>
</TABLE>
</FORM>
</center>
<?end_frame();
?>
<?
stdfoot
();
?>

http://img339.imageshack.us/img339/8599/rssfeed.jpg


Taken from Login

Phogo


All times are GMT +2. The time now is 23:17.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.