From 3236f915eb89f09e1160c10ce1a657f0e40e081a Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 16 Jan 2006 13:57:29 +0000 Subject: [PATCH] Make user functions more generalised so other maintenance scripts can use them --- maintenance/removeUnusedAccounts.php | 4 +++- maintenance/{removeUnusedAccounts.inc => userFunctions.inc} | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) rename maintenance/{removeUnusedAccounts.inc => userFunctions.inc} (91%) diff --git a/maintenance/removeUnusedAccounts.php b/maintenance/removeUnusedAccounts.php index a507de6301..09192fd33e 100644 --- a/maintenance/removeUnusedAccounts.php +++ b/maintenance/removeUnusedAccounts.php @@ -9,9 +9,11 @@ * @author Rob Church */ +define( 'ACTION_REPORT', 0 ); +define( 'ACTION_DELETE', 1 ); $options = array( 'delete','help' ); require_once( 'commandLine.inc' ); -require_once( 'removeUnusedAccounts.inc' ); +require_once( 'userFunctions.inc' ); echo( "Remove Unused Accounts\nThis script will delete all users who have made no edits.\n\n" ); diff --git a/maintenance/removeUnusedAccounts.inc b/maintenance/userFunctions.inc similarity index 91% rename from maintenance/removeUnusedAccounts.inc rename to maintenance/userFunctions.inc index 0323304e8f..8e43a6d203 100644 --- a/maintenance/removeUnusedAccounts.inc +++ b/maintenance/userFunctions.inc @@ -1,16 +1,13 @@ */ -define( 'ACTION_REPORT', 0 ); -define( 'ACTION_DELETE', 1 ); - # Count the number of edits the specified user has made function CountEdits( $user_id ) { # We've *got* to pull this stuff off the master. If the user *has* made an edit, but it hasn't -- 2.20.1