Find if multiple accounts are using the same IP address. Credit to original authors
add to admincp.php
create a link to the mod near the top of admincp.php file
add to languages/english.php
add to images/admin folder. I had to rar it because it is an ICO icon
add to admincp.php
#======================================================================#
# Duplicate IP's
#======================================================================#
if ($action == "duplicateips")
{
$res = SQL_Query_exec("SELECT ip FROM users GROUP BY ip HAVING count(*) > 1");
$num = mysqli_num_rows($res);
list($pagertop, $pagerbottom, $limit) = pager(25, $num, 'admincp.php?action=duplicateips&');
$res = SQL_Query_exec("SELECT id, username, class, email, ip, added, last_access, COUNT(*) as count FROM users GROUP BY ip HAVING count(*) > 1 ORDER BY id ASC $limit");
stdhead(T_("DUPLICATEIP"));
navmenu();
begin_frame(T_("DUPLICATEIP"));
?>
<center><?php echo T_("DUPLICATEIPINFO"); ?></center>
<br />
<?php if ($num > 0): ?>
<br />
<table border="0" cellpadding="3" cellspacing="0" width="100%" align="center" class="table_table">
<tr>
<th class="table_head"><?php echo T_("USERNAME"); ?></th>
<th class="table_head"><?php echo T_("USERCLASS"); ?></th>
<th class="table_head"><?php echo T_("EMAIL"); ?></th>
<th class="table_head"><?php echo T_("IP"); ?></th>
<th class="table_head"><?php echo T_("ADDED"); ?></th>
<th class="table_head"><?php echo T_("COUNT"); ?></th>
</tr>
<?php while ($row = mysqli_fetch_assoc($res)): ?>
<tr>
<td class="table_col1" align="center"><a href="account-details.php?id=<?php echo $row["id"]; ?>"><?php echo $row["username"]; ?></a></td>
<td class="table_col2" align="center"><?php echo get_user_class_name($row["class"]); ?></td>
<td class="table_col1" align="center"><?php echo $row["email"]; ?></td>
<td class="table_col2" align="center"><?php echo $row["ip"]; ?></td>
<td class="table_col1" align="center"><?php echo utc_to_tz($row["added"]); ?></td>
<td class="table_col1" align="center"><a href="admincp.php?action=usersearch&ip=<?php echo $row['ip']; ?>"><?php echo number_format($row['count']); ?></a></td>
</tr>
<?php endwhile; ?>
</table>
<?php else: ?>
<center><b><?php echo T_("NOTHING_FOUND"); ?></b></center>
<?php
endif;
if ($num > 25) echo $pagerbottom;
end_frame();
stdfoot();
}
#======================================================================#
# End Duplicate IP Mod
#======================================================================#create a link to the mod near the top of admincp.php file
<td align="center"><a href="admincp.php?action=duplicateips"><img src="images/admin/double-ip.ico" border="0" width="118" height="80" alt="" /><br /><?php echo T_("DUPLICATEIP"); ?><br /></a></td> add to languages/english.php
$LANG['DUPLICATEIP'] = 'Duplicate IP\'s';
$LANG['DUPLICATEIPINFO'] = "This page displays all users which the database shows them having more than one account associated by their ip.";add to images/admin folder. I had to rar it because it is an ICO icon
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)
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)
