/[drupal]/contributions/modules/email_verify/email_verify.check.inc
ViewVC logotype

Contents of /contributions/modules/email_verify/email_verify.check.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Feb 4 22:01:18 2009 UTC (9 months, 3 weeks ago) by dbr
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
Port to Drupal 6, based on work by reikiman and atuyo60
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 }

  ViewVC Help
Powered by ViewVC 1.1.2