b5c3f2831c414e7714720e6db8ebc2abb4866cd8
[lhc/web/wiklou.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 * @package MediaWiki
8 * @subpackage 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
30 ?>