]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - maintenance/purgeOldText.php
MediaWiki 1.14.0
[autoinstallsdev/mediawiki.git] / maintenance / purgeOldText.php
1 <?php
2
3 /**
4  * Purge old text records from the database
5  *
6  * @file
7  * @ingroup Maintenance
8  * @author Rob Church <robchur@gmail.com>
9  */
10
11 $options = array( 'purge', 'help' );
12 require_once( 'commandLine.inc' );
13 require_once( 'purgeOldText.inc' );
14
15 echo( "Purge Old Text\n\n" );
16
17 if( @$options['help'] ) {
18         ShowUsage();
19 } else {
20         PurgeRedundantText( @$options['purge'] );
21 }
22
23 function ShowUsage() {
24         echo( "Prunes unused text records from the database.\n\n" );
25         echo( "Usage: php purgeOldText.php [--purge]\n\n" );
26         echo( "purge : Performs the deletion\n" );
27         echo( " help : Show this usage information\n" );
28 }
29