maintenance/removeUnusedAccounts.php File Reference

Remove unused user accounts from the database An unused account is one which has made no edits. More...

Go to the source code of this file.

Variables

 $options = array( 'help', 'delete' )
 $fname = 'removeUnusedAccounts'
 if (isset($options['help']))
 $del = array()
 $dbr = wfGetDB( DB_SLAVE )
 $res = $dbr->select( 'user', array( 'user_id', 'user_name', 'user_touched' ), '', $fname )
if(isset($options['ignore-touched']))
while($row=$dbr->fetchObject($res)) 
$count = count( $del )


Detailed Description

Remove unused user accounts from the database An unused account is one which has made no edits.

Author:
Rob Church <robchur@gmail.com>

Definition in file removeUnusedAccounts.php.


Variable Documentation

if (isset($options['ignore-touched'])) while ($row=$dbr->fetchObject($res)) $count = count( $del )

Definition at line 54 of file removeUnusedAccounts.php.

$dbr = wfGetDB( DB_SLAVE )

Definition at line 25 of file removeUnusedAccounts.php.

$del = array()

$fname = 'removeUnusedAccounts'

Definition at line 15 of file removeUnusedAccounts.php.

$options = array( 'help', 'delete' )

Definition at line 11 of file removeUnusedAccounts.php.

$res = $dbr->select( 'user', array( 'user_id', 'user_name', 'user_touched' ), '', $fname )

Definition at line 26 of file removeUnusedAccounts.php.

if(isset($options['help']))

Definition at line 17 of file removeUnusedAccounts.php.


Generated on Sat Sep 5 02:08:28 2009 for MediaWiki by  doxygen 1.5.9