I took this mod from tbdev and made some minor changes for TT
all creds to orig coder (tbdev)
first open
admincp.php
find
place this in your images folder or add your own
name it upload.jpg
and pm.png

all creds to orig coder (tbdev)
first open
admincp.php
find
<td align="center"><a href=admincp.php?action=ipbans><img src="images/admin/blocked.gif" border=0 width=32 height=32><BR>Banned IPs</a><BR></td>underneath add <td align="center"><a href=admincp.php?action=upinfo&do=run><img src="images/upload.jpg" border=0 width=32 height=32><BR>Uploader Info</a><BR></td>
then find
f (!$action){
stdhead("Admin CP");
navmenu();
stdfoot();
}
Above add
if ($action=="upinfo" && $do=="run") {
stdhead("Admin CP");
navmenu();
echo '<div style="height:800px;overflow:scroll;">';
include ('uploaderinfo.php');
echo '</div>';
echo '</td></tr></table>'; stdfoot();
}
now make a new php file in your root dir and call it uploaderinfo.php
and add this to it
<?php
dbconn(true);
loggedinonly();
stdhead("Uploaders");
if ($CURUSER['class'] == 7)
{
$query = "SELECT id, username, added, uploaded, downloaded, donated, warned FROM users WHERE class = 4";
$result = mysql_query($query);
$num = mysql_num_rows($result); // how many uploaders
echo "<h2>Uploaders Info Panel</h2>";
echo "<p>We have " . $num . " uploaders</p>";
$zerofix = $num - 1; // remove one row because mysql starts at zero
if ($num > 0)
{
echo "<table cellpadding=4 align=left border=1>";
echo "<tr>";
echo "<td class=colhead>Num</td>";
echo "<td class=colhead>Username</td>";
echo "<td class=colhead>Uploaded/Downloaded</td>";
echo "<td class=colhead>Ratio</td>";
echo "<td class=colhead>Num torrents</td>";
echo "<td class=colhead>Last upload</td>";
echo "<td class=colhead>Send PM</td>";
echo "</tr>";
for ($i = 0; $i <= $zerofix; $i++)
{
$id = mysql_result($result, $i, "id");
$username = mysql_result($result, $i, "username");
$added = mysql_result($result, $i, "added");
$uploaded = mksize(mysql_result($result, $i, "uploaded"));
$downloaded = mksize(mysql_result($result, $i, "downloaded"));
$uploadedratio = mysql_result($result, $i, "uploaded");
$downloadedratio = mysql_result($result, $i, "downloaded");
$donor = mysql_result($result, $i, "donated");
$warned = mysql_result($result, $i, "warned");
// get uploader torrents activity
$upperquery = "SELECT added FROM torrents WHERE owner = $id";
$upperresult = mysql_query($upperquery);
$torrentinfo = mysql_fetch_array($upperresult);
$numtorrents = mysql_num_rows($upperresult);
if ($downloaded > 0)
{
$ratio = $uploadedratio / $downloadedratio;
$ratio = number_format($ratio, 3);
$color = get_ratio_color($ratio);
if ($color)
$ratio = "<font color=$color>$ratio</font>";
}
else
if ($uploaded > 0)
$ratio = "Inf.";
else
$ratio = "---";
// get donor
if ($donor == "yes")
$star = "<img src=images/star.gif>";
else
$star = "";
// get warned
if ($warned == "yes")
$klicaj = "<img src=images/warned.gif>";
else
$klicaj = "";
$counter = $i + 1;
echo "<tr>";
echo "<td align=center>$counter.</td>";
echo "<td><a href=/account-details.php?id=$id>$username</a> $star $klicaj</td>";
echo "<td>$uploaded / $downloaded</td>";
echo "<td>$ratio</td>";
echo "<td>$numtorrents torrents</td>";
if ($numtorrents > 0)
{
$lastadded = mysql_result($upperresult, $numtorrents - 1, "added");
echo "<td>" . get_elapsed_time(sql_timestamp_to_unix_timestamp($lastadded)) . " ago (" . gmdate("d. M Y",strtotime($lastadded)) . ")</td>";
}
else
echo "<td>---</td>";
echo "<td align=center><a href=mailbox.php?compose&id=$id><img src=images/pm.png></a></td>";
echo "</tr>";
}
echo "</table>";
}
}
else
echo "Not permitted.";
stdfoot();
?>place this in your images folder or add your own
name it upload.jpg
and pm.png
