summaryrefslogtreecommitdiff
path: root/maintenance/nukePage.php
blob: b5c3f2831c414e7714720e6db8ebc2abb4866cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

/**
 * Erase a page record from the database
 * Irreversible (can't use standard undelete) and does not update link tables
 *
 * @package MediaWiki
 * @subpackage Maintenance
 * @author Rob Church <robchur@gmail.com>
 */

require_once( 'commandLine.inc' );
require_once( 'nukePage.inc' );

echo( "Erase Page Record\n\n" );

if( isset( $args[0] ) ) {
	NukePage( $args[0], true );
} else {
	ShowUsage();
}

/** Show script usage information */
function ShowUsage() {
	echo( "Remove a page record from the database.\n\n" );
	echo( "Usage: php nukePage.php <title>\n\n" );
	echo( "	<title> : Page title; spaces escaped with underscores\n\n" );
}

?>