[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * InputBox extension 4 * 5 * @file 6 * @ingroup Extensions 7 * 8 * This file contains the main include file for the Inputbox extension of 9 * MediaWiki. 10 * 11 * Usage: Add the following line in LocalSettings.php: 12 * require_once( "$IP/extensions/InputBox/InputBox.php" ); 13 * 14 * @author Erik Moeller <[email protected]> 15 * namespaces search improvements partially by 16 * Leonardo Pimenta <[email protected]> 17 * Cleaned up by Trevor Parscal <[email protected]> 18 * @copyright Public domain 19 * @license Public domain 20 * @version 0.1.4 21 */ 22 23 // Check environment 24 if ( !defined( 'MEDIAWIKI' ) ) { 25 echo "This is an extension to the MediaWiki package and cannot be run standalone.\n"; 26 die( -1 ); 27 } 28 29 /* Configuration */ 30 31 // Credits 32 $wgExtensionCredits['parserhook'][] = array( 33 'path' => __FILE__, 34 'name' => 'InputBox', 35 'author' => array( 'Erik Moeller', 'Leonardo Pimenta', 'Rob Church', 'Trevor Parscal', 'DaSch' ), 36 'version' => '0.2.0', 37 'url' => 'https://www.mediawiki.org/wiki/Extension:InputBox', 38 'description' => 'Allow inclusion of predefined HTML forms.', 39 'descriptionmsg' => 'inputbox-desc', 40 ); 41 42 // Shortcut to this extension directory 43 $dir = __DIR__ . '/'; 44 45 // Internationalization 46 $wgMessagesDirs['InputBox'] = __DIR__ . '/i18n'; 47 $wgExtensionMessagesFiles['InputBox'] = $dir . 'InputBox.i18n.php'; 48 49 // Register auto load for the special page class 50 $wgAutoloadClasses['InputBoxHooks'] = $dir . 'InputBox.hooks.php'; 51 $wgAutoloadClasses['InputBox'] = $dir . 'InputBox.classes.php'; 52 53 // Register parser hook 54 $wgHooks['ParserFirstCallInit'][] = 'InputBoxHooks::register'; 55 $wgHooks['MediaWikiPerformAction'][] = 'InputBoxHooks::onMediaWikiPerformAction'; 56 $wgHooks['SpecialPageBeforeExecute'][] = 'InputBoxHooks::onSpecialPageBeforeExecute'; 57 58 $wgResourceModules['ext.inputBox.styles'] = array( 59 'localBasePath' => dirname( __FILE__ ) . '/resources', 60 'remoteExtPath' => 'InputBox/resources', 61 'styles' => 'ext.inputBox.styles.css', 62 );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |