| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
/**
|
| 4 |
* @file
|
| 5 |
* User email check menu callback file for email_verify module.
|
| 6 |
*/
|
| 7 |
|
| 8 |
/**
|
| 9 |
* Menu callback; look though the whole user base for invalid emails.
|
| 10 |
* Can be very long when hosts timeout.
|
| 11 |
*/
|
| 12 |
function email_verify_checkall() {
|
| 13 |
$content = "<table>";
|
| 14 |
$found = 0;
|
| 15 |
|
| 16 |
$result = db_query('SELECT uid, name, mail FROM {users}');
|
| 17 |
while ($row = db_fetch_object($result)) {
|
| 18 |
if (email_verify_check($row->mail)) {
|
| 19 |
|
| 20 |
$content .= "<tr><td><a href='?q=user/$row->uid/edit'>$row->name</a><td>$row->mail";
|
| 21 |
|
| 22 |
if (++$found >= 100) break;
|
| 23 |
}
|
| 24 |
}
|
| 25 |
|
| 26 |
$content .= "</table>";
|
| 27 |
|
| 28 |
unset($found, $result, $row) // Destroy variables
|
| 29 |
print theme("page", $content);
|
| 30 |
}
|