svn:eol-style native
[lhc/web/wiklou.git] / maintenance / deleteArchivedFiles.php
1 <?php
2
3 /**
4 * Delete archived (non-current) files from the database
5 *
6 * @addtogroup Maintenance
7 * @author Aaron Schulz
8 * Based on deleteOldRevisions.php by Rob Church
9 */
10
11 $options = array( 'delete', 'help' );
12 require_once( 'commandLine.inc' );
13 require_once( 'deleteArchivedFiles.inc' );
14
15 echo( "Delete Archived Images\n\n" );
16
17 if( @$options['help'] ) {
18 ShowUsage();
19 } else {
20 DeleteArchivedFiles( @$options['delete'] );
21 }
22
23 function ShowUsage() {
24 echo( "Deletes all archived images.\n\n" );
25 echo( "These images 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" );
29 }
30
31 ?>