e8a738ad285caced06500ab3a67d3bcab7af9e78
[lhc/web/wiklou.git] / maintenance / purgeOldText.php
1 <?php
2
3 /**
4 * Purge old text records from the database
5 *
6 * @package MediaWiki
7 * @subpackage 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
30 ?>