]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - maintenance/nukePage.php
MediaWiki 1.11.0-scripts
[autoinstalls/mediawiki.git] / maintenance / nukePage.php
1 <?php
2
3 /**
4  * Erase a page record from the database
5  * Irreversible (can't use standard undelete) and does not update link tables
6  *
7  * @addtogroup Maintenance
8  * @author Rob Church <robchur@gmail.com>
9  */
10
11 require_once( 'commandLine.inc' );
12 require_once( 'nukePage.inc' );
13
14 echo( "Erase Page Record\n\n" );
15
16 if( isset( $args[0] ) ) {
17         NukePage( $args[0], true );
18 } else {
19         ShowUsage();
20 }
21
22 /** Show script usage information */
23 function ShowUsage() {
24         echo( "Remove a page record from the database.\n\n" );
25         echo( "Usage: php nukePage.php <title>\n\n" );
26         echo( " <title> : Page title; spaces escaped with underscores\n\n" );
27 }
28