this mod only show ip history, there's no ip banned systeme into
echo "<table align=center cellpadding=0 cellspacing=0 class='ttable_headinner' width='99%'>";
$res = mysql_query("SELECT * FROM iplog WHERE userid=$id ORDER BY lastused DESC, timesused ASC");
echo "<tr><td class='ttable_head'>IP</td><td class='ttable_head'>Date Added</td><td class='ttable_head'>Last Used</td><td class='ttable_head'>Times Used</td><td class='ttable_head'>Other Users</td></tr>";
$x = 1;
while($row=mysql_fetch_assoc($res)) {
//Find other users with the same IP
$res2 = mysql_query("SELECT users.id AS id,users.username as username FROM users INNER JOIN iplog ON (iplog.ip = '$row[ip]' AND users.id=iplog.userid AND users.id<>$id)");
$usersSame="";
while($userrow=mysql_fetch_assoc($res2)) {
$usersSame .= "<a href='account-details.php?id=$userrow[id]'>$userrow[username]</a>, ";
}
//display table
echo "<tr align='center' class='ttable_col$x'><td>$row[ip]</td><td>".date("d/m/Y H:i:s", utc_to_tz_time($row['added']))."</td><td>".date("d/m/Y H:i:s", utc_to_tz_time($row['lastused']))."</td><td>".number_format($row['timesused'])."</td></tr>";
if ($x == 1)
$x = 2;
else
$x = 1;
}
unset($x);
echo "</table>";
end_frame();
No users online
Torrents
Members
Online