]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - maintenance/nukePage.php
MediaWiki 1.14.0
[autoinstallsdev/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  * @file
8  * @ingroup Maintenance
9  * @author Rob Church <robchur@gmail.com>
10  */
11
12 require_once( 'commandLine.inc' );
13 require_once( 'nukePage.inc' );
14
15 echo( "Erase Page Record\n\n" );
16
17 if( isset( $args[0] ) ) {
18         NukePage( $args[0], true );
19 } else {
20         ShowUsage();
21 }
22
23 /** Show script usage information */
24 function ShowUsage() {
25         echo( "Remove a page record from the database.\n\n" );
26         echo( "Usage: php nukePage.php <title>\n\n" );
27         echo( " <title> : Page title; spaces escaped with underscores\n\n" );
28 }
29