Bump $wgStyleVersion to 155.
[lhc/web/wiklou.git] / maintenance / deleteArchivedFiles.php
1 <?php
2
3 /**
4 * Delete archived (non-current) files from the database
5 *
6 * @file
7 * @ingroup Maintenance
8 * @author Aaron Schulz
9 * Based on deleteOldRevisions.php by Rob Church
10 */
11
12 $options = array( 'delete', 'help' );
13 require_once( 'commandLine.inc' );
14 require_once( 'deleteArchivedFiles.inc' );
15
16 echo( "Delete Archived Images\n\n" );
17
18 if( @$options['help'] ) {
19 ShowUsage();
20 } else {
21 DeleteArchivedFiles( @$options['delete'] );
22 }
23
24 function ShowUsage() {
25 echo( "Deletes all archived images.\n\n" );
26 echo( "These images will no longer be restorable.\n\n" );
27 echo( "Usage: php deleteArchivedRevisions.php [--delete|--help]\n\n" );
28 echo( "delete : Performs the deletion\n" );
29 echo( " help : Show this usage information\n" );
30 }
31