This repository was archived by the owner on May 5, 2021. It is now read-only.
forked from DaSchTour/AgeParse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAgeParse.php
More file actions
41 lines (35 loc) · 1.27 KB
/
AgeParse.php
File metadata and controls
41 lines (35 loc) · 1.27 KB
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
37
38
39
40
41
<?php
/** AgeParse MediaWiki Extension
* Type: parser
*
* @author Mark Daly <research@chanur.com>, DaSch <dasch@daschmedia.de>
* @version 0.2
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
**/
/**
* Protect against register_globals vulnerabilities.
* This line must be present before any global variable is referenced.
**/
if(!defined('MEDIAWIKI')){
echo("This is an extension to the MediaWiki package and cannot be run standalone.\n" );
die(-1);
}
/**
* Identify the extension, version, author, etc
**/
$wgExtensionCredits['parserhook'][] = array(
'path' => __FILE__,
'name' => 'AgeParse',
'version' => '0.3.1',
'author' => 'Mark Daly, [http://www.daschmedia.de DaSch]',
'url' => 'http://www.mediawiki.org/wiki/Extension:AgeParse',
'descriptionmsg'=> 'ageparse-desc',
);
/**
* Set up extension and messages
**/
$dir = dirname(__FILE__);
$wgExtensionMessagesFiles['AgeParse'] = $dir. '/AgeParse.i18n.php';
$wgExtensionMessagesFiles['AgeParseMagic'] = $dir . '/AgeParse.i18n.magic.php';
$wgAutoloadClasses['AgeParseHooks'] = "$dir/AgeParse.hooks.php";
$wgHooks['ParserFirstCallInit'][] = 'AgeParseHooks::wfAgeParse_Setup';