wiki.techinc.nl/maintenance/purgeOldText.php
Brion Vibber 1c9773bd01 Revert r52336 "Merge maintenance-work branch:"
Seems to have broken a bunch of stuff. Don't commit giant non-critical changes that break Setup.php and all maint scripts. Thanks!
2009-06-24 02:49:24 +00:00

29 lines
609 B
PHP

<?php
/**
* Purge old text records from the database
*
* @file
* @ingroup Maintenance
* @author Rob Church <robchur@gmail.com>
*/
$options = array( 'purge', 'help' );
require_once( 'commandLine.inc' );
require_once( 'purgeOldText.inc' );
echo( "Purge Old Text\n\n" );
if( @$options['help'] ) {
ShowUsage();
} else {
PurgeRedundantText( @$options['purge'] );
}
function ShowUsage() {
echo( "Prunes unused text records from the database.\n\n" );
echo( "Usage: php purgeOldText.php [--purge]\n\n" );
echo( "purge : Performs the deletion\n" );
echo( " help : Show this usage information\n" );
}