<?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();
?><a href="userforumpost.php?id=<?php echo $id ?>"<?php echo number_format($numforumposts); ?> </a>
//[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);

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')");
}
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());
}
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
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 



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

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