Files
nexusphp/public/allagents.php
T

17 lines
586 B
PHP
Raw Normal View History

2020-12-26 01:42:23 +08:00
<?php
2021-01-13 19:32:26 +08:00
require "../include/bittorrent.php";
2020-12-26 01:42:23 +08:00
dbconn();
loggedinorreturn();
if (get_user_class() < UC_MODERATOR)
stderr("Error", "Permission denied.");
$res2 = sql_query("SELECT agent,peer_id FROM peers GROUP BY agent ") or sqlerr();
stdhead("All Clients");
print("<table align=center border=3 cellspacing=0 cellpadding=5>\n");
print("<tr><td class=colhead>Client</td><td class=colhead>Peer ID</td></tr>\n");
while($arr2 = mysql_fetch_assoc($res2))
{
2021-03-31 03:17:33 +08:00
print("</a></td><td align=left>{$arr2['agent']}</td><td align=left>{$arr2['peer_id']}</td></tr>\n");
2020-12-26 01:42:23 +08:00
}
print("</table>\n");
stdfoot();