blob: e8a738ad285caced06500ab3a67d3bcab7af9e78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
/**
* Purge old text records from the database
*
* @package MediaWiki
* @subpackage 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" );
}
?>
|