Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Torrent Strike
Reply
  #1  
Old 7th January 2010, 18:38
irfan's Avatar
irfan irfan is offline
Senior Member
 
Join Date: Jun 2009
United Kingdom
Posts: 67
Default torrentstrike rss mod needed
any know of a rss mod for torrentstrike? really need thanks guys.
Reply With Quote
  #2  
Old 8th January 2010, 16:11
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
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]<br>";
$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(
"<br>You must select some categories<br>");
stdfoot();
die();
}
if (
$_POST['login'] == "passkey")
$query[] = "passkey=$CURUSER[passkey]";
$queries implode("&"$query);
if (
$queries)
$link .= "?$queries";

print(
"<br> Use the following url in your RSS reader: <br><br><b>$link</b><br>");
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
();
?>
Click the image to open in full size.


Taken from Login

Phogo
Reply With Quote
Reply

Tags
mod , needed , rss , torrentstrike

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed atencorps Gazelle 1 26th August 2009 17:30
help needed plz fireman Template Shares 2 17th June 2009 15:28
Help needed !!! wMan BT.Manager (phpMyBitTorrent) 14 2nd June 2009 22:41
hi help needed please :( evilgit1 Torrent Strike 4 7th February 2009 12:41
HELP NEEDED adrian21 TBDev 7 19th January 2009 01:20



All times are GMT +2. The time now is 01:51. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.