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

All forum posts — 2021-06-23 19:34:54 in General Chat
@STorrents2020 thanks a lot mate, working like a charm ...
All forum posts — 2021-06-19 20:23:07 in General Chat
Thanks M-Jay, I have some small fixes on it so it works for V2.08 & V2.5 :

<?php
//
//      TorrentTrader v2.x
//      $LastChangedDate: 2021-06-19 22:35:58 +0000 (Sat, 19 Jun 2021) $
//      $LastChangedBy: M-Jay $
//
//      http://www.torrenttrader.uk
//
//


//ini_set('display_errors', 1);
//ini_set('display_startup_errors', 1);
//error_reporting(E_ALL);


require_once("backend/functions.php");
dbconn();
$id = (int)$_GET["id"];
      if (!isset($id) || !$id) {
autolink('', "no id");
      }

$res = SQL_Query_exec("SELECT forum_posts.id, topicid, userid, forum_posts.added, body, avatar, signature, username, title, class, uploaded, downloaded, privacy, donated FROM forum_posts LEFT JOIN users ON forum_posts.userid = users.id WHERE userid = $id ORDER BY forum_posts.userid "); //$limit
$row = mysql_fetch_assoc($res);
      if (!$row) {
autolink('', "User has not posted in forum");
      }
      $title = T_("ALLFORUMPOST") . "<a href='account-details.php?id=" . $row['userid'] . "'> $row[username]</a>";

stdhead($title);
begin_frame($title);
      while ($row = mysql_fetch_assoc($res)) {

          $postername = $row["username"];
          if ($postername == "") {
              $postername = T_("DELUSER");
              $title = T_("DELETED_ACCOUNT");
              $avatar = "";
              $usersignature = "";
              $userdownloaded = "";
              $useruploaded = "";
          } else {
              $privacylevel = $row["privacy"];
              $avatar = htmlspecialchars($row["avatar"]);
              $title = format_comment($row["title"]);
              $usersignature = stripslashes(format_comment($row["signature"]));
              $userdownloaded = mksize($row["downloaded"]);
              $useruploaded = mksize($row["uploaded"]);
          }

          if ($row["downloaded"] > 0) {
              $userratio = number_format($row["uploaded"] / $row["downloaded"], 2);
          } else {
              $userratio = "---";
          }

          if (!$avatar) {
              $avatar = "/images/default_avatar.png";
          }

          $commenttext = format_comment($row["body"]);

          $edit = null;
          if ($CURUSER["edit_torrents"] == "yes" || $CURUSER["edit_news"] == "yes" || $CURUSER['id'] == $row['user']) {
              $edit = ' <a href="../forums.php?action=editpost&postid=' . $row['id'] . '" class="button">   Edit</a>  ';
          }

          $delete = null;
          if ($CURUSER["delete_torrents"] == "yes" || $CURUSER["delete_news"] == "yes") {
              $delete = '  <a href="../forums.php?action=deletepost&postid=' . $row['id'] . '&sure=0" class="button">   Delete</a>  ';
          }

          print('<div><table border="0" class="table table-bordered2" width="100" cellpadding="3" cellspacing="3">');
          print('<tr class="b-title">');
          print('<th align="center" width="150"><span class="small" style="color:gold;text-shadow: 1px 1px 1px #000;">Posted: ' . date("d-m-Y \\u\\ H:i:s", utc_to_tz_time($row["added"])) . '<a id="comment' . $row["id"] . '"></a></span></th>');
          print('<th align="right">' . $edit . $delete . '  <a href="../report.php?forumid=' . $row['topicid'] . '&forumpost=' . $row['id'] . '" class="button">    Report</a> </th>');
          print('</tr>');
          print('<tr valign="top">');
          if ($CURUSER['edit_users'] == 'no' && $privacylevel == 'strong') {
              print('<td align="left" width="170"><center><a href="account-details.php?id=' . $row['userid'] . '"><b>' . $postername . '</b></a><br /><i>' . $title . '</i><br /><img width="100" height="100" class="img" src="' . $avatar . '" alt="" /><br /><br /><a href="account-details.php?id=' . $row['userid'] . '"><button type="button" class="button">    Profil</button></a> <a href="mailbox.php?compose&id=' . $row['userid'] . '"  class="button"><i class="far fa-envelope"></i> P.M </a></center></td>');
          } else {
              print('<td align="left" width="170"><center><a href="account-details.php?id=' . $row['userid'] . '"><b>' . $postername . '</b></a><br /><i>' . $title . '</i><br /><img width="100" height="100" class="img" src="' . $avatar . '" alt="" /><br /><br /><a href="account-details.php?id=' . $row['userid'] . '"><button type="button" class="button">    Profil</button></a> <a href="mailbox.php?compose&id=' . $row['userid'] . '"  class="button"><i class="far fa-envelope"></i> P.M </a></center></td>');
          }

          print('<td>' . $commenttext . '<hr />' . $usersignature . '</td>');
          print('</tr>');
          print('</table></div><br />');
      }
      end_frame();
      stdfoot();
?>


Link to implemente is:

<a href="userforumpost.php?id=<?php echo $id ?>"<?php echo number_format($numforumposts); ?> </a>


Regards to all of you guys
All forum posts — 2021-06-19 12:20:18 in General Chat
Thanks M-Jay, blank page without errors
All forum posts — 2021-06-19 06:31:36 in General Chat
Hi guy, i have a feeling i have written about this "wish" before but i can't find it so i will write again.
I need a link for "all forum posts" from each user on the tracker, something similar to what we have in the V4 or PDO version [click on the link to open a list of all forum posts that user has typed].

I tried to do something on my experience but it didn't work out.
I hope it’s not a big wish or too hard for one MOD

Have a nice weekend

TT Scraper — 2021-06-15 19:55:38 in M-BiTsy Support
OK, as I understand it, it will be an update of your current MVC / PDO version from the old code.

Will there be any "mega-scrape" as in the previous version and some form of "cronjob" so all this can be made easier for admins

Current situation is such that anyone can do "scrape" (it is default, but can be changed with some knowledge)

My old scraper is not like the one you just presented, it is very different

A good idea, I think
Hi SLy, this is my part of that and that works on my server right now:


//[youtube=https://www.youtube.com]
$s = preg_replace("/\s*[a-zA-Z\/\/:\.]*youtu(be.com\/watch\?v=|.be\/)([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i", "<iframe width=\"720\" height=\"480\" class=\"poster2\" src=\"//www.youtube.com/embed/$2\" allowfullscreen></iframe>", $s);

really hope that help to you
exclude some parts — 2021-06-11 07:57:59 in General Chat
@STorrents2020

exclude some parts — 2021-06-10 18:18:59 in General Chat
Hi M-Jay and thanks for your reply

the intention was not to delete bbcode but to "disable" already implemented codes in the form of images and links in torrent-datails.php for example:

The description of a movie or TV series begins with some text that at the end has some screenshots that show what it looks like, and of end we have 3-5 images links
[img] http : // image-link.com / my-images / image1.jpg [/ img]
[img] http : // image-link.com / my-images / image2.jpg [/ img]
[img] http : // image-link.com / my-images / image3.jpg [/ img]
[img] http : // image-link.com / my-images / image4.jpg [/ img]

I want to exclude those pictures or links
exclude some parts — 2021-06-10 10:36:32 in General Chat
Hi gang, hope are you well today everyone of you.

Have some wondering about torrent description and how to exclude some parts in torrent description of that.

For exemple if we have tags like [img] [url] or similar
that is about 8k-10k torrents how have them in description and that should make filter out on some way
Enchanced Requests — 2021-06-07 11:16:27 in v3 Mods Completed
Thanks @MicroMonkey and thanks @spiritblue,
how I can be so blind to miss just one damn ' off all possible similary things on this ADDON   :crylol

PS
Like someone say before here, time to by new glasses or bigger screen monitor
Enchanced Requests — 2021-06-06 08:37:57 in v3 Mods Completed
Hi guys, I finally found a solution to my problem on an old post here, although it seems like a charm, but I have a question for guys who have more experience than I do. STorrent2000 for example, how to make it more stable and safer to operate.
I would love to share this with those who use older versions of TT like I do.

To old to change me and my mentality as well my script to

Old part of code (on M-jay post, not working on my server):

SQL_Query_exec("INSERT INTO requests (hits, userid, cat, request, descr, poster, added) VALUES(1,".$CURUSER["id"].", $cat, $request, $descr, $poster, '" . get_date_time() . "')");
$id = mysql_insert_id($GLOBALS["DBconnector"]);
SQL_Query_exec("INSERT INTO addedrequests (requestid,userid) VALUES($id, $CURUSER[id])");
$sbmessage = "".T_("NEW_REQUEST")." for [url=".$site_config['SITEURL']."/reqall.php?Section=Request_Details&id=".$id."]".$requesttitle."[/url] ".T_("HAS_BEEN_MADE")."";
if (!$site_config["AJSHOUTBOX"])
{
SQL_Query_exec("INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, '".T_("REQUEST_SHOUTBOX_USER_INSERT")."', ".sqlesc($sbmessage).", '".get_date_time()."', '100')");
}
else
{
SQL_Query_exec("INSERT INTO ajshoutbox (date,name,text,uid) VALUES ('".get_date_time()."', '".T_("REQUEST_SHOUTBOX_USER_INSERT")."', ".sqlesc($sbmessage).",  '0')");
}


New one (taken from old post, working)

if(!empty($userid) || !empty($request) || !empty($desc) || !empty($cat)){

mysql_query("INSERT INTO requests (hits, userid, cat, request, descr, added) VALUES(1,$CURUSER[id], $cat, $request, $descr, '" . get_date_time() . "')") or die(mysql_error());


$id = mysql_insert_id();

@mysql_query("INSERT INTO addedrequests (requestid, userid) VALUES($id, $CURUSER[id])") or die(mysql_error());


mysql_query("INSERT INTO shoutbox (user, message, date, userid) VALUES('System', '$CURUSER[username] have requst for that torretn, movie or TV Show: [url=".$site_config[SITEURL]."/reqall.php?Section=Request_Details&id=".$id."]".$requesttitle."[/url]', now(), '0')") or die(mysql_error());
}


PS
I do not use Ajax shoutbox

Regards guys
Ajax Shoutbox V3 — 2021-06-03 20:29:30 in v3 Mods in Progress
@coco I can't see shoutbox on you test page at all, used FF, GC and TOR to check it but resultate is the same
Hi M-Jay, hve changed Scrape.php to the new one and this error comming up now



Uncaught Exception: 2021-05-27 18:38:02 - syntax error, unexpected ';', expecting ')' in file /home/test-page/app/controllers/Scrape.php on line 20

Call Stack

[0] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters



Hi M-Jay and thanks,
this is SQL-Error logg:

Uncaught Exception: 2021-05-26 21:00:10 - Invalid integer format or integer overflow: error code in file /home/test-page/app/libraries/Bencode.php on line 103

Call Stack

[0] File: /home/test-page/app/libraries/Bencode.php Line: 70
Function: Bencode::checkInteger
Call parameters
Param[0]: Passed value: 'error code'

[1] File: /home/test-page/app/helpers/torrent_helper.php Line: 53
Function: Bencode::decode
Call parameters
Param[0]: Passed value: 'error code: 1020'

[2] File: /home/test-page/app/controllers/Scrape.php Line: 71
Function: torrent_scrape_url
Call parameters
Param[0]: Passed value: 'https://tracker.lilithraws.cf:443/scrape'
Param[1]: Passed value: 'a557bd4a869f931f0c1df359a9ddaadc05db3479'

[3] File: /home/test-page/app/libraries/Core.php Line: 51
Function: Scrape->index
Call parameters

[4] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Thanks M-jay
what about that?
Same torrent file on two different scripts, statistic on first picture is from a old one TT[2.08 - 2.5]
statistic from secound picture is from PDO [last edition you send above]

1.


2.
Icon on file list — 2021-05-26 14:35:18 in Old v2 Tpoics
Hi spiritblue, no it is not fixed.
You have folder with name "show" and that dont have some folder icon


=================== French ===================

Salut spiritblue, non ce n'est pas fixe.
Vous avez un dossier avec le nom "show" et qui n'a pas d'icône de dossier
Dans ce dossier, vous avez un nom de fichier "Def Leppard - Viva histerya [2003]. iso

PS
Def Leppard - Viva histerya  => Nice album mate I like it
It's stil same problem for me:







Call Stack

[0] File: /home/test-page/app/libraries/DB.php Line: 37
Function: PDO->query
Call parameters
Param[0]: Passed value: 'UPDATE `users` SET `stylesheet` = darktheme WHERE stylesheet NOT IN (SELECT id FROM stylesheets)'

[1] File: /home/test-page/app/controllers/admin/Admintheme.php Line: 90
Function: DB::run
Call parameters
Param[0]: Passed value: 'UPDATE `users` SET `stylesheet` = darktheme WHERE stylesheet NOT IN (SELECT id FROM stylesheets)'

[2] File: /home/test-page/app/libraries/Core.php Line: 51
Function: Admintheme->delete
Call parameters

[3] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-24 19:38:26 - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '01c489e0d72604e2432f' for key 'info_hash' in file /home/test-page/app/libraries/DB.php on line 37

Call Stack

[0] File: /home/test-page/app/libraries/DB.php Line: 37
Function: PDO->query
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:38:26', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:38:26')'

[1] File: /home/test-page/app/controllers/Import.php Line: 102
Function: DB::run
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:38:26', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:38:26')'

[2] File: /home/test-page/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-24 19:40:36 - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '01c489e0d72604e2432f' for key 'info_hash' in file /home/test-page/app/libraries/DB.php on line 37

Call Stack

[0] File: /home/test-page/app/libraries/DB.php Line: 37
Function: PDO->query
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:40:36', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:40:36')'

[1] File: /home/test-page/app/controllers/Import.php Line: 103
Function: DB::run
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:40:36', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:40:36')'

[2] File: /home/test-page/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-24 19:40:57 - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '01c489e0d72604e2432f' for key 'info_hash' in file /home/test-page/app/libraries/DB.php on line 37

Call Stack

[0] File: /home/test-page/app/libraries/DB.php Line: 37
Function: PDO->query
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:40:57', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:40:57')'

[1] File: /home/test-page/app/controllers/Import.php Line: 103
Function: DB::run
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:40:57', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:40:57')'

[2] File: /home/test-page/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters



PS
Live sever
Icon on file list — 2021-05-24 17:04:16 in Old v2 Tpoics
Thanks spiritblue and others guys, how to fix folder icon?

If we have some foder in torrents like that
torrent==>Folder A-side==>sound.mp3
torrent==>Folder B-side==>sound.flac
torrent==>Folder A-side==>sound.wav

ect ect ....



Regards to all of you
Hi M-Jay,

Installed your PDO version on my test tracker and try to "mass import torrents" on that but it coming error message and torrents can't uploaded properly




Uncaught Exception: 2021-05-22 13:29:08 - Decode Input is not valid String. in file /home/testpage/app/libraries/Bencode.php on line 33

Call Stack

[0] File: /home/testpage/app/libraries/Parse.php Line: 33
Function: Bencode::decode
Call parameters
Param[0]: Passed value: false

[1] File: /home/testpage/app/controllers/Import.php Line: 64
Function: Parse->torr
Call parameters
Param[0]: Passed value: '../data/uploads/Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent'

[2] File: /home/testpage/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/testpage/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-22 13:29:26 - Decode Input is not valid String. in file /home/testpage/app/libraries/Bencode.php on line 33

Call Stack

[0] File: /home/testpage/app/libraries/Parse.php Line: 33
Function: Bencode::decode
Call parameters
Param[0]: Passed value: false

[1] File: /home/testpage/app/controllers/Import.php Line: 64
Function: Parse->torr
Call parameters
Param[0]: Passed value: '../data/uploads/Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent'

[2] File: /home/testpage/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/testpage/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-22 13:49:53 - Decode Input is not valid String. in file /home/testpage/app/libraries/Bencode.php on line 33

Call Stack

[0] File: /home/testpage/app/libraries/Parse.php Line: 33
Function: Bencode::decode
Call parameters
Param[0]: Passed value: false

[1] File: /home/testpage/app/controllers/Import.php Line: 64
Function: Parse->torr
Call parameters
Param[0]: Passed value: '../data/uploads/Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent'

[2] File: /home/testpage/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/testpage/public_html/index.php Line: 4
Function: Core->__construct
Call parameters



[img width=720 height=400]https://i.postimg.cc/pLNrMJFG/Screenshot-3.png[/img]
[img width=720 height=400]https://i.postimg.cc/t4hTqndX/Screenshot-4.png[/img]

in case of individual upload of one of the torrent, everything is OK

in the case of "Update Stats" none of the current seeders / leechers indicator is "zeero"

Also one small request, neither on this nor on the forum I installed the script I can't see the attached images in the original size they are all in mini size and I can't identify the problems

— 2021-05-14 18:03:11 in
Take care of you mate, easy going to better time (I hope) this situation can be frustrating but no neverending story, so we can keep going with our jobs and hobbies so we do it together
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