add new option $wgRestrictDisplayTitle
[lhc/web/wiklou.git] / maintenance / removeUnusedAccounts.inc
index ac15ebe..02c07c1 100644 (file)
@@ -3,9 +3,8 @@
 /**
  * Support functions for the removeUnusedAccounts maintenance script
  *
- *
- * @package MediaWiki
- * @subpackage Maintenance
+ * @file
+ * @ingroup Maintenance
  * @author Rob Church <robchur@gmail.com>
  */
 
@@ -18,7 +17,7 @@
  * @return bool
  */
 function isInactiveAccount( $id, $master = false ) {
-       $dbo =& wfGetDB( $master ? DB_MASTER : DB_SLAVE );
+       $dbo = wfGetDB( $master ? DB_MASTER : DB_SLAVE );
        $fname = 'isInactiveAccount';
        $checks = array( 'revision' => 'rev', 'archive' => 'ar', 'logging' => 'log',
                                         'image' => 'img', 'oldimage' => 'oi' );
@@ -40,8 +39,8 @@ function isInactiveAccount( $id, $master = false ) {
 function showHelp() {
        echo( "Delete unused user accounts from the database.\n\n" );
        echo( "USAGE: php removeUnusedAccounts.php [--delete]\n\n" );
-       echo( "  --delete : Delete accounts which are discovered to be inactive\n" );
+       echo( "  --delete             : Delete accounts which are discovered to be inactive\n" );
+       echo( "  --ignore-touched=x   : Ignore accounts touched within the lasts x days\n" );
+       echo( "  --ignore-groups=x,y  : Ignore accounts within these groups\n" );
        echo( "\n" );
 }
-
-?>
\ No newline at end of file