• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wfLoadExtension函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wfLoadExtension函数的典型用法代码示例。如果您正苦于以下问题:PHP wfLoadExtension函数的具体用法?PHP wfLoadExtension怎么用?PHP wfLoadExtension使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wfLoadExtension函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: wfLoadExtension

<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('BoilerPlate');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['BoilerPlate'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['BoilerPlateAlias'] = __DIR__ . '/BoilerPlate.i18n.alias.php';
    wfWarn('Deprecated PHP entry point used for BoilerPlate extension. Please use wfLoadExtension ' . 'instead, see https://www.mediawiki.org/wiki/Extension_registration for more details.');
    return true;
} else {
    die('This version of the BoilerPlate extension requires MediaWiki 1.25+');
}
开发者ID:coderwassananmol,项目名称:mediawiki-extensions-BoilerPlate,代码行数:12,代码来源:BoilerPlate.php


示例2: wfLoadExtension

wfLoadExtension('Renameuser');
wfLoadExtension('SpamBlacklist');
wfLoadExtension('SyntaxHighlight_GeSHi');
wfLoadExtension('TitleBlacklist');
wfLoadExtension('WikiEditor');
require_once "{$IP}/extensions/CreatePage/CreatePage.php";
//added by Eli Sep 8
require_once "{$IP}/extensions/Lockdown/Lockdown.php";
//added by Eli Sep 8
require_once "{$IP}/extensions/TalkRight/TalkRight.php";
//ver 1.5.1 -> This makes EoE_Member write to Talk/Discussion pages but readonly to regular pages
require_once "{$IP}/extensions/ConfirmAccount/ConfirmAccount.php";
//added by Eli Sep 9
require_once "{$IP}/extensions/EmailUsers/EmailUsers.php";
//added by Eli Oct 20
wfLoadExtension('EmbedVideo');
require_once "{$IP}/extensions/UserFunctions/UserFunctions.php";
//added 8-Jun-2016
# End of automatically generated settings.
# Add more configuration options below.
//================================================= UserFunctions: https://www.mediawiki.org/wiki/Extension:UserFunctions
$wgUFEnablePersonalDataFunctions = true;
$wgUFAllowedNamespaces = array(NS_MAIN => true, NS_USER => true);
// $wgUFEnableSpecialContexts = false;
//=================================================
$wgFileExtensions = array_merge($wgFileExtensions, explode(" ", "pdf xls xlsx txt doc png ppt ods jp2 webp PDF XLS XLSX TXT DOC PNG PPT ODS JP2 WEBP svg png jpg jpeg gif bmp SVG PNG JPG JPEG GIF BMP"));
//e.g. array('txt', 'pdf', 'doc') by Eli
$wgFileExtensions = array_unique($wgFileExtensions);
// print_r($wgFileExtensions);exit;
//================================================= EoL: Literature Editor
if ($conf['use_smtp']) {
开发者ID:eliagbayani,项目名称:LiteratureEditor,代码行数:31,代码来源:LocalSettings.php


示例3: wfLoadExtension

    require_once "{$IP}/extensions/TitleKey/TitleKey.php";
}
if ($wmgUseVariables) {
    require_once "{$IP}/extensions/Variables/Variables.php";
}
if ($wmgUseVisualEditor) {
    require_once "{$IP}/extensions/VisualEditor/VisualEditor.php";
    $wgVisualEditorParsoidURL = 'http://parsoid1.miraheze.org:8142';
    $wgVisualEditorParsoidPrefix = "{$wgDBname}";
    if (isset($wgConf->settings['wmgPrivateWiki'][$wgDBname])) {
        $wgVisualEditorParsoidForwardCookies = true;
    }
    $wgDefaultUserOptions['visualeditor-enable'] = 1;
    // Load TemplateData
    wfLoadExtension('TemplateData');
}
if ($wmgUseWikiEditor) {
    wfLoadExtension('WikiEditor');
    wfLoadExtension('CodeEditor');
    $wgDefaultUserOptions['usebetatoolbar'] = 1;
    $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
    $wgCodeEditorEnableCore = true;
}
if ($wmgUseYouTube) {
    require_once "{$IP}/extensions/YouTube/YouTube.php";
}
// Permission variables
if ($wmgDisableAnonEditing) {
    $wgGroupPermissions['*']['edit'] = false;
    $wgGroupPermissions['*']['createpage'] = false;
}
开发者ID:OwenBaines,项目名称:mw-config,代码行数:31,代码来源:LocalExtensions.php


示例4: wfLoadExtension

# Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "http://creativecommons.org/licenses/by-sa/3.0/";
$wgRightsText = "Creative Commons Attribution-ShareAlike";
$wgRightsIcon = "{$wgResourceBasePath}/resources/assets/licenses/cc-by-sa.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['edit'] = false;
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = 'Vector';
require_once "{$IP}/skins/Vector/Vector.php";
# End of automatically generated settings.
# Add more configuration options below.
wfLoadExtension('Cite');
wfLoadExtension('CiteThisPage');
wfLoadExtension('Gadgets');
wfLoadExtension('ImageMap');
wfLoadExtension('InputBox');
wfLoadExtension('Interwiki');
wfLoadExtension('LocalisationUpdate');
wfLoadExtension('Nuke');
wfLoadExtension('ParserFunctions');
wfLoadExtension('PdfHandler');
wfLoadExtension('Poem');
wfLoadExtension('Renameuser');
wfLoadExtension('SpamBlacklist');
wfLoadExtension('SyntaxHighlight_GeSHi');
require_once "{$IP}/extensions/SpamBlacklist/SpamBlacklist.php";
require_once "{$IP}/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";
require_once "{$IP}/extensions/UniversalLanguageSelector/UniversalLanguageSelector.php";
开发者ID:brandonphuong,项目名称:mediawiki,代码行数:31,代码来源:LocalSettings.php


示例5: wfLoadExtension

<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('ConfirmEdit/MathCaptcha');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['MathCaptcha'] = __DIR__ . '/i18n';
    /* wfWarn(
    		'Deprecated PHP entry point used for MathCaptcha extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return;
} else {
    die('This version of the MathCaptcha extension requires MediaWiki 1.25+');
}
开发者ID:MediaWiki-stable,项目名称:1.26.1,代码行数:14,代码来源:MathCaptcha.php


示例6: string

# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "d9cb5c448d36e6f8c99885e9c8c1115c79bb47aec4cba9aef5f15665428acd59";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "8b797c7e2f09b585";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = "";
# Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "https://creativecommons.org/licenses/by-sa/3.0/";
$wgRightsText = "Creative Commons Attribution-ShareAlike";
$wgRightsIcon = "{$wgResourceBasePath}/resources/assets/licenses/cc-by-sa.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin('CologneBlue');
wfLoadSkin('Modern');
wfLoadSkin('MonoBook');
wfLoadSkin('Vector');
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
wfLoadExtension('SpamBlacklist');
# End of automatically generated settings.
# Add more configuration options below.
开发者ID:sf49ers,项目名称:gaswiki,代码行数:31,代码来源:LocalSettings.php


示例7: wfLoadExtension

<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('Gadgets');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['Gadgets'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['GadgetsAlias'] = __DIR__ . '/Gadgets.alias.php';
    /* wfWarn(
    		'Deprecated PHP entry point used for Gadgets extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return true;
} else {
    die('This version of the Gadgets extension requires MediaWiki 1.25+');
}
开发者ID:eliagbayani,项目名称:LiteratureEditor,代码行数:15,代码来源:Gadgets.php


示例8: wfLoadExtension

<?php

if (function_exists('wfLoadExtension')) {
    if (file_exists(__DIR__ . '/vendor/autoload.php')) {
        require_once __DIR__ . '/vendor/autoload.php';
    }
    wfLoadExtension('WikibaseImport');
} else {
    die('WikibaseImport requires MediaWiki 1.25+');
}
开发者ID:addshore,项目名称:WikibaseImport,代码行数:10,代码来源:WikibaseImport.php


示例9: wfLoadExtension

<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('Gather');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['Gather'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['GatherAlias'] = __DIR__ . '/Gather.alias.php';
    /* wfWarn(
    		'Deprecated PHP entry point used for Gather extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return;
} else {
    die('This version of the Gather extension requires MediaWiki 1.25+');
}
开发者ID:joakin,项目名称:mediawiki-extensions-Gather,代码行数:15,代码来源:Gather.php


示例10: wfLoadExtension

<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('MobileFrontend');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['MobileFrontend'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['MobileFrontendAlias'] = __DIR__ . '/MobileFrontend.alias.php';
    /* wfWarn(
    		'Deprecated PHP entry point used for MobileFrontend extension. ' .
    		'Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return true;
} else {
    die('This version of the MobileFrontend extension requires MediaWiki 1.25+');
}
开发者ID:felixonmars,项目名称:mediawiki-extensions-MobileFrontend,代码行数:16,代码来源:MobileFrontend.php


示例11: wfLoadExtension

<?php

if (version_compare($GLOBALS['wgVersion'], '1.27c', '>')) {
    if (function_exists('wfLoadExtension')) {
        wfLoadExtension('OpenLayers');
        // Keep i18n globals so mergeMessageFileList.php doesn't break
        $GLOBALS['wgMessagesDirs']['OpenLayers'] = __DIR__ . '/i18n';
        /* wfWarn(
        			'Deprecated PHP entry point used for OpenLayers extension. ' .
        			'Please use wfLoadExtension instead, ' .
        			'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
        		); */
        return;
    }
}
$GLOBALS['wgExtensionCredits']['other'][] = ['path' => __FILE__, 'name' => 'OpenLayers', 'version' => '1.0.0', 'author' => ['Yaron Koren', 'Paladox', '...'], 'url' => 'https://www.mediawiki.org/wiki/Extension:OpenLayers', 'descriptionmsg' => 'openlayers-desc', 'license-name' => 'GPL-2.0+'];
// Register client-side modules.
$openlayersResourceTemplate = ['localBasePath' => __DIR__, 'remoteExtPath' => 'OpenLayers'];
$GLOBALS['wgResourceModules'] += ['ext.openlayers.main' => $openlayersResourceTemplate + ['scripts' => ['libs/OpenLayers/OpenLayers.js']]];
开发者ID:wikimedia,项目名称:mediawiki-extensions-OpenLayers,代码行数:19,代码来源:OpenLayers.php


示例12: wfLoadExtension

 *
 * Copyright (c) 2015 Owen Kellie-Smith
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
if (function_exists('wfLoadExtension')) {
    wfLoadExtension('Reservation');
    $wgMessagesDirs['Reservation'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['ReservationAlias'] = __DIR__ . '/Reservation.i18n.alias.php';
    wfWarn('Deprecated PHP entry point used for Reservation extension. Please use wfLoadExtension ' . 'instead, see https://www.mediawiki.org/wiki/Extension_registration for more details.');
    return true;
} else {
    die('This version of the Reservation extension requires MediaWiki 1.25+');
}
/* Based on BoilerPlate extension */
开发者ID:owen-kellie-smith,项目名称:reservation,代码行数:31,代码来源:Reservation.php


示例13: wfLoadSkin

## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin('CologneBlue');
wfLoadSkin('Modern');
wfLoadSkin('MonoBook');
wfLoadSkin('Vector');
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
wfLoadExtension('Cite');
wfLoadExtension('CiteThisPage');
require_once "{$IP}/extensions/ConfirmEdit/ConfirmEdit.php";
wfLoadExtension('Gadgets');
wfLoadExtension('ImageMap');
wfLoadExtension('InputBox');
wfLoadExtension('Interwiki');
wfLoadExtension('LocalisationUpdate');
wfLoadExtension('Nuke');
wfLoadExtension('ParserFunctions');
wfLoadExtension('PdfHandler');
wfLoadExtension('Poem');
wfLoadExtension('Renameuser');
wfLoadExtension('SpamBlacklist');
wfLoadExtension('SyntaxHighlight_GeSHi');
wfLoadExtension('TitleBlacklist');
wfLoadExtension('WikiEditor');
# End of automatically generated settings.
# Add more configuration options below.
$wgShowExceptionDetails = true;
开发者ID:psiopic2,项目名称:psiopic-never,代码行数:31,代码来源:LocalSettings.php


示例14: wfLoadExtension

<?php

/**
 * VisualEditor extension
 *
 * This PHP entry point is deprecated. Please use wfLoadExtension() and the extension.json file
 * instead. See https://www.mediawiki.org/wiki/Manual:Extension_registration for more details.
 *
 * @file
 * @ingroup Extensions
 * @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
 * @license The MIT License (MIT); see LICENSE.txt
 */
if (function_exists('wfLoadExtension')) {
    wfLoadExtension('VisualEditor');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['VisualEditor'] = array(__DIR__ . '/lib/ve/i18n', __DIR__ . '/modules/ve-mw/i18n', __DIR__ . '/modules/ve-wmf/i18n');
    /* wfWarn(
    	'Deprecated PHP entry point used for VisualEditor extension. Please use wfLoadExtension '.
    	'instead, see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return true;
}
die('This version of the VisualEditor extension requires MediaWiki 1.25+.');
开发者ID:sammykumar,项目名称:TheVRForums,代码行数:24,代码来源:VisualEditor.php


示例15: wfLoadExtension

<?php

/**
 * Initialization file for the External Data extension
 *
 * @file
 * @ingroup ExternalData
 * @author Yaron Koren
 */
// Disabled for now until global variable naming issue is resolved.
if (false) {
    // function_exists( 'wfLoadExtension' ) ) {
    wfLoadExtension('ExternalData');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['ExternalData'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['ExternalDataMagic'] = __DIR__ . '/ExternalData.i18n.magic.php';
    /* wfWarn(
    	'Deprecated PHP entry point used for External Data extension. Please use wfLoadExtension instead, ' .
    	'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return;
}
if (!defined('MEDIAWIKI')) {
    die;
}
$wgExtensionCredits['parserhook'][] = array('path' => __FILE__, 'name' => 'External Data', 'version' => '1.8.2', 'author' => array('Yaron Koren', '...'), 'url' => 'https://www.mediawiki.org/wiki/Extension:External_Data', 'descriptionmsg' => 'externaldata-desc');
$wgHooks['ParserFirstCallInit'][] = 'ExternalDataHooks::registerParser';
$wgMessagesDirs['ExternalData'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['ExternalData'] = dirname(__FILE__) . '/ExternalData.i18n.php';
$wgExtensionMessagesFiles['ExternalDataMagic'] = dirname(__FILE__) . '/ExternalData.i18n.magic.php';
// Register all special pages and other classes
开发者ID:wjamn,项目名称:mediawiki-extensions-ExternalData,代码行数:31,代码来源:ExternalData.php


示例16: wfLoadExtension

$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-preview'] = 1;
$wgDefaultUserOptions['watchdefault'] = false;
include "{$IP}/extensions/VisualEditor/VisualEditor.php";
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// enabled by default for all
$wgHiddenPrefs[] = 'visualeditor-enable';
// don't allow disabling
$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
$wgVisualEditorParsoidURL = 'http://localhost:8142';
$wgVisualEditorParsoidPrefix = 'ligmincha';
$wgVisualEditorSupportedSkins[] = 'monobook';
// Organic Design extensions
wfLoadExtension('ExtraMagic');
wfLoadExtension('HighlightJS');
wfLoadExtension('AjaxComments');
$wgAjaxCommentsPollServer = -1;
include "{$IP}/extensions/WebSocket/WebSocket.php";
WebSocket::$log = __DIR__ . '/ws.log';
WebSocket::$rewrite = true;
WebSocket::$ssl_cert = '/etc/letsencrypt/live/ligmincha.com.br/fullchain.pem';
WebSocket::$ssl_key = '/etc/letsencrypt/live/ligmincha.com.br/privkey.pem';
// Make Category:Público public access
$wgHooks['UserGetRights'][] = 'wfPublicCat';
function wfPublicCat()
{
    global $wgWhitelistRead;
    $title = Title::newFromText($_REQUEST['title']);
    if (is_object($title)) {
        $id = $title->getArticleID();
        $dbr = wfGetDB(DB_SLAVE);
开发者ID:uinerd,项目名称:Code,代码行数:31,代码来源:LigminchaSettings.php


示例17: wfLoadExtension

 *
 * MultimediaViewer 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.
 *
 * MultimediaViewer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MultimediaViewer.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @file
 * @ingroup extensions
 * @author Mark Holmquist <[email protected]>
 * @copyright Copyright © 2013, Mark Holmquist
 */
if (function_exists('wfLoadExtension')) {
    wfLoadExtension('MultimediaViewer');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['MultimediaViewer'] = __DIR__ . '/i18n';
    /* wfWarn(
    		'Deprecated PHP entry point used for MultimediaViewer extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return;
} else {
    die('This version of the MultimediaViewer extension requires MediaWiki 1.25+');
}
开发者ID:tgr,项目名称:mediawiki-extensions-MultimediaViewer,代码行数:31,代码来源:MultimediaViewer.php


示例18: wfLoadSkin

## License and Creative Commons licenses are supported so far.
$wgRightsPage = "";
# Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "https://www.gnu.org/copyleft/fdl.html";
$wgRightsText = "GNU Free Documentation License 1.3 or later";
$wgRightsIcon = "{$wgResourceBasePath}/resources/assets/licenses/gnu-fdl.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['edit'] = false;
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "vector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin('Vector');
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
wfLoadExtension('ParserFunctions');
wfLoadExtension('PdfHandler');
wfLoadExtension('WikiEditor');
wfLoadExtension('SimpleBatchUpload');
# End of automatically generated settings.
# Add more configuration options below.
$wgFileExtensions[] = 'docx';
$wgFileExtensions[] = 'xls';
$wgFileExtensions[] = 'pdf';
$wgFileExtensions[] = 'svg';
$wgFileExtensions[] = 'odt';
$wgFileExtensions[] = 'ods';
开发者ID:gestos,项目名称:mediawiki,代码行数:31,代码来源:LocalSettings.php


示例19: wfLoadExtension

<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('InviteSignup');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['InviteSignup'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['InviteSignup'] = __DIR__ . '/InviteSignup.alias.php';
    wfWarn('Deprecated PHP entry point used for InviteSignup extension. Please use wfLoadExtension instead, ' . 'see https://www.mediawiki.org/wiki/Extension_registration for more details.');
    return;
} else {
    die('This version of the InviteSignup extension requires MediaWiki 1.25+');
}
开发者ID:starnikser,项目名称:mediawiki-extensions-InviteSignup,代码行数:12,代码来源:InviteSignup.php


示例20: array

$wgTimelineSettings->fontFile = 'FreeSans';
# Footer icon
$wgFooterIcons['poweredby']['miraheze'] = array('src' => "https://{$wmgUploadHostname}/metawiki/7/7e/Powered_by_Miraheze.png", 'url' => 'https://meta.miraheze.org/wiki/', 'alt' => 'Powered by Miraheze');
if ($wgDBname === 'permanentfuturelabwiki') {
    $wgFooterIcons['poweredby']['wikiapiary'] = array('src' => 'https://wikiapiary.com/w/images/wikiapiary/b/b4/Monitored_by_WikiApiary.png', 'url' => 'https://wikiapiary.com/wiki/Permanent_Future_Lab', 'alt' => 'Monitored by WikiApiary');
}
# ReCaptcha
$wgCaptchaClass = 'ReCaptchaNoCaptcha';
$wgReCaptchaSendRemoteIP = false;
// Don't send users' IPs
# ircrcbot
if (!isset($wgConf->settings['wmgPrivateWiki'][$wgDBname])) {
    $wgRCFeeds['irc'] = array('formatter' => 'MirahezeIRCRCFeedFormatter', 'uri' => 'udp://185.52.1.76:5070', 'add_interwiki_prefix' => false, 'omit_bots' => true);
}
# Will remove this later --SPF
if ($wgDBname == 'extloadwiki' || $wgDBname == 'allthetropeswiki') {
    require_once "{$IP}/extensions/DPLForum/DPLforum.php";
    require_once "{$IP}/extensions/LiquidThreads/LiquidThreads.php";
    require_once "{$IP}/extensions/CSS/CSS.php";
    require_once "{$IP}/extensions/NewUserMessage/NewUserMessage.php";
    require_once "{$IP}/extensions/RandomSelection/RandomSelection.php";
    wfLoadExtension('MultiBoilerplate');
    $wgMultiBoilerplateDisplaySpecialPage = true;
    $wgMultiBoilerplateOptions = false;
    require_once "{$IP}/extensions/CustomData/CustomData.php";
    require_once "{$IP}/extensions/RelatedArticles/RelatedArticles.php";
    require_once "{$IP}/extensions/SectionHide/SectionHide.php";
    require_once "{$IP}/extensions/PageTriage/PageTriage.php";
    require_once "{$IP}/extensions/SubPageList3/SubPageList3.php";
}
$wgDefaultUserOptions['enotifwatchlistpages'] = 0;
开发者ID:WikiMissing,项目名称:mw-config-copy,代码行数:31,代码来源:LocalSettings.php



注:本文中的wfLoadExtension函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wfLoadExtensionMessages函数代码示例发布时间:2022-05-23
下一篇:
PHP wfIsWindows函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap