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