Mod pending users, 1x to 2x
find in admincp.php
find in admincp.php
echo "<a href=admincp.php?action=users>Users</a><BR>";
and add after:
echo "<a href=admincp.php?action=confirmreg>Pending Users</a><BR>";
Find
$smallname = CutName(htmlspecialchars($row["name"]), $char1);
echo "<tr><td class=table_col1>" . $smallname . "</td><td class=table_col2>$row[visible]</td><td class=table_col1>$row[banned]</td><td class=table_col2>$row[seeders]</td><td class=table_col1>$row[leechers]</td><td class=table_col2>$row[external]</td><td class=table_col1><a href=\"torrents-edit.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "&id=" . $row["id"] . "\"><font size=1 face=Verdana>EDIT</a></td></tr>\n";
}
echo "</table></CENTER>\n";
print($pagerbottom);
end_frame();
stdfoot();
}
And add after
#======================================================================#
# Manual confirm users
#======================================================================#
if ($action == "confirmreg") {
stdhead("pending users");
navmenu();
$search = trim($search);
if ($search != '' ){
$where = "WHERE username LIKE " . sqlesc("%$search%") . " AND status='pending'";
}
$res2 = mysql_query("SELECT COUNT(*) FROM users $where");
$row = mysql_fetch_array($res2);
$count = $row[0];
$perpage = 50;
list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "admincp.php?action=confirmreg&");
begin_frame("pending users");
print("<CENTER><form method=get action=?>\n");
print("<input type=hidden name=action value=users>\n");
print("" . SEARCH . ": <input type=text size=30 name=search>\n");
print("<input type=submit value='Search'>\n");
print("</form></CENTER>\n");
echo $pagertop;
?>
<CENTER><table align=center cellpadding="0" cellspacing="0" class="table_table" width="100%" border="1">
<tr>
<td class=table_head align=center>User Name</td>
<td class=table_head align=center>E-mail</td>
<td class=table_head align=center>Dateo</td>
<td class=table_head align=center>IP</td>
<td class=table_head align=center>Stats</td>
</tr>
<?
$rqq = "SELECT * FROM users WHERE status='pending' ORDER BY username";
$resqq = mysql_query($rqq);
while ($row = mysql_fetch_array($resqq)){
extract ($row);
echo "<tr><td class=table_col1>$row[username]</td><td class=table_col2>$row[email]</td><td class=table_col1>$row[added]</td><td class=table_col2>$row[ip]</td><td class=table_col1><a href=admincp.php?action=editreg&id=$row[id]>$row[status]</a></td></tr>\n";
}
echo "</table></CENTER>\n";
print($pagerbottom);
end_frame();
stdfoot();
}