summaryrefslogtreecommitdiff
path: root/maintenance/nukePage.php
blob: b3bfc7626de4b5efb3f7b4160371a25be7ff75b0 (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
<?php

/**
 * Erase a page record from the database
 * Irreversible (can't use standard undelete) and does not update link tables
 *
 * @file
 * @ingroup 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" );
}