* Double-escaping, checkLabel, fixed another label
[mediawiki.git] / maintenance / deleteArchivedRevisions.php
blob53aec4c34d2563a5eb4ac53391e961861216eadf
1 <?php
3 /**
4 * Delete arcived (deleted from public) revisions from the database
6 * @addtogroup Maintenance
7 * @author Aaron Schulz
8 * Shamelessly stolen from deleteOldRevisions.php by Rob Church :)
9 */
11 $options = array( 'delete', 'help' );
12 require_once( 'commandLine.inc' );
13 require_once( 'deleteArchivedRevisions.inc' );
15 echo( "Delete Archived Revisions\n\n" );
17 if( @$options['help'] ) {
18 ShowUsage();
19 } else {
20 DeleteArchivedRevisions( @$options['delete'] );
23 function ShowUsage() {
24 echo( "Deletes all archived revisions.\n\n" );
25 echo( "These revisions will no longer be restorable.\n\n" );
26 echo( "Usage: php deleteArchivedRevisions.php [--delete|--help]\n\n" );
27 echo( "delete : Performs the deletion\n" );
28 echo( " help : Show this usage information\n" );