summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/BlockBatch/BlockBatch.php
blob: 5a63b6ecb41e96dbcfd45424d083de16f6094ca9 (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
31
32
33
34
35
36
<?php
/**
 * BlockBatch extension by Leucosticte
 * URL: http://www.mediawiki.org/wiki/Extension:BlockBatch
 *
 * This program is free software. You can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */


/* Alert the user that this is not a valid entry point to MediaWiki if they try to access the
special pages file directly.*/

if ( !defined( 'MEDIAWIKI' ) ) {
	echo <<<EOT
		To install the RPED extension, put the following line in LocalSettings.php:
		require( "extensions/RPED/RPED.php" );
EOT;
	exit( 1 );
}

$wgExtensionCredits['specialpage'][] = array(
	'path' => __FILE__,
	'name' => 'BlockBatch',
	'author' => 'Leucosticte',
	'url' => 'http://www.mediawiki.org/wiki/Extension:BlockBatch',
	'descriptionmsg' => 'blockbatch-desc',
	'version' => '1.0.1'
);

$wgAutoloadClasses[ 'SpecialBlockBatch' ] = __DIR__ . '/SpecialBlockBatch.php';
$wgExtensionMessagesFiles[ 'BlockBatch' ] = __DIR__ . '/BlockBatch.i18n.php';
$wgSpecialPages[ 'BlockBatch' ] = 'SpecialBlockBatch';
$wgGroupPermissions['bureaucrat']['blockbatch'] = true;