add somwhere in admin panel:
#======================================================================
#
# Auto Conf Reg
# By Fyver
# ported from V1.XX to V2.XX
#======================================================================#
if($action == "Autoconfirmall")
{
stdhead("Auto Registration Confirm");
navmenu();
begin_frame("Auto Confirm");
$res = mysql_query("SELECT id,username,status FROM users WHERE status = 'pending'");
if (mysql_num_rows($res) < 1){
echo"<BR><BR>None Found, please remember that pending accounts expire after 3 days<BR><BR>";
end_frame();
stdfoot();
die;
}
while ($row = mysql_fetch_array($res)) {
$id = $row["id"];
$name = $row["username"];
mysql_query("UPDATE users SET status='confirmed' WHERE id=$id");
echo "User " . $name . " Changed to 'confirmed' \n";
echo " \n";
}
End_frame();
}
Then find:
<td align="center"><a href=admincp.php?action=censor><img src="images/admin/censor.png" border=0 width=32 height=32><BR>Word Censor</a><BR></td>
After add:
<td align="center"><a href=admincp.php?action=Autoconfirmall><img src="images/admin/autoconfirm.gif" border=0 width=32 height=32><BR> Auto Confirm Accounts</a><BR></td>
The problems are:
-the data you get is a bit sticked together.
-Someone should add a confirm button or even better some check boxes so you can select who you like to confirm.
I have tested it and it worked perfectly!