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
Torrent Trader PDO/MVC 2021 Pre-Release
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / M-BiTsy / M-BiTsy Support

2020-08-31 08:18:52
[color=rgb(250, 197, 28)]Members are welcome to use this to test but the github has not been updated for a while, the next update will be in january[/color]

Here is my Torrent Trader Project
Its updated to pdo with a mvc core, built for the latest version of php (7.4) in bootstrap 4 this project is used on my current site and is updated regular and full support is provided.

TT has been around for at least 20 years so needed bringing up to date, but we can not forgot about the past so a big shout out to all who contributed to the code over the years. This is modded out so credit to any original authors of any code ive just updated it and put my own spin on it.

Pre-Release
Its pre-release for two little reasons, so do not let that put you off
1) Testers, i want testers - a small group have been testing but the more test the better i am pretty quick at bug fixing
2) It is MVC but there is query's & html in the controllers, this is just a time thing and is next on the list, it does not effect anything i just wanted to get mods & functionality first

Beginners
I feel software should be able to work on a free shared host, i do not recommend this especially on a torrent site you would be banned, but the principle that any one should be able to edit the config file, upload and done, no third party installs, no huge autoloads just a simple 2MB folder that can hold its own. For more experienced users of course you can implement these things like cloudflare & opcache to name a few.

Donations
I do NOT except donations, i do NOT do paid work, i am old skool i believe in community. Its together we improve and move forward so please post thoughts, ideas, recommendations and bugs here. Any private message will be ignored. Except technical php issues like a class, becoding re-doing announce i am always looking to try new things and learn.
I have had a website for 12 years first phpbb then TT so i am in it for the long haul.

Mods
There is so many mods to name imdb, snatch, vip, ip checks, encrypted passwords and much more there is two mods on that are in progress but that will be finished soon
1) Hit & Run (in last stages of testing) so is disabled in config
2) External scraper (i dont use external torrents so this has been left until last)

screencapture-localhost-pdo-users-profile-2020-08-31-12_11_52.png
screencapture-localhost-pdo-users-profile-2020-08-31-12_11_52.png
screencapture-localhost-pdo-index-php-2020-08-31-12_11_27.png
screencapture-localhost-pdo-index-php-2020-08-31-12_11_27.png
screencapture-localhost-pdo-torrents-read-2020-08-31-12_11_11.png
screencapture-localhost-pdo-torrents-read-2020-08-31-12_11_11.png
Untitled.png
Untitled.png
Last edited by M-jay warn on 2022-01-11 10:26:58
2020-08-31 08:33:30
very interesting, from my side it's what affects the themes which is my strength, and I can test and make small modifications for you.
must learn to update the tt database, more than!
===============================================================================================================
tres intéressant, de mon coté c'est ce qui touche les themes qui est ma force, et je peux testé et faire de petite modification pour vous.
faut apprend a mettre a jours la bdd de tt, plus que du!

il serait bien que le hit&run fonctionne correctement un jour ;) MDR
=================
it would be good if the hit&run works correctly one day ;)

a testé! mais besoin de style ;)
2020-08-31 09:08:10
I think hit & run works 100% but have no members who hitnrun so maybe little issue  so it can be turned on to test. Users can use gb or seedbonus to remove them
2020-08-31 09:10:38
Once tested I will add update sql  (y)  old passwords of md5 will not work at the minute we use bycrypt
In full release all css & html will be in templates so easier for those with skills
2020-08-31 11:53:31
"m-jay, post: 69256, member: 20288":

Once tested I will add update sql  (y)  old passwords of md5 will not work at the minute we use bycrypt
In full release all css & html will be in templates so easier for those with skills


Take rehashing from my account class. It’s great.
2020-08-31 17:00:55
is your imdb mod similar to the one I have been using?
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-08-31 17:30:46
yes at the minute i dont allow movies so not in any rush, if your on xampp mate i would recommended testing this
[URL unfurl="true"]https://github.com/FabianBeiner/PHP-IMDB-Grabber[/url]

This is on my list its allows shows & games as well as movies just not had time yet to transfer it to TT heres image of my copy on xampp
Untitled.png
Untitled.png
2020-08-31 18:12:15
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
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-08-31 19:31:50
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>");
?>

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-08-31 19:52:46
Cheers m8 will give that a look
2020-09-01 00:26:54
Should look much like this >>

[ATTACH type="full"]5848[/ATTACH]
[ATTACH type="full"]5849[/ATTACH]
1598919960938.png
1598919960938.png
1598919993860.png
1598919993860.png

If It Ain't Dutch, It Ain't Much!!
2020-09-01 02:26:12
[USER=20288]@m-jay[/USER] , the config.php file is missing the closing  
?>
If It Ain't Dutch, It Ain't Much!!
2020-09-01 03:22:41
Php should not have ?> at the end to close files it's bad practice
2020-09-01 03:30:50
"m-jay, post: 69270, member: 20288":

Php should not have ?> at the end to close files it's bad practice

Learned something again ;-)
If It Ain't Dutch, It Ain't Much!!
2020-09-01 03:32:19
Noticed rss when i tried I micromonkeys the line in footer is wrong should have been <?php echo TTURL; ?>/rss?custom=1 but this will now be wrong too lol
updating rss change link in you theme to  <?php echo TTURL; ?>/rss/custom
Rss.zip
Download
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