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

BAN ALL UPLOADED TORRENTS — 2020-01-02 00:26:32 in v3 Support
Change all mysql_ to mysqli_ . 16 times I counted in that code. I didnt see anything else in that code that would be difficult to use mysqli
LIMIT STICKY — 2019-12-28 01:25:48 in v2.08 Support
not sure what you are talking about
Valid RSS file TTv3 — 2019-12-19 21:06:29 in v3 Support
I forgot all about the RSS file for v3, so I just edited my old 2.08 that I fixed a long time ago. The RSS in v3 does not work properly. try this one. It has the code for prettyphoto in it, but if you dont use prettyphoto, dont worry about it, nothing changes. I also included images in RSS, if you dont like that, just remove the CDATA
rss.php

<?php
//
//  TorrentTrader v3
//   $LastChangedDate: 2019-12-19
//      $LastChangedBy: MicroMonkey
// Validated at: http://feedvalidator.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 = mysqli_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.feedvalidator.org/check.cgi?url=<?php echo ''.$site_config["SITEURL"].'' ?>/rss.php?iframe=true" target= "blank">FeedValidator.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 = mysqli_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"] . ": " . $row["cat_name"] . "  Size: " . mksize($size) . " Added: " . $added . " Seeders: " . $seeders . " Leechers: " . $leechers . "</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>");
?>
Announcements bar — 2019-12-17 22:41:23 in v3 Mods Completed
yea, there are quite a few things going on in the script. I just posted it for anyone to try. Perhaps it could be changed to not execute on every page, but I will leave that to anyone who wants to fiddle with it
Announcements bar — 2019-12-17 19:12:24 in v3 Mods Completed
in case anyone wonders why this block is in the center top of my test site, its because I moved the code for middleblocks() to the header.php of the theme and removed it from the footer.php, otherwise, middleblocks will show up at the bottom of the page. Since I didnt use any middleblocks besides this one, it made sense to be able to display it at the top
Announcements bar — 2019-12-17 19:04:00 in v3 Mods Completed
This was created by BigMax. I helped him with something involving this file but I dont remember anymore what it was, but I still have it. It works great if you can find a use for it. Just create a new block, like announcements_block.php. I have a screen of it working on 2.08
<?php
#================================#
#  TorrentTrader 2.08/TTv3       #
#  http://www.torrenttrader.org  #
#--------------------------------#
#  Built by BigMax - 12.01.2014  #
#          edited for TTv3       #
#================================#
if ($CURUSER)
{
   $qry = SQL_Query_exec("SELECT COUNT(`hnr`) FROM `snatched` WHERE `uid` = '".$CURUSER["id"]."' AND `hnr` = 'yes'");
   $res2 = mysqli_fetch_row($qry);
//    $hnr = "<font style=\"background-color:#252525\" color=\"#FEFEFE\"><b>&nbsp; ".$res2[0]." &nbsp;</font>";
//    $hnr2 = $res2[0];
//    $res_reports = SQL_Query_exec("SELECT COUNT(*) FROM reports WHERE dealtwith = '0'");
//    $arr_reports = mysqli_fetch_row($res_reports);
//    $num_reports = $arr_reports[0];
//    $res_staffmessages = SQL_Query_exec("SELECT COUNT(*) FROM staffmessages WHERE answered = '0'");
//    $arr_staffmessages = mysqli_fetch_row($res_staffmessages);
//    $num_staffmessages = $arr_staffmessages[0];
//    $res_donatemessages = SQL_Query_exec("SELECT COUNT(*) FROM donatemessages WHERE answered = '0'");
//    $arr_donatemessages = mysqli_fetch_row($res_donatemessages);
//    $num_donatemessages = $arr_donatemessages[0];
   $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");
   $arr = mysqli_fetch_row($res);
   $unreadmail = $arr[0];
   if (($CURUSER["announce_read"] == "no" && $arr = announcement()) || ($hnr2 > 0) || ($num_reports > 0) || ($num_staffmessages > 0) || ($num_donatemessages > 0) || ($unreadmail > 0))
   {
       begin_frame(T_("ANNOUNCEMENTS_BAR"));

       // Start Hit and Run Warning
       If ($res2[0] > 0) {
           echo"<div style='margin-top:3px; margin-bottom:3px'>
               <table width=100% border=0 cellspacing=0 cellpadding=10>
                   <tr>
                       <td style='background: #AB0000' align=center>
                           <div style='font: bold 15px Times New Roman; color:#FFBF00'>
                               $CURUSER[username], ".T_("YOU_HAVE")." ".$hnr." ".($hnr2 > 1 ? "".T_("RECORDINGS")."" : "".T_("RECORDING")."")." ".T_("FOR_HNR")."<font style='margin-left:2px'>!</font>
                               <font style='margin-left:5px'>".T_("VIEW_RECORDINGS_IN")."</font> <a href=snatched.php><font size=3 color=#CBCBCB>".T_("YOUR_SNATCHLIST")."</font></a><br />
                               ".T_("MUST_SEEDING_OR")."
                               ".($hnr2 > 1 ? "".T_("THESE_RECORDINGS")."" : "".T_("THIS_RECORDING")."")."
                           </div>
                       </td>
                   </tr>
               </table>
           </div>\n";
       }
       // End Hit and Run Warning
       // Start Announcement for Reports
       if ($CURUSER["control_panel"]=="yes"){
           if ($num_reports > 0){
               echo"<a href=admincp.php?action=reports&do=view>
                   <div style='margin-top:3px; margin-bottom:3px'>
                       <table width=100% border=0 cellspacing=0 cellpadding=10>
                           <tr>
                               <td style='background: #AB0000' align=center>
                                   <div style='font: bold 14px Times New Roman; color:#FFBF00'>
                                       $CURUSER[username], $num_reports ".($num_reports > 1 ? "".T_("REPORTS_ARE")."" : "".T_("REPORT_IS")."")." ".T_("WAITING_TO_BE_SOLVED").".
                                       <font style='margin-left:5px'>".T_("CLICK_TO_VIEW_REPORTS")."</font><font style='margin-left:2px'>!</font>
                                   </div>
                               </td>
                           </tr>
                       </table>
                   </div>
               </a>\n";
           }
       }
       // End Announcement for Reports
       // Start Announcement for Staff Messages
       if ($CURUSER["control_panel"]=="yes"){
           if ($num_staffmessages > 0){
               echo"<a href=staffbox.php>
                   <div style='margin-top:3px; margin-bottom:3px'>
                       <table width=100% border=0 cellspacing=0 cellpadding=10>
                           <tr>
                               <td style='background: #AB0000' align=center>
                                   <div style='font: bold 14px Times New Roman; color:#FFBF00'>
                                       $CURUSER[username], $num_staffmessages ".($num_staffmessages > 1 ? "".T_("MESSAGES_FOR_STAFF_ARE")."" : "".T_("MESSAGE_FOR_STAFF_IS")."")." ".T_("WAITING_ANSWER").".
                                       <font style='margin-left:5px'>".T_("CLICK_THIS_BAR_TO")."</font> ".($num_staffmessages > 1 ? "".T_("READ_THEM")."" : "".T_("READ_IT")."")."<font style='margin-left:2px'>!</font>
                                   </div>
                               </td>
                           </tr>
                       </table>
                   </div>
               </a>\n";
           }
       }
       // End Announcement for Staff Messages
       // Start Announcement for Donated Messages
       if ($CURUSER["control_panel"]=="yes"){
           if ($num_donatemessages > 0){
               echo"<a href=donatebox.php>
                   <div style='margin-top:3px; margin-bottom:3px'>
                       <table width=100% border=0 cellspacing=0 cellpadding=10>
                           <tr>
                               <td style='background: #AB0000' align=center>
                                   <div style='font: bold 14px Times New Roman; color:#FFBF00'>
                                       $CURUSER[username], $num_donatemessages ".($num_donatemessages > 1 ? "".T_("MSGS_FOR_DONATION_ARE")."" : "".T_("MSG_FOR_DONATION_IS")."")." ".T_("WAITING_TO_BE_SOLVED").".
                                       <font style='margin-left:5px'>".T_("CLICK_THIS_BAR_TO")."</font> ".($num_donatemessages > 1 ? "".T_("READ_THEM")."" : "".T_("READ_IT")."")."<font style='margin-left:2px'>!</font>
                                   </div>
                               </td>
                           </tr>
                       </table>
                   </div>
               </a>\n";
           }
       }
       // End Announcement for Donated Messages
       // Start Announcement for Private Messages
       if ($unreadmail){
           $res_messages = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");
           $arr_messages = mysqli_fetch_row($res_messages);
           $num_messages = $arr_messages[0];
           if ($num_messages > 0){
               echo"<a href=mailbox.php?inbox>
                   <div style='margin-top:3px; margin-bottom:3px'>
                       <table width=100% border=0 cellspacing=0 cellpadding=10>
                           <tr>
                               <td style='background: #AB0000' align=center>
                                   <div style='font: bold 14px Times New Roman; color:#FFBF00'>
                                       $CURUSER[username], $num_messages ".($num_messages > 1 ? "".T_("PRIVATE_MESSAGES_ARE")."" : "".T_("PRIVATE_MESSAGE_IS")."")." ".T_("WAITING_FOR_YOU").".
                                       <font style='margin-left:5px'>".T_("CLICK_THIS_BAR_TO")."</font> ".($num_messages > 1 ? "".T_("READ_THEM")."" : "".T_("READ_IT")."")."<font style='margin-left:2px'>!</font>
                                   </div>
                               </td>
                           </tr>
                       </table>
                   </div>
               </a>\n";
           }
       }
       // End Announcement for Private Messages
       // Site Anouncements
       if ($CURUSER && $CURUSER["announce_read"] == "no" && $arr = announcement()){
           $added = date("<\\b>d-M-Y<\\/\\b> H:i", utc_to_tz_time($arr["added"]));
           ?>
           <script type="text/javascript" src="scripts/announcement.js"></script>
           <script type="text/javascript" src="scripts/preview.js"></script>
           <div id="dropin" style="position:absolute; visibility:hidden; center; top:100px; width:850px; height:100px">
               <table border="0" cellpadding="0" cellspacing="0" width="100%" class="error" align="center">
                   <tbody>
                       <tr>
                           <td class="none" style="padding: 2px 0 0 10px; background: #FFBF00">
                               <font color=black><?php echo T_("TITLE"); ?>: <b><?=$arr["subject"]?></b> <?php echo T_("_CREATED_ON"); ?>: <?=$added ?></font>
                           </td>
                           <td align="right" class="none" style="padding: 5px; background: #FFBF00">
                               <a href="#" onClick="dismissbox();return false"><img src="images/close.jpg" border="0"></a>
                           </td>
                       </tr>
                       <tr>
                           <td colspan="2" class=none width="100%" style="padding: 0 0 0 10px;" bgcolor="#252525">
                               <div style="margin-top:10px; margin-bottom:10px">
                                   <font size=2 color="#CBCBCB"><?=format_comment($arr["message"]) ?></font>
                               </div>
                               <img id="loading" style="visibility: hidden" src="images/load.gif">
                               <span style="color:#CBCBCB" name="preview" id="previewr" align="left">
                                   <div style="margin-top:10px; margin-bottom:10px" align="center">
                                       [<a href="#" onclick="javascript:clearannouncement(this.parentNode,'clear_ann.php')"><font color="#FFBF00"><b><?php echo T_("DELETE_THIS_ANN"); ?></b></font></a>]
                                   </div>
                               </span>
                           </td>
                       </tr>
                   </tbody>
               </table>
           </div>
           <a href="javascript:show_announcement()">
               <div style='margin-top:3px; margin-bottom:3px'>
                   <span id="new_ann" style="visibility: visible">
                       <table width='100%' border="0" cellspacing="0" cellpadding="10" bgcolor="#AB0000">
                           <tr>
                               <td style='background: #AB0000' align='center'>
                                   <div style='font: bold 14px Times New Roman; color:#FFBF00'>
                                       <?php echo "".$CURUSER[username].""; ?>, <?php echo T_("NEW_ANN_CLICK_TO_READ"); ?><font style='margin-left:2px'>!</font>
                                   </div>
                               </td>
                           </tr>
                       </table>
                   </span>
               </div>
           </a>
           <?php
       } // End Site Announcements
       end_frame();
   }
}
?>

[ATTACH type="full"]5306[/ATTACH]
capital letters is already accounted for here. Here is the ASCII table http://www.asciitable.com/
      for ($i = 97; $i < 123; ++$i)
     {
     $l = chr($i); // lowercase letters a-z
     $L = chr($i - 32);  //Capital letters in ASCII. Example 122 is z, 122-32=90 which is Z
TorrentTrader 3.0 — 2019-12-16 01:51:51 in v3 Download
This is a fix for bad announce in PHP 7.4. Just wanted to post if it helps anyone. 7.3 and below doesnt seem to be affected, but you should still be able do what is posted below.
In announce.php, functions.php, and scrape.php there are references to get_magic_quotes_gpc(), which has been dead for a long time, but everything just worked since it returned false and moved on. It seems the new php 7.4 completely dont like this reference at all, so if you remove it, TTv3 works on PHP 7.4 as well. Im testing this on ubuntu 18.04.3 LTS and apache 2.4.41
I wonder if sqlesc should be used instead?

in announce and functions find
function unesc($x) {
   if (get_magic_quotes_gpc())
       return stripslashes($x);
   return $x;
}

to
function unesc($x) {
       return stripslashes($x);
   return $x;
}



and in scrape.php
foreach (explode("&", $_SERVER["QUERY_STRING"]) as $item) {
   if (preg_match("#^info_hash=(.+)\$#", $item, $m)) {
       $hash = urldecode($m[1]);

       if (get_magic_quotes_gpc())
           $info_hash = stripslashes($hash);
       else
           $info_hash = $hash;
       if (strlen($info_hash) == 20)
           $info_hash = bin2hex($info_hash);
       else if (strlen($info_hash) != 40)
           continue;
       $infohash[] = sqlesc(strtolower($info_hash));
   }
}

to
foreach (explode("&", $_SERVER["QUERY_STRING"]) as $item) {
   if (preg_match("#^info_hash=(.+)\$#", $item, $m)) {
       $hash = urldecode($m[1]);
           $info_hash = stripslashes($hash);
 //        $info_hash = $hash;
       if (strlen($info_hash) == 20)
           $info_hash = bin2hex($info_hash);
       else if (strlen($info_hash) != 40)
           continue;
       $infohash[] = sqlesc(strtolower($info_hash));
   }
}
in your theme.css, play with the height number. 300 seems to look nice if you set your index.php to 400
.shoutbox_contain {
   border: 0;
   height: 150;
   width: 100%;
   overflow: auto;
   align: middle;
}
I got this from bravolist a while back. It was free, but it seems its not correct. Im no good with themes or css at all, so I will post it here in case someone gets bored and can make it nice
This should be one way to do it. I didnt get very creative with this, seems simple enough. In catalog.php search
if ($letter == "" || strpos("abcdefghijklmnopqrstuvwxyz", $letter) === false)

replace with
if ($letter == "" || strpos("0123456789abcdefghijklmnopqrstuvwxyz", $letter) === false)

search
      for ($i = 97; $i < 123; ++$i)
     {
     $l = chr($i);
     $L = chr($i - 32);

if ($l == $letter)

     print("<b><u>$L</u></b>\n");
     else
     print("<a href=?letter=$l><b>$L</b></a>\n");
     }
     print("</p><br /></center>\n");

replace with
    
     for ($i = 97; $i < 123; ++$i)
     {
     $l = chr($i); // lowercase letters a-z
     $L = chr($i - 32);  //Capital letters in ASCII. Example 122 is z, 122-32=90 which is Z


if ($l == $letter)

     print("<b><u>$L</u></b>\n");
     else
     print("<a href=?letter=$l><b>$L</b></a>\n");
     }
     print("</p><br />\n");

///number in filename
     for ($i = 48; $i < 58; ++$i) //Numbers in ASCII table 48-57 = 0 thru 9
     {
     $l = chr($i);
     $L = chr($i);

if ($l == $letter)

     print("<b><u>$L</u></b>\n");
     else
     print("<a href=?letter=$l><b>$L</b></a>\n");
     }
     print("</p><br /></center>\n");
///end number in filename
Upload problem — 2019-12-08 17:43:57 in v3 Support
did you mess with your cleanup file? Try replacing your cleanup.php with a stock one
Upload problem — 2019-12-07 20:24:47 in v3 Support
I think its a permission problem. Check your chmods and also make sure your directory is set like
sudo chown -R www-data:www-data /var/www/yoursite
I see what you mean. Do you have a solution? I will toy with it, but post if you solve it
All credit to uffeno1. Just posting here to test on TTv3

upload catalog.php to root
Upload images folder. Should place images where they need to be automatically. (there are only 4 images)
in english.php put
//Catalogue
$LANG["CATALOGUE"] = "Catalog";
$LANG["SEARCH_CAT"] = "Search Catalog";
$LANG["TORRENT_INFO"] = "Torrent INFO";
$LANG["SEED_INFO"] = "Seed info! (top 5 seeders)";
$LANG["NUMBER_OF_DOWNLOADS"] = "Downloaded";
$LANG["TIMES"] = "times";
$LANG["TORRENT_GO"] = "To torrent";
$LANG["DIRECT_DOWN"] = "Direct download";
$LANG["NO_INFO"] = "No information available";
$LANG["NO_SEEDER"] = "No Seeders";
$LANG["NO_MATCHES"] = "Sorry. Nothing matches";
$LANG["CLICK_ENLARGE"] = "Click to enlarge";
$LANG["TORRENT_NOT_ACTIVE"] = "This torrent is not active";


Create a link to catalog.php in your theme header or wherever you like
Doesn't this basically already exist? I mean, you can dress it up and make it pretty if you want, but....
if (!$CURUSER || $CURUSER["control_panel"]!="yes"){
    show_error_msg(T_("ERROR"), T_("SORRY_NO_RIGHTS_TO_ACCESS"), 1);
}
this line here was changed also, since there was no longer a variable $a2. I changed it to just $a
$cat = "<img src=\"images/categories//$a2[image]\" alt=\"$a2[name]\" title=\"$row[cat_parent] : $row[cat_name]\" width=\"110\" height=\"40\">";
ooops lol. I was editing old code for that haha. post updated :ROFLMAO:
maybe like this here?
    ////////////// Similar Torrents mod /////////////////////
begin_frame(T_("SIMILAR_TORRENTS"));
           $char1 = 50; //cut length
           $shortname = CutName(htmlspecialchars($a["name"]), $char1);
           $searchname = substr($row['name'], 0, 8);
           $query1 = str_replace(" ", ".", sqlesc("%" . $searchname . "%"));
           $query2 = str_replace(".", " ", sqlesc("%" . $searchname . "%"));
$r = SQL_Query_exec("SELECT torrents.id,  torrents.name,  torrents.size,  torrents.added,  torrents.seeders,  torrents.leechers,  torrents.category, categories.image FROM torrents LEFT JOIN categories ON (categories.id = torrents.category) WHERE (torrents.name LIKE {$query1} AND seeders > '0' AND torrents.id <> '$id') OR (torrents.name LIKE {$query2} AND seeders > '0' AND torrents.id <> '$id') ORDER BY seeders DESC LIMIT 10");
 
   if (mysqli_num_rows($r) > 0) {
           echo "<table width=100% class=main border=1 cellspacing=0 cellpadding=0 class=table_table>\n" . "
           <tr>
                   <td class='table_head' width='20'>Type</td>
                   <td class='table_head'>Name</td>
                   <td class='table_head' align='center'>Size</td>
                   <td class='table_head' align='center'>Added</td>
                   <td class='table_head' align='center'>S</td>
                   <td class='table_head' align='center'>L</td></tr>\n";
 
   while ($a = mysqli_fetch_assoc($r)) {
 //          $r2 = SQL_Query_exec("SELECT name, image FROM categories WHERE id=$a[category]");
 //          $a2 = mysqli_fetch_assoc($r2);
           $cat = "<img class=glossy src=\"images/categories//$a[image]\" alt=\"$a[name]\" title=\"$row[cat_parent] : $row[cat_name]\"\>";
           $name = $a["name"];
 
           echo"<tr><td class='table_col1' style='padding: 1px' align='center'>$cat</td>
                    <td class='table_col1'><a title=".$a["name"]." href=torrents-details.php?id=" . $a["id"] . "&hit=1><b>" . CutName(htmlspecialchars($a["name"]), $char1) . "</b><br/></a></td>
                    <td class='table_col1' style='padding: 1px' align='center'>" . mksize($a[size]) . "</td>
                    <td class='table_col1' style='padding: 1px' align='center'>$a[added]</td>
                    <td class='table_col1' style='padding: 1px' align='center'><span style='color:Chartreuse'>$a[seeders]</span></td>
                    <td class='table_col1' style='padding: 1px' align=center><span style='color:red'>$a[leechers]</span></td></tr>\n";
   }
     
   echo "</table>";
     
   }
               else {
                   print(T_("NO_SIMILAR_TORRENT_FOUND"));
               }
end_frame();
   ////////////// End Similar Torrents mod /////////////////////
shoutcast v2 ??? — 2019-11-25 23:28:51 in v3 Mods Requests
"steven07, post: 67573, member: 1032":

then I'm just too stupid, because I can not get this damned radio running :ROFLMAO::ROFLMAO:

lol. have you tried the one that spiritblue posted? https://www.torrenttrader.xyz/index.php?threads/shoutcast-v2-player.9862/
Users online

No 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: 9

  • Online

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