summaryrefslogtreecommitdiff
path: root/maintenance/purgeOldText.php
blob: 4a4be4822b11d24f2b2c95b2d34a94bc43d10b48 (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
<?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" );
}