summaryrefslogtreecommitdiff
path: root/maintenance/purgeOldText.php
blob: 2147ee37a7d32f5926fbbe74a2fb69146a83a341 (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
 *
 * @addtogroup 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" );
}

?>