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
Show torrent clients in ACP [TTv3]
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2019-04-06 16:40:48
I didnt create this, just sharing it with a few small modifications
In admincp.php put this link with the other links you already have (adjust height and width as needed)
<td align="center"><a href="admincp.php?action=torrentclients"><img src="images/admin/clients.png" border="0" width="118" height="80" alt="" /><br /><?php echo T_("CLIENTS"); ?><br /></a></td>


also somewhere in admincp.php, put
/////TORRENT CLIENTS////////
if ($action == "torrentclients") {
if ($CURUSER["class"]  < 6)
   show_error_msg("Error", "Access denied.");

   $res12 = SQL_Query_exec("SELECT client, peer_id FROM peers GROUP BY client");

   stdhead("Torrent clients");

begin_frame("All Clients");

   print("<br /><table class=tabla_table align=center border=0 cellspacing=0 cellpadding=5>\n");
   print("<tr><th class=table_head>Client</th><th class=table_head>Peer ID</th><th class=table_head>To ban use</th></tr>\n");

while($arr12 = mysqli_fetch_assoc($res12)) {
       $peer=$arr12['peer_id'];
       $peer=substr($peer,0,8);
       $peer2=$peer;
print("<tr><td class=table_col1>&nbsp; $arr12[client] &nbsp;</td><td class=table_col2>&nbsp; $arr12[peer_id] &nbsp;</td><td class=table_col2>&nbsp; $peer2 &nbsp;</td></tr>\n");
}
   print("</table><br />\n");

end_frame();
navmenu();
stdfoot();
}
/////END TORRENT CLIENTS/////

english.php, put
$LANG["CLIENTS"] = "Torrent Clients Used";

place image in images/admin/ folder
[ATTACH alt="2617"]5006[/ATTACH]

[ATTACH type="full" alt="Capture.PNG"]5234[/ATTACH]
clients.png
clients.png
Capture.PNG
Capture.PNG

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-04-30 10:26:41
Hi there any help on how to fix this > https://prnt.sc/s8jj60

code on that line is
$peer=$arr12[peer_id];

EDIT: NVM fixed it should be like this > $peer=$arr12['peer_id'];
Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
2020-04-30 19:58:11
first post updated
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-04-30 21:33:31
not trying to find faults :) i am still learning and adding some mods you experts posted here on my site again thanks for sharing all the info
Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
2020-04-30 22:28:09
you are encouraged to find faults. Thats what makes things better :) I should have seen that issue, but its fine , so always report issues and we can work on them together.
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)
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728