Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

II played with this and all I get in the cache file is  b:0;. Not sure why, but I cant make this work either, hmmmm
Ajax Shoutbox V3 — 2020-12-14 01:34:12 in v3 Mods in Progress
I understand what you are saying, but its not that simple unfortunately. The database entry would have to have a CSS or HTML tag on it for it to display the color you want, so you would have to write code to add that info to the reply so it adds it when it gets inserted into your database.
Ajax Shoutbox V3 — 2020-12-14 01:15:42 in v3 Mods in Progress
Im thinking you would have to append the database entry with CSS code or html code to display a color, kinda like this as an example of a database entry. I dunno, never tried it
The shoutbox has been cleared
Ajax Shoutbox V3 — 2020-12-13 21:06:19 in v3 Mods in Progress
its because a reply in the shoutbox is inserted as plain text into the database, including the username you are replying to. its not an object
rating — 2020-11-22 17:08:16 in v3 Support
I think this is the part to edit. $x equals 2
case 'rating':
               if (!$row["rating"])
                   $rating = "--";
               else
                   $rating = "<a title='$row[rating]/5'>".ratingpic($row["rating"])."</a>";
                   //$rating = ratingpic($row["rating"]);
                    //$srating .= "$rpic (" . $row["rating"] . " out of 5) " . $row["numratings"] . " users have rated this torrent";
               print("<td class='ttable_col$x' align='center'>$rating</td>");
           break;
       }
       if ($x == 2)
           $x--;
       else
           $x++;
ratio — 2020-11-19 22:47:33 in v3 Support
This one uses the built-in color function. Probably need to tweak the colors, but its a start. Tweak your colors in backend/functions.php. look for get_ratio_color and alter those css values

<?php
//
//  TorrentTrader v3.x
require_once("backend/functions.php");
dbconn();
loggedinonly();
if ($CURUSER["view_users"]=="no")
   show_error_msg(T_("ERROR"), T_("NO_USER_VIEW"), 1);
 
$search = trim($_GET['search']);
$class = (int) $_GET['class'];
$letter = trim($_GET['letter']);
if (!$class)
   unset($class);
$q = $query = null;
if ($search) {
   $query = "username LIKE " . sqlesc("%$search%") . " AND status='confirmed'";
   if ($search) {
       $q = "search=" . htmlspecialchars($search);
   }
} elseif ($letter) {
   if (strlen($letter) > 1)
       unset($letter);
   if ($letter == "" || strpos("abcdefghijklmnopqrstuvwxyz", $letter) === false) {
       unset($letter);
   } else {
       $query = "username LIKE '$letter%' AND status='confirmed'";
   }
   $q = "letter=$letter";
}
if (!$query) {
   $query = "status='confirmed'";
}
if ($class) {
   $query .= " AND class=$class";
   $q .= ($q ? "&amp;" : "") . "class=$class";
}
stdhead(T_("USERS"));
begin_frame(T_("USERS"));
print("<br /><form method='get' action='memberlist.php'>\n");
print(T_("SEARCH").": <input type='text' size='30' name='search' />\n");
print("<select name='class'>\n");
print("<option value='-'>(any class)</option>\n");
$res = SQL_Query_exec("SELECT group_id, level FROM groups");
while ($row = mysqli_fetch_array($res)) {
   print("<option value='$row[group_id]'" . ($class && $class == $row['group_id'] ? " selected='selected'" : "") . ">".htmlspecialchars($row['level'])."</option>\n");
}
print("</select>\n");
print("<input type='submit' value='".T_("SEARCH")."' />\n");
print("</form>\n");
print("<p>\n");
print("<a href='memberlist.php'><b>".T_("ALL")."</b></a> - \n");
foreach (range("a", "z") as $l) {
   $L = strtoupper($l);
   if ($l == $letter)
       print("<b>$L</b>\n");
   else
       print("<a href='memberlist.php?letter=$l'><b>$L</b></a>\n");
}
print("</p>\n");
$page = (int) $_GET['page'];
$perpage = 25;
$res = SQL_Query_exec("SELECT COUNT(*) FROM users WHERE $query");
$arr = mysqli_fetch_row($res);
$pages = floor($arr[0] / $perpage);
if ($pages * $perpage < $arr[0])
 ++$pages;
if ($page < 1)
 $page = 1;
else
 if ($page > $pages)
   $page = $pages;
for ($i = 1; $i <= $pages; ++$i)
 if ($i == $page)
   $pagemenu .= "$i\n";
 else
   $pagemenu .= "<a href='?$q&amp;page=$i'>$i</a>\n";
if ($page == 1)
 $browsemenu .= "";
//  $browsemenu .= "[Prev]";
else
 $browsemenu .= "<a href='?$q&amp;page=" . ($page - 1) . "'>[Prev]</a>";
$browsemenu .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
if ($page == $pages)
 $browsemenu .= "";
//  $browsemenu .= "[Next]";
else
 $browsemenu .= "<a href='?$q&amp;page=" . ($page + 1) . "'>[Next]</a>";
$offset = ($page * $perpage) - $perpage;
$res = SQL_Query_exec("SELECT users.*, groups.level FROM users LEFT JOIN groups ON groups.group_id=users.class WHERE $query ORDER BY username LIMIT $offset,$perpage");
begin_table();
print("<tr><th class='table_head'>" . T_("USERNAME") . "</th><th class='table_head'>" . T_("REGISTERED") . "</th><th class='table_head'>" . T_("LAST_ACCESS") . "</th><th class='table_head'>" . T_("CLASS") . "</th><th class='table_head'>" . T_("COUNTRY") . "</th><th class='table_head'>" . T_("RATIO") . "</th></tr>\n");
while ($arr = mysqli_fetch_assoc($res)) {
 
       $cres = SQL_Query_exec("SELECT name,flagpic FROM countries WHERE id=$arr[country]");
       if ($carr = mysqli_fetch_assoc($cres)) {
           $country = "<td align=\"center\" class='table_col1' style='padding: 0px'><img src='$site_config[SITEURL]/images/countries/$carr[flagpic]' title='".htmlspecialchars($carr['name'])."' alt='".htmlspecialchars($carr['name'])."' /></td>";
       } else {
           $country = "<td align=\"center\"  class='table_col1' style='padding: 0px'><img src='$site_config[SITEURL]/images/countries/unknown.gif' alt='Unknown' /></td>";
       }
       /// Ratio added below
       $r = SQL_Query_exec("SELECT uploaded, downloaded FROM users WHERE id=$arr[id]");
       $user = mysqli_fetch_assoc($r);
       if ($user["downloaded"] > 0) {
           $ratio = number_format($user["uploaded"] / $user["downloaded"], 2);
           $ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";
       }else{
           $ratio = "Inf";
       }
       /// End Ratio addition
     
/*  if ($arr['added'] == '0000-00-00 00:00:00')
       $arr['added'] = '-';
   if ($arr['last_access'] == '0000-00-00 00:00:00')
       $arr['last_access'] = T_("NEVER");*/
 print("<tr><td class='table_col1' align='left'><a href='account-details.php?id=$arr[id]'><b>$arr[username]</b></a>" .($arr["donated"] > 0 ? "<img src='$site_config[SITEURL]/images/star.png' border='0' alt='Donated' />" : "")."</td>" .
 "<td align=\"center\" class='table_col2'>".utc_to_tz($arr["added"])."</td><td align=\"center\" class='table_col1'>".utc_to_tz($arr["last_access"])."</td>".
   "<td class='table_col2' align='center'>" . T_($arr["level"]) . "</td>$country ". "<td class='table_col2' align='center'>" . $ratio . "</td></tr>\n");
}
end_table();
print("<p>$pagemenu<br />$browsemenu</p>");
end_frame();
stdfoot();
?>

ratio — 2020-11-17 23:43:22 in v3 Support
try this. Feel free to make it better :) memberlist.php below
<?php
//
//  TorrentTrader v3.x

require_once("backend/functions.php");
dbconn();
loggedinonly();

if ($CURUSER["view_users"]=="no")
   show_error_msg(T_("ERROR"), T_("NO_USER_VIEW"), 1);

$search = trim($_GET['search']);
$class = (int) $_GET['class'];
$letter = trim($_GET['letter']);

if (!$class)
   unset($class);

$q = $query = null;
if ($search) {
   $query = "username LIKE " . sqlesc("%$search%") . " AND status='confirmed'";
   if ($search) {
       $q = "search=" . htmlspecialchars($search);
   }
} elseif ($letter) {
   if (strlen($letter) > 1)
       unset($letter);
   if ($letter == "" || strpos("abcdefghijklmnopqrstuvwxyz", $letter) === false) {
       unset($letter);
   } else {
       $query = "username LIKE '$letter%' AND status='confirmed'";
   }
   $q = "letter=$letter";
}

if (!$query) {
   $query = "status='confirmed'";
}

if ($class) {
   $query .= " AND class=$class";
   $q .= ($q ? "&amp;" : "") . "class=$class";
}

stdhead(T_("USERS"));
begin_frame(T_("USERS"));
print("<br /><form method='get' action='memberlist.php'>\n");
print(T_("SEARCH").": <input type='text' size='30' name='search' />\n");
print("<select name='class'>\n");
print("<option value='-'>(any class)</option>\n");
$res = SQL_Query_exec("SELECT group_id, level FROM groups");
while ($row = mysqli_fetch_array($res)) {
   print("<option value='$row[group_id]'" . ($class && $class == $row['group_id'] ? " selected='selected'" : "") . ">".htmlspecialchars($row['level'])."</option>\n");
}
print("</select>\n");
print("<input type='submit' value='".T_("SEARCH")."' />\n");
print("</form>\n");

print("<p>\n");

print("<a href='memberlist.php'><b>".T_("ALL")."</b></a> - \n");
foreach (range("a", "z") as $l) {
   $L = strtoupper($l);
   if ($l == $letter)
       print("<b>$L</b>\n");
   else
       print("<a href='memberlist.php?letter=$l'><b>$L</b></a>\n");
}

print("</p>\n");

$page = (int) $_GET['page'];
$perpage = 25;

$res = SQL_Query_exec("SELECT COUNT(*) FROM users WHERE $query");
$arr = mysqli_fetch_row($res);
$pages = floor($arr[0] / $perpage);
if ($pages * $perpage < $arr[0])
 ++$pages;

if ($page < 1)
 $page = 1;
else
 if ($page > $pages)
   $page = $pages;

for ($i = 1; $i <= $pages; ++$i)
 if ($i == $page)
   $pagemenu .= "$i\n";
 else
   $pagemenu .= "<a href='?$q&amp;page=$i'>$i</a>\n";

if ($page == 1)
 $browsemenu .= "";
//  $browsemenu .= "[Prev]";
else
 $browsemenu .= "<a href='?$q&amp;page=" . ($page - 1) . "'>[Prev]</a>";

$browsemenu .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

if ($page == $pages)
 $browsemenu .= "";
//  $browsemenu .= "[Next]";
else
 $browsemenu .= "<a href='?$q&amp;page=" . ($page + 1) . "'>[Next]</a>";

$offset = ($page * $perpage) - $perpage;

$res = SQL_Query_exec("SELECT users.*, groups.level FROM users LEFT JOIN groups ON groups.group_id=users.class WHERE $query ORDER BY username LIMIT $offset,$perpage");

begin_table();
print("<tr><th class='table_head'>" . T_("USERNAME") . "</th><th class='table_head'>" . T_("REGISTERED") . "</th><th class='table_head'>" . T_("LAST_ACCESS") . "</th><th class='table_head'>" . T_("CLASS") . "</th><th class='table_head'>" . T_("COUNTRY") . "</th><th class='table_head'>" . T_("RATIO") . "</th></tr>\n");
while ($arr = mysqli_fetch_assoc($res)) {

       $cres = SQL_Query_exec("SELECT name,flagpic FROM countries WHERE id=$arr[country]");

       if ($carr = mysqli_fetch_assoc($cres)) {
           $country = "<td align=\"center\" class='table_col1' style='padding: 0px'><img src='$site_config[SITEURL]/images/countries/$carr[flagpic]' title='".htmlspecialchars($carr['name'])."' alt='".htmlspecialchars($carr['name'])."' /></td>";
       } else {
           $country = "<td align=\"center\"  class='table_col1' style='padding: 0px'><img src='$site_config[SITEURL]/images/countries/unknown.gif' alt='Unknown' /></td>";
       }
   
       $r = SQL_Query_exec("SELECT uploaded, downloaded FROM users WHERE id=$arr[id]");
       $user = mysqli_fetch_assoc($r);
       if ($user["downloaded"] > 0) {
           $ratio = number_format($user["uploaded"] / $user["downloaded"], 2);
       }else{
           $ratio = "Inf";
       }

   
/*    if ($arr['added'] == '0000-00-00 00:00:00')
       $arr['added'] = '-';
   if ($arr['last_access'] == '0000-00-00 00:00:00')
       $arr['last_access'] = T_("NEVER");*/

 print("<tr><td class='table_col1' align='left'><a href='account-details.php?id=$arr[id]'><b>$arr[username]</b></a>" .($arr["donated"] > 0 ? "<img src='$site_config[SITEURL]/images/star.png' border='0' alt='Donated' />" : "")."</td>" .
 "<td align=\"center\" class='table_col2'>".utc_to_tz($arr["added"])."</td><td align=\"center\" class='table_col1'>".utc_to_tz($arr["last_access"])."</td>".
   "<td class='table_col2' align='center'>" . T_($arr["level"]) . "</td>$country ". "<td class='table_col2' align='center'>" . $ratio . "</td></tr>\n");
}
end_table();

print("<p>$pagemenu<br />$browsemenu</p>");
end_frame();
stdfoot();

?>
Helpdesk tbdev — 2020-11-09 21:41:57 in v2.08 Mods Completed
what is the database error?
enclose username like this on line 971
'username'
download ban — 2020-09-20 14:51:49 in v3 Mods Requests
mysql_query should be SQL_Query_exec along with what spiritblue said
thanks image — 2020-09-19 19:31:01 in v3 Support
Glad it works. Adjust your width and height as needed
thanks image — 2020-09-19 17:53:21 in v3 Support
perhaps
<input src="images/thanks.gif"  height="80" width="100"style="border:0px;" type="image">
Say Thanks & Force — 2020-09-11 19:46:57 in v3 Mods Completed
seems like if more than 1 user thanks, then it wont display class color of each user....hmmm. What to do about that now.....
Say Thanks & Force — 2020-09-11 19:31:31 in v3 Mods Completed
Just tested class_user and its working fine on my test. the layout is terrible but I just installed this mod for testing. I did move the code to the top of the page. I'll keep testing
[ATTACH type="full" alt="Capture.PNG"]5889[/ATTACH]

I also changed that users class and the color changed with it
[ATTACH type="full" alt="Capture.PNG"]5890[/ATTACH]
Say Thanks & Force — 2020-09-10 21:56:44 in v3 Mods Completed
anyone wanna try this in thanks.php near the bottom. Im just reading the code because I know that the class user color is added to output, not database entries. Figured it was worth a quick go even though I cant test this wihout installing this mod. If it dont work, then I spose I can install it and try again
print("<table><tr><td>". class_user("$thanks") ."</td></tr></table>\n");
Database Error — 2020-09-05 14:18:19 in v3 Support
here is my v3 torrents-upload.php if it helps any. I have extra stuff in mine, but it should be a good reference
<?php
require_once("backend/functions.php");
dbconn();
// check access and rights
if ($site_config["MEMBERSONLY"]){
   loggedinonly();

   if($CURUSER["can_upload"]=="no")
       show_error_msg(T_("ERROR"), T_("UPLOAD_NO_PERMISSION"), 1);
   if ($site_config["UPLOADERSONLY"] && $CURUSER["class"] < 4)
       show_error_msg(T_("ERROR"), T_("UPLOAD_ONLY_FOR_UPLOADERS"), 1);
}

$announce_urls = explode(",", strtolower($site_config["announce_list"]));  //generate announce_urls[] from config.php

if ($_POST["takeupload"] == "yes") {
   require_once("backend/parse.php");

   //check form data
   foreach(explode(":","type:name") as $v) {
       if (!isset($_POST[$v]))
           $message = T_("MISSING_FORM_DATA");
   }

   if (!isset($_FILES["torrent"]))
   $message = T_("MISSING_FORM_DATA");

   if (($num = $_FILES['torrent']['error']))
//         show_error_msg('Error', T_("UPLOAD_ERR[$num]"), 1);
autolink("torrents-upload.php?action=style", T_("UPLOAD_ERR[4]"));
   $f = $_FILES["torrent"];
   $fname = $f["name"];

   if (empty($fname))
       $message = T_("EMPTY_FILENAME");

   if ($_FILES['nfo']['size'] != 0) {
       $nfofile = $_FILES['nfo'];

       if ($nfofile['name'] == '')
           $message = T_("NO_NFO_UPLOADED");
       
       if (!preg_match('/^(.+)\.nfo$/si', $nfofile['name'], $fmatches))
           $message = T_("UPLOAD_NOT_NFO");

       if ($nfofile['size'] == 0)
           $message = T_("NO_NFO_SIZE");

       if ($nfofile['size'] > 65535)
           $message = T_("NFO_UPLOAD_SIZE");

       $nfofilename = $nfofile['tmp_name'];

       if (($num = $_FILES['nfo']['error']))
            $message = T_("UPLOAD_ERR[$num]");
   
       $nfo = 'yes';
   }

   $descr = $_POST["descr"];

   if (!$descr)
       $descr = T_("UPLOAD_NO_DESC");

   $langid = (int) $_POST["lang"];

   /*if (!is_valid_id($langid))
       $message = "Please be sure to select a torrent language";*/

   $catid = (int) $_POST["type"];

   if (!is_valid_id($catid))
       $message = T_("UPLOAD_NO_CAT");
             if (!empty($_POST['tube']))
           $tube = unesc($_POST['tube']);

   if (!validfilename($fname))
       $message = T_("UPLOAD_INVALID_FILENAME");

   if (!preg_match('/^(.+)\.torrent$/si', $fname, $matches))
       $message = T_("UPLOAD_INVALID_FILENAME_NOT_TORRENT");

       $shortfname = $torrent = $matches[1];

   if (!empty($_POST["name"]))
       $torrent = $_POST["name"];
   
   $tmpname = $f['tmp_name'];

   //end check form data

   if (!$message) {
   //parse torrent file
   $torrent_dir = $site_config["torrent_dir"];
   $nfo_dir = $site_config["nfo_dir"];

   //if(!copy($f, "$torrent_dir/$fname"))
   if(!move_uploaded_file($tmpname, "$torrent_dir/$fname"))
       show_error_msg(T_("ERROR"), T_("ERROR"). ": " . T_("UPLOAD_COULD_NOT_BE_COPIED")." $tmpname - $torrent_dir - $fname",1);

   $TorrentInfo = array();
   $TorrentInfo = ParseTorrent("$torrent_dir/$fname");


   $announce = $TorrentInfo[0];
   $infohash = $TorrentInfo[1];
   $creationdate = $TorrentInfo[2];
   $internalname = $TorrentInfo[3];
   $torrentsize = $TorrentInfo[4];
   $filecount = $TorrentInfo[5];
   $annlist = $TorrentInfo[6];
   $comment = $TorrentInfo[7];
   $filelist = $TorrentInfo[8];

/*
//for debug...
   print ("<br /><br />announce: ".$announce."");
   print ("<br /><br />infohash: ".$infohash."");
   print ("<br /><br />creationdate: ".$creationdate."");
   print ("<br /><br />internalname: ".$internalname."");
   print ("<br /><br />torrentsize: ".$torrentsize."");
   print ("<br /><br />filecount: ".$filecount."");
   print ("<br /><br />annlist: ".$annlist."");
   print ("<br /><br />comment: ".$comment."");
*/

   //check announce url is local or external
   if (!in_array($announce, $announce_urls, 1)){
       $external='yes';
   }else{
       $external='no';
   }

   //if externals is turned off
   if (!$site_config["ALLOWEXTERNAL"] && $external == 'yes')
       $message = T_("UPLOAD_NO_TRACKER_ANNOUNCE");
   }
   if ($message) {
       @unlink("$torrent_dir/$fname");
       @unlink($tmpname);
       @unlink("$nfo_dir/$nfofilename");
       show_error_msg(T_("UPLOAD_FAILED"), $message,1);
   }

   //release name check and adjust
   if ($name ==""){
       $name = $internalname;
   }
   $name = str_replace(".torrent","",$name);
   $name = str_replace("_", " ", $name);

   //upload images
   $allowed_types = &$site_config["allowed_image_types"];

   $inames = array();
   for ($x=0; $x < 2; $x++) {
       if (!($_FILES['image'.$x]['name'] == "")) {
           $y = $x + 1;

           //if (!preg_match('/^(.+)\.(jpg|gif|png)$/si', $_FILES[image.$x]['name']))
           //    show_error_msg(T_("INVAILD_IMAGE"), T_("THIS_FILETYPE_NOT_IMAGE"), 1);

           if ($_FILES['image$x']['size'] > $site_config['image_max_filesize'])
               show_error_msg(T_("ERROR"), T_("INVAILD_FILE_SIZE_IMAGE"), 1);

           $uploaddir = $site_config["torrent_dir"]."/images/";

           $ifile = $_FILES[image.$x]['tmp_name'];

           $im = getimagesize($ifile);

           if (!$im[2])
               show_error_msg(T_("ERROR"), sprintf(T_("INVALID_IMAGE"), $y), 1);

           if (!array_key_exists($im['mime'], $allowed_types))
               show_error_msg(T_("ERROR"), T_("INVALID_FILETYPE_IMAGE"), 1);

           $ret = SQL_Query_exec("SHOW TABLE STATUS LIKE 'torrents'");
           $row = mysqli_fetch_array($ret);
           $next_id = $row['Auto_increment'];

           $ifilename = $next_id . $x . $allowed_types[$im['mime']];

           $copy = copy($ifile, $uploaddir.$ifilename);

           if (!$copy)
               show_error_msg(T_("ERROR"), sprintf(T_("IMAGE_UPLOAD_FAILED"), $y), 1);

           $inames[] = $ifilename;

       }

   }
   //end upload images

   // Make torrent private
  if ($external == "no") {
   require_once("backend/BDecode.php");
   require_once("backend/BEncode.php");
   $dict = BDecode(file_get_contents("$torrent_dir/$fname"));
   $dict["info"]["private"] = 1;
   $fs = fopen("$torrent_dir/$fname", "w");
   fwrite($fs, BEncode($dict));
   fclose($fs);
   $TorrentInfo = array();
   $TorrentInfo = ParseTorrent("$torrent_dir/$fname");
   $infohash = $TorrentInfo[1];
  }
  // End add make torrent private

   //anonymous upload
   $anonyupload = $_POST["anonycheck"];
   if ($anonyupload == "yes") {
       $anon = "yes";
   }else{
       $anon = "no";
   }
       //requests
      $uplrequpload = $_POST["uplreqcheck"];
      if ($uplrequpload == "yes") {
         $uplreq = "yes";
      }else{
         $uplreq = "no";
      }

   $ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, tube, trailers, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, uplreq, last_action, imdb) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$catid."', '".$tube."',".sqlesc($_POST['trailers']).", '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','".$anon."', '".$uplreq."', '".get_date_time()."', ".sqlesc($_POST['imdb']).")");

   $id = mysqli_insert_id($GLOBALS["DBconnector"]);

   if (mysqli_errno($GLOBALS["DBconnector"]) == 1062)
       show_error_msg(T_("UPLOAD_FAILED"), T_("UPLOAD_ALREADY_UPLOADED"), 1);

   //Update the members uploaded torrent count
   /*if ($ret){
       SQL_Query_exec("UPDATE users SET torrents = torrents + 1 WHERE id = $userid");*/
   
   if($id == 0){
       unlink("$torrent_dir/$fname");
       $message = T_("UPLOAD_NO_ID");
       show_error_msg(T_("UPLOAD_FAILED"), $message, 1);
   }

   rename("$torrent_dir/$fname", "$torrent_dir/$id.torrent");
// EDIT TORRENT COMMENT ////////////////////////////
        require_once("backend/BDecode.php");
        require_once("backend/BEncode.php");
        $dict = BDecode(file_get_contents($site_config["torrent_dir"] . "/$id.torrent"));
        $dict['comment'] = "Downloaded & Seeded By ".$site_config['TORRENTCOMMENT'];
        $dict['creation date'] = gmtime();
        file_put_contents($site_config["torrent_dir"] . "/$id.torrent", BEncode($dict));
// EDIT TORRENT COMMENT ////////////////////////////

   if (is_array($filelist) && count($filelist)) {
       foreach ($filelist as $file) {
           $dir = '';
           $size = $file["length"];
           $count = count($file["path"]);
           for ($i=0; $i<$count;$i++) {
               if (($i+1) == $count)
                   $fname = $dir.$file["path"][$i];
               else
                   $dir .= $file["path"][$i]."/";
           }
           SQL_Query_exec("INSERT INTO `files` (`torrent`, `path`, `filesize`) VALUES($id, ".sqlesc($fname).", $size)");
       }
   } else {
       SQL_Query_exec("INSERT INTO `files` (`torrent`, `path`, `filesize`) VALUES($id, ".sqlesc($TorrentInfo[3]).", $torrentsize)");
   }

   if (!is_array($annlist)) {
       $annlist = array(array($announce));
   }
   foreach ($annlist as $ann) {
       foreach ($ann as $val) {
           if (strtolower(substr($val, 0, 4)) != "udp:") {
               SQL_Query_exec("INSERT INTO `announce` (`torrent`, `url`) VALUES($id, ".sqlesc($val).")");
           }
       }
   }

   if ($nfo == 'yes') {
           move_uploaded_file($nfofilename, "$nfo_dir/$id.nfo");
   }

   //EXTERNAL SCRAPE
   if ($external=='yes' && $site_config['UPLOADSCRAPE']){
       $tracker=str_replace("/announce","/scrape",$announce);
       $stats             = torrent_scrape_url($tracker, $infohash);
       $seeders         = strip_tags($stats['seeds']);
       $leechers         = strip_tags($stats['peers']);
       $downloaded     = strip_tags($stats['downloaded']);

       SQL_Query_exec("UPDATE torrents SET leechers='".$leechers."', seeders='".$seeders."',times_completed='".$downloaded."',last_action= '".get_date_time()."',visible='yes' WHERE id='".$id."'");
   }
   //END SCRAPE

   write_log("Torrent $id (".htmlspecialchars($name).") was Uploaded by $CURUSER[username]");

//        If ($uplreq=='no') {
//            $msg_shout = sqlesc("".T_("A_NEW_TORRENT")." : [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$name."[/url] ".T_("HAS_BEEN_UPLOADED")." ".($anon == 'no' ? "".T_("BY")." [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]" : "")."");
//        SQL_Query_exec("INSERT INTO shoutbox (userid, date, user, message) VALUES(0,'".get_date_time()."', 'System' ,".$msg_shout.")");
//        }else{
//            $msg_shout = sqlesc("".T_("THE_REQUEST")." : [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$name."[/url] ".T_("HAS_BEEN_FILLED")." ".($anon == 'no' ? "".T_("BY")." [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]" : "")."");
//        SQL_Query_exec("INSERT INTO shoutbox (userid, date, user, message) VALUES(0,'".get_date_time()."', 'System' ,".$msg_shout.")");
//            }

   If ($uplreq=='yes') {
   $msg_shout = sqlesc("".T_("THE_REQUEST")." : [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$name."[/url] ".T_("HAS_BEEN_FILLED")." ".($anon == 'no' ? "".T_("BY")." [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]" : "")."");
       SQL_Query_exec("INSERT INTO shoutbox (userid, date, user, message) VALUES(0,'".get_date_time()."', 'System' ,".$msg_shout.")");
         }

   //shoutbox torrent announce shit////
//    $user = ( $anon == 'yes' || $CURUSER['privacy'] == 'strong' ) ? 'Anonymous' : $CURUSER['username'];
//$message = "New Torrent: [url=".$site_config['SITEURL']."/torrents-details.php?id=".$id."]".$name."[/url] has been uploaded by $CURUSER[username]";
//SQL_Query_exec("INSERT INTO `shoutbox` (`uid`, `name`, `message`, `date`) VALUES ('0', 'System', " . sqlesc($message) . ", '".get_date_time()."')");

   //insert email notif, irc, req notif, etc here

   /////AUTO IMDB ////////////
       if ( preg_match( '/^([\w\s]+)?.?(\d{4})/i', $name, $m ) )
   {
        $m[ 1 ] = urlencode( $m[ 1 ] );
   

        if ( ( $data = json_decode( @ file_get_contents( "http://www.omdbapi.com/?apikey=KEY_HERE&t=$m[1]&y=$m[2]" ) ) ) And ! ( isset( $data -> Error ) ) )
        {
             SQL_Query_exec("UPDATE `torrents` SET `imdb` = " . sqlesc( 'https://www.imdb.com/title/' . $data -> imdbID ) . " WHERE `id` = $id");
        }
   }
   ///End auto imdb

       if ($CURUSER["edit_torrents"] == "yes")
           if(get_user_class($CURUSER) > 4){
               if ($_POST["sticky"] == "yes"){
               $updateset[] = "sticky = 'yes'";
                }else{
               $updateset[] = "sticky = 'no'";
       }
}
       $updateset[] = "freeleech = '".intval($_POST["freeleech"])."'";
       SQL_Query_exec("UPDATE torrents SET " . join(",", $updateset) . " WHERE id = $id");

   //Uploaded ok message (update later)
   if ($external=='no')
       $message = sprintf( T_("TORRENT_UPLOAD_LOCAL"), $name, $id, $id );

   else
       $message = sprintf( T_("TORRENT_UPLOAD_EXTERNAL"), $name, $id );
   show_error_msg(T_("UPLOAD_COMPLETE"), $message, 1);
autoclean();

   die();
}//takeupload


///////////////////// FORMAT PAGE ////////////////////////

stdhead(T_("UPLOAD"));

begin_frame(T_("UPLOAD_RULES"));
   echo "<b>".stripslashes($site_config["UPLOADRULES"])."</b>";
   echo "<br />";
end_frame();

begin_frame(T_("UPLOAD"));
?>

<table border="0" cellspacing="0" cellpadding="6" align="center">
<?php
echo "<br />";
print ("<tr><td align='right' valign='top'>" . T_("ANNOUNCE_URL") . ": </td><td align='left'>");

while (list($key,$value) = thisEach($announce_urls)) {



   echo ("<input type='text' id='myInput' size='30' value='" . $value . "' />");

}
?>

<!-- The button used to copy the announce -->
   <style>
.tooltip {
   position: relative;
   display: inline-block;
}

.tooltip .tooltiptext {
   visibility: hidden;
   width: 140px;
   background-color: #555;
   color: #fff;
   text-align: center;
   border-radius: 6px;
   padding: 5px;
   position: absolute;
   z-index: 1;
   bottom: 150%;
   left: 50%;
   margin-left: -75px;
   opacity: 0;
   transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
   content: "";
   position: absolute;
   top: 100%;
   left: 50%;
   margin-left: -5px;
   border-width: 5px;
   border-style: solid;
   border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
   visibility: visible;
   opacity: 1;
}
</style>

<div class="tooltip">
<button onclick="myFunction()" onmouseout="outFunc()">
 <span class="tooltiptext" id="myTooltip">Copy to clipboard</span>
 Copy Announce
 </button>
</div>
   <script>
function myFunction() {
 var copyText = document.getElementById("myInput");
 copyText.select();
 document.execCommand("Copy");

 var tooltip = document.getElementById("myTooltip");
 tooltip.innerHTML = "Copied!";
}

function outFunc() {
 var tooltip = document.getElementById("myTooltip");
 tooltip.innerHTML = "Copy to clipboard";
}
</script>

   <!--END stupid copy button-->


<form name="upload" enctype="multipart/form-data" action="torrents-upload.php" method="post">
<input type="hidden" name="takeupload" value="yes" />

<?php
if ($site_config["ALLOWEXTERNAL"]){
   echo "<br /><b>".T_("THIS_SITE_ACCEPTS_EXTERNAL")."</b>";
}
print ("<tr><td colspan='2' align='center'><font color='red' size ='2'>".T_("REQUIRED_FIELDS")."</font></td></tr>");
print ("</td></tr>");
print ("<tr><td align='right'>". T_("TORRENT_FILE") . ":<font color='red' size ='3'> *</font> </td><td align='left'  class='table_col2'> <input type='file' name='torrent' size='50' value='" . $_FILES['torrent']['name'] . "' />\n</td></tr>");
$category = "<select name=\"type\">\n<option value=\"0\">" . T_("CHOOSE_ONE") . "</option>\n";

$cats = genrelist();
foreach ($cats as $row)
   $category .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["parent_cat"]) . ": " . htmlspecialchars($row["name"]) . "</option>\n";

$category .= "</select>\n";
print ("<tr><td align='right'>" . T_("CATEGORY") . ":<font color='red' size ='3'> *</font> </td><td align='left'  class='table_col2'>".$category."</td></tr>");
   #################### - REQUEST FILLED START - ####################

   //Request filled?
   if ($site_config["REQUESTSON"]){
           $sql_request = "SELECT `id`, `profilled`, `request` FROM requests WHERE filledby=0 AND profilled=$CURUSER[id] ORDER BY `request` ASC";
           $res = mysqli_query($GLOBALS["DBconnector"],$sql_request);
   if (mysqli_num_rows($res) > 0) {
           $request = "<select name=\"request\">\n<option value=\"0\">(".T_("REQUEST_UPL1").")</option>\n";
   while ($row = mysqli_fetch_array($res)) {
           $request .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["request"]) . "</option>\n";
   }
           $request .= "</select>\n";
   $uplreqcheck = (isset($uplreqcheck));
   if ($res["profilledby"]=="0" );
           print("<tr><td align=right><b><font color='red' size ='2'>".T_("REQUEST_FILL")." : </font></b></td><td colspan='2' class='table_col1' align=left>&nbsp;$request<br>&nbsp;<input name='uplreqcheck' value='yes' type='radio' " . ($uplreqcheck ? " checked='checked'" : "") . " />".T_("YES")." <input name='uplreqcheck' value='no' type='radio' " . (!$uplreqcheck ? " checked='checked'" : "") . " />".T_("NO")." &nbsp;".T_("REQUEST_UPL2")."</i></td></tr>");
   }
   }

   #################### - REQUEST FILLED END - ######################

print ("<tr><td align='right'>" .T_("NFO"). ": </td><td align='left'> <input type='file' name='nfo' size='50' value='" . $_FILES['nfo']['name'] . "' /><br />\n</td></tr>");
print ("<tr><td align='right'>" . T_("TORRENT_NAME") . ": </td><td align='left'><input type='text' name='name' size='60' value='" . $_POST['name'] . "' /><br />".T_("THIS_WILL_BE_TAKEN_TORRENT")." \n</td></tr>");
print ("<tr><td align='right'>" .T_("IMDB")."</td><td align='left'><input type='text' name='imdb' size='50' value='" . $_POST['imdb'] . "' />&nbsp;<a href='http://www.imdb.com' target='_blank'><img border='0' src='images/imdb_upload.png' style='vertical-align: middle;' width='80' height='80' title='Click here to go to IMDb'></a><br />".T_("IMDB_INFO")."</td></tr>");
print ("<tr><td></td></tr>");
print ("<tr><td></td></tr>");
print ("<tr><td colspan='2' align='center'><hr/></td></tr>");

print ("<tr><td colspan='2' align='center'><font color='green' size ='5'>".T_("ADD_TRAILER")."</font></td></tr>");
print ("<tr><td colspan='2' align='center'><font color='green' size ='2'>".T_("TUBE_OR_IMDB")."</font></td></tr>");
print ("<tr><td align='right'>" .T_("IMDB_TRAILER").": <br/><span style='color:green'id='second'>Enabled</span></td><td align='left' class='table_col2'><input id='imdb' type='text' name='trailers' size='50' value='" . $_POST['trailers'] . "' />&nbsp;<a href='http://www.imdb.com' target='_blank'><img border='0' src='images/movietrailers.png' style='vertical-align: middle;' width='50' height='50' title='Click here to go to IMDb'></a><br />".T_("IMDB_TRAILER_INFO")."</td></tr>");
print ("<tr><td align=right>".T_("VIDEOTUBE").": <br/><span style='color:green'id='first'>Enabled</span></td><td align='left' class='table_col2'><input id='youtube' type='text' name='tube' size='50' />&nbsp;<a href=\"https://www.youtube.com\" target='_blank'><img border='0' src='images/youtube.png' style='vertical-align: middle;' width='50' height='50' title='Click here to go to Youtube'></a><br/>".T_("YOUTUBEFORMATINFO")."</td></tr>");
//print ("<tr><td align='right'>".T_("LANGUAGE").": </td><td align='left'>".$language."</td></tr>");
//print ("<TR><TD align=right>YouTube Video Link: </td><td align=left><input type=\"text\" name=\"tube\" size=\"60\" /><br />Links should be in this format<br><font color=red><b>http://www.youtube.com/watch?v=Jc9KR3tOP</b></font></td></tr>");

print ("<tr><td></td></tr>");
print ("<tr><td></td></tr>");
print ("<tr><td colspan='2' align='center'><hr/></td></tr>");
print ("<tr><td colspan='2' align='center'>".T_("MAX_FILE_SIZE").": ".mksize($site_config['image_max_filesize'])."<br />".T_("ACCEPTED_FORMATS").": ".implode(", ", array_unique($site_config["allowed_image_types"]))."<br /></td></tr><tr><td align='right'>".T_("IMAGE")." 1:&nbsp;&nbsp;</td><td><input type='file' name='image0' size='50' /></td></tr><tr><td align='right'>".T_("IMAGE")." 2:&nbsp;&nbsp;</td><td><input type='file' name='image1' size='50' /></td></tr>");
if ($row["external"] != "yes" && $CURUSER["edit_torrents"] == "yes"){
   echo "<tr><td align='right'>".T_("FREE_LEECH")."</td><td><input type=\"checkbox\" name=\"freeleech\"" . (($row["freeleech"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />".T_("FREE_LEECH_MSG")."<br /></td></tr>";
   echo "<tr><td align=right>".T_("STICKY")."</td><td><input type='checkbox' name='sticky'" .
(($row["sticky"] == "yes") ? " checked='checked'" : "" ) . " value='yes' /></td></tr>";
}
?>
<script type="text/javascript">
document.getElementById("youtube").onblur = function () {
   if (this.value.length > 0) {
       document.getElementById("imdb").disabled=true;
 document.getElementById("second").innerHTML = "<span style='color:#FF0000'>Disabled</span>";
   }else {
       document.getElementById("imdb").disabled = false;
       document.getElementById("second").innerHTML = "Enabled";
   }
}

   document.getElementById("imdb").onblur = function () {
   if (this.value.length > 0) {
       document.getElementById("youtube").disabled=true;
 document.getElementById("first").innerHTML = "<span style='color:#FF0000'>Disabled</span>";
   }else {
       document.getElementById("youtube").disabled = false;
       document.getElementById("first").innerHTML = "Enabled";
   }

}
</script>
<?php



$language = "<select name=\"lang\">\n<option value=\"0\">".T_("UNKNOWN_NA")."</option>\n";

$langs = langlist();
foreach ($langs as $row)
   $language .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["name"]) . "</option>\n";

$language .= "</select>\n";


if ($site_config['ANONYMOUSUPLOAD'] && $site_config["MEMBERSONLY"] ){ ?>
   <tr><td align="right"><?php echo T_("UPLOAD_ANONY");?>: </td><td><?php printf("<input name='anonycheck' value='yes' type='radio' " . ($anonycheck ? " checked='checked'" : "") . " />Yes <input name='anonycheck' value='no' type='radio' " . (!$anonycheck ? " checked='checked'" : "") . " />No"); ?> &nbsp;<i><?php echo T_("UPLOAD_ANONY_MSG");?></i>
   </td></tr>
   <?php
}




print ("<tr><td align='center' colspan='2'>" . T_("DESCRIPTION") . "</td></tr></table>");

require_once("backend/bbcode.php");
print textbbcode("upload","descr","$descr");
?>

<br /><br /><center><input type="submit" value="<?php echo T_("UPLOAD_TORRENT"); ?>" /><br />
<i><?php echo T_("CLICK_ONCE_IMAGE");?></i>
</center>
</form>
<?php
end_frame();
stdfoot();
?>

[ATTACH type="full"]5883[/ATTACH]
Do you mean log into your existing live site and download a existing torrent with the test account right? If so, I did that and nothing happened. I also use qbittorrent. Utorrent is complete trash. I also dont use xamp if that matters or not. I installed the server manually
double ip — 2020-09-01 21:06:39 in v3 Mods Requests
admincp.php. the rest should work fine
#======================================================================#
#  Duplicate IP's
#======================================================================#
if ($action == "duplicateips")
{
       $res = SQL_Query_exec("SELECT ip FROM users GROUP BY ip HAVING count(*) > 1");
       $num = mysqli_num_rows($res);
     
       list($pagertop, $pagerbottom, $limit) = pager(25, $num, 'admincp.php?action=duplicateips&amp;');
     
       $res = SQL_Query_exec("SELECT id, username, class, email, ip, added, last_access, COUNT(*) as count FROM users GROUP BY ip HAVING count(*) > 1 ORDER BY id ASC $limit");

       stdhead(T_("DUPLICATEIP"));
     
     
       begin_frame(T_("DUPLICATEIP"));
       ?>
     
       <center><?php echo T_("DUPLICATEIPINFO"); ?></center>

       <br />
     
       <?php if ($num > 0): ?>
       <br />
       <table border="0" cellpadding="3" cellspacing="0" width="100%" align="center" class="table_table">
       <tr>
                       <th class="table_head"><?php echo T_("USERNAME"); ?></th>
                       <th class="table_head"><?php echo T_("USERCLASS"); ?></th>
                       <th class="table_head"><?php echo T_("EMAIL"); ?></th>
                       <th class="table_head"><?php echo T_("IP"); ?></th>
                       <th class="table_head"><?php echo T_("ADDED"); ?></th>
                       <th class="table_head"><?php echo T_("COUNT"); ?></th>
       </tr>
       <?php while ($row = mysqli_fetch_assoc($res)): ?>
       <tr>
                       <td class="table_col1" align="center"><a href="account-details.php?id=<?php echo $row["id"]; ?>"><?php echo $row["username"]; ?></a></td>
                       <td class="table_col2" align="center"><?php echo get_user_class_name($row["class"]); ?></td>
                       <td class="table_col1" align="center"><?php echo $row["email"]; ?></td>
                       <td class="table_col2" align="center"><?php echo $row["ip"]; ?></td>
                       <td class="table_col1" align="center"><?php echo utc_to_tz($row["added"]); ?></td>
                       <td class="table_col1" align="center"><a href="admincp.php?action=usersearch&amp;ip=<?php echo $row['ip']; ?>"><?php echo number_format($row['count']); ?></a></td>
       </tr>
       <?php endwhile; ?>
       </table>                
       <?php else: ?>
                  <center><b><?php echo T_("NOTHING_FOUND"); ?></b></center>
       <?php
       endif;
                                                                                                               
       if ($num > 25) echo $pagerbottom;

       end_frame();
       navmenu();
       stdfoot();
}
Just had a peek at your rss.php and its the old one. This one works if you wanna adapt it to your coding. This is slightly modded from the original. I didnt use mysqli on this since you will prolly change all that if you decide to use it

<?php
//
//  TorrentTrader v3.x
//   $LastChangedDate: 2018-09-01
//      $LastChangedBy: MicroMonkey
//  
//   http://www.torrenttrader.org
//
//
//
// Validated at: https://Rssboard.org
//
require_once("backend/functions.php");
dbconn();

if (isset($_GET["custom"])){
  stdhead(T_("CUSTOM_RSS_XML_FEED"));
  begin_frame(T_("CUSTOM_RSS_XML_FEED"));

  $rqt = "SELECT id, name, parent_cat FROM categories ORDER BY parent_cat ASC, sort_index ASC";
  $resqn = SQL_Query_exec($rqt);

  if ($_POST) {
     $params = array();

     if ($cats = $_POST["cats"]) {
        $catlist = array();
        foreach ($cats as $cat) {
           if (is_numeric($cat)) {
              $catlist[] = $cat;
           }
        }
        if ($catlist)
           $params[] = "cat=".implode(",", $catlist);
     }

     if ($_POST["incldead"])
        $params[] = "incldead=1";

     if ($_POST["dllink"])
        $params[] = "dllink=1";

     if (!$_POST["cookies"] && $CURUSER)
        $params[] = "passkey=$CURUSER[passkey]";

     if ($params)
        $param = "?".implode("&amp;", $params);
     else
        $param = "";

     echo "Your RSS link is: <a href=\"$site_config[SITEURL]/rss.php$param\">$site_config[SITEURL]/rss.php$param</a><br/><br/>";
  }
  ?>
  What is RSS? Take a look at the <a href="http://wikipedia.org/wiki/RSS_%28file_format%29"target= "blank">Wiki</a> to <a href="http://wikipedia.org/wiki/RSS_%28file_format%29"target= "blank">learn more</a>.<br /><br />

  <form action="rss.php?custom" method="post">
  <table border="0" cellpadding="5" cellspacing="0" class="table_table">
  <tr>
     <td class="table_col1" valign="top">Categories:</td>
     <td class="table_col2" valign="top">(Leave blank for All)<br /><br />
     <?php while ($row = mysql_fetch_array($resqn)) {
        echo '<input type="checkbox" name="cats[]" value="'.$row['id'].'" /> '.htmlspecialchars("$row[parent_cat] - $row[name]").'<br />';
     }
     ?>
     </td>
  </tr>
  <tr>
     <td class="table_col1"><?php echo T_("FEED_TYPE");?>:</td>
     <td class="table_col2">
        <input type="radio" name="dllink" value="1" checked="checked" /> Download link<br />
        <input type="radio" name="dllink" value="0" /> Details link<br />
     </td>
  </tr>
  <tr>
     <td class="table_col1"><?php echo T_("LOGIN_TYPE");?>:</td>
     <td class="table_col2">
          <input type="radio" name="cookies" value="0" checked="checked" /> Alternative (Passkey)<br/>
<!--         <input type="radio" name="cookies" value="1"  /> Standard (cookies)<br/> -->

       </td>
  </tr>
  <tr>
     <td class="table_col1"><?php echo T_("INCLUDE_DEAD");?>:</td>
     <td class="table_col2"><input type="checkbox" name="incldead" value="1" /></td>
  </tr>
  <tr>
     <td colspan="2" align="center"><input type="submit" value="Get Link" /></td>
  </tr>
  </table>
  </form>
  <br /><br />
  <div align="left">
  Quick information regarding our RSS:
  <ul>
  <li>Our RSS feeds are properly validated by true RSS 2.0 XML Parsing Standards. Visit <a rel="prettyPhoto[iframes]" href="https://www.rssboard.org/rss-validator/check.cgi?url=<?php echo ''.$site_config["SITEURL"].'' ?>/rss.php?iframe=true" target= "blank">Rssboard.org</a> to validate.</li>
  <li>Our feeds display only the latest 50 uploaded Torrents as default.</li>
  </ul>
  </div>
  <?php
  end_frame();
  stdfoot();
  die();
}

$cat = $_GET["cat"];
$dllink  = (int)$_GET["dllink"];

$passkey = $_GET["passkey"];
if (!get_row_count("users", "WHERE passkey=".sqlesc($passkey)))
  $passkey = "";


$where = "";
$wherea = array();
if (!$incldead) {
  $wherea[] = "visible='yes'";
}

if ($cat) {
  $cats = implode(", ", array_unique(array_map("intval", explode(",", ( string ) $cat))));
  $wherea[] = "category in ($cats)";
}

if (is_valid_id($_GET["user"])) {
  $wherea[] = "owner=$_GET[user]";
}

if ($wherea)
  $where = "WHERE ".implode(" AND ", $wherea);


$limit = "LIMIT 50";

// start the RSS feed output
header("Content-Type: application/rss+xml; charset=$site_config[CHARSET]");

echo("<?xml version='1.0' encoding='$site_config[CHARSET]'?>");
echo("<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'><channel><generator>" . htmlspecialchars($site_config["SITENAME"]) . " RSS 2.0</generator><language>en</language>" .
"<title>" . $site_config["SITENAME"] . "</title><description>" . htmlspecialchars($site_config["SITENAME"]) . " RSS Feed</description><link>" . $site_config["SITEURL"] . "</link><copyright>Copyright " . htmlspecialchars($site_config["SITENAME"]) . "</copyright><pubDate>".date("r")."</pubDate>");

$res = SQL_Query_exec("SELECT torrents.descr, torrents.image1, torrents.id, torrents.name, torrents.size, torrents.category, torrents.added, torrents.leechers, torrents.seeders, categories.parent_cat as cat_parent, categories.name AS cat_name FROM torrents LEFT JOIN categories ON category = categories.id $where ORDER BY added DESC $limit");
?>
<atom:link href='<?php echo ''.$site_config["SITEURL"].'' ?>/rss.php' rel='self' type='application/rss+xml' />
<?php
while ($row = mysql_fetch_array ($res)){
  list($descr,$image1,$id,$name,$size,$category,$added,$leechers,$seeders,$catname) = $row;

  if ($dllink) {
     if ($passkey)
        $link = "$site_config[SITEURL]/download.php?id=$id&amp;passkey=$passkey";
     else
        $link = "$site_config[SITEURL]/download.php?id=$id";
  } else {
     $link = $site_config["SITEURL"]."/torrents-details.php?id=$id&amp;hit=1";
  }

  $pubdate = date("r", sql_timestamp_to_unix_timestamp($added));

//   echo ("<item><title>" . htmlspecialchars($name) . "</title><guid>" . $link . "</guid><link>" . $link . "</link><pubDate>" . $pubdate . "</pubDate><category> " . $row["cat_parent"] . ": " . $row["cat_name"] . "</category><description> Category: " . $row["cat_parent"] .  "  It's a " . $row["cat_name"] . "  and its only " . mksize($size) . " that was added on " . $added . " There are " . $seeders . "  seeders   and  " . $leechers . " leechers <![CDATA[<br/>]]><![CDATA[<img src=/uploads/images/".$image1.">]]><![CDATA[<br/>]]>".$descr."</description></item>");
 
      echo ("<item><title>" . htmlspecialchars($name) . "</title><guid>" . $link . "</guid><link>" . $link . "</link><pubDate>" . $pubdate . "</pubDate><category> " . $row["cat_parent"] . ": " . $row["cat_name"] . "</category><description> Category: " . $row["cat_name"] . "  Size: " . mksize($size) . " Added: " . $added . " There are " . $seeders . "  seeders   and  " . $leechers . " leechers <![CDATA[<br/>]]><![CDATA[<img src=/uploads/images/".$image1.">]]><![CDATA[<br/>]]>".$descr."</description></item>");
}
echo("</channel></rss>");
?>
This is dumb, but the link for validating rss in rss.php is no longer working, you can use this instead if you want. Dont know what made me think of it, but meh, I get dumb random thoughts sometimes lol
   <li>Our RSS feeds are properly validated by true RSS 2.0 XML Parsing Standards. Visit <a rel="prettyPhoto[iframes]" href="https://www.rssboard.org/rss-validator/check.cgi?url=<?php echo ''.$site_config["SITEURL"].'' ?>/rss.php?iframe=true" target= "blank">Rssboard.org</a> to validate.</li>

Obviously you can just use the URL and not this whole line of code since mine uses prettyphoto and iframes. The code above will auto check your rss instead of opening a new tab and you have to type in the rss.php file location link
Users online
Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 10

  • Online

  • Total online: 4
  • Members: 1
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728