<?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+');
}
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']) {
Пример #3
0
    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;
}
Пример #4
0
# 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";
Пример #5
0
<?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+');
}
Пример #6
0
<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('ConfirmEdit/FancyCaptcha');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['FancyCaptcha'] = __DIR__ . '/i18n';
    /* wfWarn(
    		'Deprecated PHP entry point used for FancyCaptcha extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return;
} else {
    die('This version of the FancyCaptcha extension requires MediaWiki 1.25+');
}
Пример #7
0
# 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.
Пример #8
0
<?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+');
}
Пример #9
0
<?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+');
}
Пример #10
0
<?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+');
}
<?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+');
}
Пример #12
0
<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('Nuke');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['Nuke'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['NukeAlias'] = __DIR__ . '/Nuke.alias.php';
    /* wfWarn(
    		'Deprecated PHP entry point used for Nuke extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return true;
} else {
    die('This version of the Nuke extension requires MediaWiki 1.25+');
}
<?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']]];
Пример #14
0
 *
 * 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 */
Пример #15
0
## 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;
Пример #16
0
<?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+.');
<?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
Пример #18
0
$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);
 *
 * 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 <*****@*****.**>
 * @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+');
}
Пример #20
0
## 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';
<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('WikiLabels');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['WikiLabels'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['WikiLabelsAlias'] = __DIR__ . '/WikiLabels.i18n.alias.php';
    wfWarn('Deprecated PHP entry point used for WikiLabels extension. Please use wfLoadExtension ' . 'instead, see https://www.mediawiki.org/wiki/Extension_registration for more details.');
    return true;
} else {
    die('This version of the WikiLabels extension requires MediaWiki 1.25+');
}
<?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+');
}
<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('PageAssessments');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['PageAssessments'] = __DIR__ . '/i18n';
    $wgExtensionMessagesFiles['PageAssessmentsMagic'] = __DIR__ . '/PageAssessments.i18n.magic.php';
    wfWarn('Deprecated PHP entry point used for PageAssessments extension. Please use wfLoadExtension ' . 'instead, see https://www.mediawiki.org/wiki/Extension_registration for more details.');
    return true;
} else {
    die('This version of the PageAssessments extension requires MediaWiki 1.25+');
}
Пример #24
0
<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('InputBox');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['InputBox'] = __DIR__ . '/i18n';
    /* wfWarn(
    		'Deprecated PHP entry point used for InputBox extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return;
} else {
    die('This version of the InputBox extension requires MediaWiki 1.25+');
}
Пример #25
0
$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;
        $wgPageImagesExpandOpenSearchXml = $wmgPageImagesExpandOpenSearchXml;
        $wgPageImagesBlacklist[] = array('type' => 'db', 'page' => 'MediaWiki:Pageimages-blacklist', 'db' => 'commonswiki');
    }
    if ($wmgUseQuickSurveys) {
        $wgQuickSurveysRequireHttps = false;
        $wgQuickSurveysConfig = array(array("name" => "drink-survey", "type" => "internal", "question" => "anne-survey-question", "answers" => array("anne-survey-answer-one", "anne-survey-answer-two", "anne-survey-answer-three", "anne-survey-answer-four"), "schema" => "QuickSurveysResponses", "enabled" => true, "coverage" => 0, "description" => "anne-survey-description", "platform" => array("desktop" => array("stable"), "mobile" => array("stable", "beta", "alpha"))), array("name" => "internal example survey", "type" => "internal", "question" => "ext-quicksurveys-example-internal-survey-question", "answers" => array("ext-quicksurveys-example-internal-survey-answer-positive", "ext-quicksurveys-example-internal-survey-answer-neutral", "ext-quicksurveys-example-internal-survey-answer-negative"), "schema" => "QuickSurveysResponses", "enabled" => true, "coverage" => 0.5, "description" => "ext-quicksurveys-example-internal-survey-description", "platform" => array("desktop" => array("stable"), "mobile" => array("stable", "beta", "alpha"))), array('name' => 'external example survey', 'type' => 'external', "question" => "ext-quicksurveys-example-external-survey-question", "description" => "ext-quicksurveys-example-external-survey-description", "link" => "ext-quicksurveys-example-external-survey-link", "privacyPolicy" => "ext-quicksurveys-example-external-survey-privacy-policy", 'coverage' => 0.5, 'enabled' => true, 'platform' => array('desktop' => array('stable'), 'mobile' => array('stable', 'beta', 'alpha'))));
    }
    if ($wmgUseSentry) {
        require_once "{$IP}/extensions/Sentry/Sentry.php";
        $wgSentryDsn = $wmgSentryDsn;
        $wgSentryLogPhpErrors = false;
    }
    if ($wmgUseCapiunto) {
        require_once "{$IP}/extensions/Capiunto/Capiunto.php";
    }
    if ($wmgUseEventBus) {
        wfLoadExtension('EventBus');
        $wgEventServiceUrl = 'http://deployment-eventlogging04.deployment-prep.eqiad.wmflabs:8085/v1/events';
    }
    if ($wmgUseEcho) {
        $wgEchoSharedTrackingDB = 'wikishared';
    }
    // Experimental
    $wgGadgetsCaching = false;
    $wgMessageCacheType = CACHE_ACCEL;
    // Test of new import source configuration on labs cluster
    $wgImportSources = false;
    include "{$wmfConfigDir}/import.php";
    $wgHooks['ImportSources'][] = 'wmfImportSources';
}
# end safeguard
Пример #27
0
<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('ConfirmEdit/ReCaptchaNoCaptcha');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['ReCaptchaNoCaptcha'] = __DIR__ . '/i18n';
    /* wfWarn(
    		'Deprecated PHP entry point used for ReCaptchaNoCaptcha extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return;
} else {
    die('This version of the ReCaptchaNoCaptcha extension requires MediaWiki 1.25+');
}
Пример #28
0
<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('Poem');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['Poem'] = __DIR__ . '/i18n';
    /* wfWarn(
    		'Deprecated PHP entry point used for Poem extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return true;
} else {
    die('This version of the Poem extension requires MediaWiki 1.25+');
}
Пример #29
0
<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('CreateWiki');
    return;
} else {
    die('This version requires MediaWiki 1.25+');
}
Пример #30
0
<?php

if (function_exists('wfLoadExtension')) {
    wfLoadExtension('ImageMap');
    // Keep i18n globals so mergeMessageFileList.php doesn't break
    $wgMessagesDirs['ImageMap'] = __DIR__ . '/i18n';
    /* wfWarn(
    		'Deprecated PHP entry point used for ImageMap extension. Please use wfLoadExtension instead, ' .
    		'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
    	); */
    return true;
} else {
    die('This version of the ImageMap extension requires MediaWiki 1.25+');
}