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

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