From 2837c2412a296c6eed2381126df1fc80a77fdd16 Mon Sep 17 00:00:00 2001 From: Yaco Date: Thu, 11 Jun 2020 23:03:37 -0300 Subject: changes for multiple sites --- www/wiki/LocalSettings.ReevoTech.php | 453 ---------------------------- www/wiki/LocalSettings.ReevoTech.php.sample | 453 ++++++++++++++++++++++++++++ www/wiki/LocalSettings.php.sample | 19 ++ 3 files changed, 472 insertions(+), 453 deletions(-) delete mode 100644 www/wiki/LocalSettings.ReevoTech.php create mode 100644 www/wiki/LocalSettings.ReevoTech.php.sample create mode 100644 www/wiki/LocalSettings.php.sample (limited to 'www/wiki') diff --git a/www/wiki/LocalSettings.ReevoTech.php b/www/wiki/LocalSettings.ReevoTech.php deleted file mode 100644 index 00b25c13..00000000 --- a/www/wiki/LocalSettings.ReevoTech.php +++ /dev/null @@ -1,453 +0,0 @@ - true, - NS_CATEGORY => true, - NS_USER => true, - NS_EXPERIENCIA => true, - NS_PRENSA => true, - NS_AUDIOVISUAL => true, - NS_EVENTO => true -]; - -$wgNamespaceAliases = array( - 'U' => NS_USER, - 'E' => NS_EXPERIENCIA, - 'P' => NS_PRENSA, - 'A' => NS_AUDIOVISUAL, - 'V' => NS_EVENTO -); - - -###### Skin y visuales - -## Default skin -// wfLoadSkin( 'chameleon' ); -$wgDefaultSkin = 'chameleon'; -$wgLogo = '/skins/bo/custom/logo.svg'; -$egChameleonLayoutFile = __DIR__ . '/skins/bo/layout-reevo.xml'; -$wgRawHtml = true; - -$egChameleonExternalStyleModules = [ - __DIR__ . '/skins/bo/assets/fontawesome/css/all.css' => $wgScriptPath, // (ya NO se carga mediante JS en /MediaWiki:Common.js) - __DIR__ . '/skins/bo/bootswatch.less' => $wgScriptPath, - __DIR__ . '/skins/bo/variables.less' => $wgScriptPath, - __DIR__ . '/skins/bo/bo.less' => $wgScriptPath, - __DIR__ . '/skins/bo/reevo.less' => $wgScriptPath - ]; - - -\Bootstrap\BootstrapManager::getInstance()->addCacheTriggerFile( __DIR__ . '/skins/bo/reevo.less' ); - - -$egChameleonExternalLessVariables = [ - 'font-size-base' => '18px', - 'font-size-large' => '20px', - 'font-size-small' => '14px', - 'font-size-h1' => '22px', - 'font-size-h2' => '20px', - 'font-size-h3' => '18px', - 'line-height-base' => '1.5', - 'navbar-margin-bottom' => '10px', - 'navbar-default-bg' => 'rgba( 94, 157, 200, 1 )', - 'navbar-default-border' => 'rgba( 94, 157, 200, 1 )', - 'nav-tabs-active-link-hover-color' => 'rgba( 255, 255, 255, 1 )', - 'input-border-focus' => 'rgba(0, 0, 0, .1)' - ]; - - -###### Extensiones - -## NoTitle -require_once "$IP/extensions/NoTitle/NoTitle.php"; -$wgRestrictDisplayTitle = false; - -## Cite -wfLoadExtension( 'Cite' ); - -## Semantic Mediawiki -// require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"; -enableSemantics( $REEVO_URL ); -// $smwgQMaxInlineLimit = 2000; -wfLoadExtension( 'SemanticResultFormats' ); -wfLoadExtension( 'SemanticFormsSelect' ); -$smwgQMaxInlineLimit = 2000; - -## ModernTimeline -wfLoadExtension( 'ModernTimeline' ); - -## PageForms -wfLoadExtension( 'PageForms' ); - -## Maps -wfLoadExtension( 'Maps' ); -require_once __DIR__ . '/extensions/Maps/Maps_Settings.php'; - -## ParserFunctions -wfLoadExtension( 'ParserFunctions' ); -$wgPFEnableStringFunctions = true; - -## RegexFunctions -require_once "$IP/extensions/RegexFunctions/RegexFunctions.php"; - -## EmbedVideo -wfLoadExtension( 'EmbedVideo' ); - -## ExternalData -require_once "$IP/extensions/ExternalData/ExternalData.php"; - -## DataTrasnfer -wfLoadExtension( 'DataTransfer' ); -include_once "$IP/extensions/DataTransfer/DataTransfer.php"; - -## WikiEditor -wfLoadExtension( 'WikiEditor' ); -$wgDefaultUserOptions['usebetatoolbar'] = 1; - -# MixedNamespaceSearchSuggestions -wfLoadExtension( 'MixedNamespaceSearchSuggestions' ); - -## LanguageTag -// require_once "$IP/extensions/LanguageTag/LanguageTag.php"; -// $wgLanguageTagLanguages = array( "en", "es", "pt" ); -// -// ## UniversalLanguageSelector -// wfLoadExtension( 'UniversalLanguageSelector' ); -// $wgULSAcceptLanguageList = $wgLanguageTagLanguages; -// $wgULSIMEEnabled = false; -// $wgULSPosition = "interlanguage"; - -## Translate -// include_once "$IP/extensions/Translate/Translate.php"; -// $wgGroupPermissions['user']['translate'] = true; -// // $wgGroupPermissions['translator']['skipcaptcha'] = true; // Bug 34182: needed with ConfirmEdit -// $wgTranslateDocumentationLanguageCode = 'qqq'; -// $wgGroupPermissions['sysop']['pagetranslation'] = true; - -// $wgPageLanguageUseDB = true; -// $wgGroupPermissions['user']['pagelang'] = true; -// -// $wgTranslateCC['wiki-sidebar'] = function( $id ) { -// $mg = new WikiMessageGroup( $id, 'sidebar-messages' ); -// $mg->setLabel( 'Sidebar' ); -// $mg->setDescription( 'Messages used in the sidebar of this wiki' ); -// return $mg; -// }; - -// wfLoadExtension( 'SimpleLanguageSelector' ); -// $wgSimpleLangageSelectionLangList = ['es', 'en', 'pt']; -// $wgSimpleLangageSelectionShowTranslateLink = true; - -## EmailLogin -wfLoadExtension( 'EmailLogin' ); - -## GetUserName -require_once "$IP/extensions/GetUserName/GetUserName.php"; - -## AbuseFilter -wfLoadExtension( 'AbuseFilter' ); -$wgGroupPermissions['sysop']['abusefilter-modify'] = true; -$wgGroupPermissions['*']['abusefilter-log-detail'] = true; -$wgGroupPermissions['*']['abusefilter-view'] = true; -$wgGroupPermissions['*']['abusefilter-log'] = true; -$wgGroupPermissions['sysop']['abusefilter-private'] = true; -$wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; -$wgGroupPermissions['sysop']['abusefilter-revert'] = true; - -## Nuke -wfLoadExtension( 'Nuke' ); - -## BlockBatch -require_once "$IP/extensions/BlockBatch/BlockBatch.php"; - -## OpenGraphMeta -wfLoadExtension( 'OpenGraphMeta' ); - -## Description2 -wfLoadExtension( 'Description2' ); -$wgEnableMetaDescriptionFunctions = true; - -## HideNamespace -require_once "$IP/extensions/HideNamespace/HideNamespace.php"; -$wgHidensNamespaces = array( - NS_PRENSA, - NS_AUDIOVISUAL, - NS_USER, - NS_EXPERIENCIA, - NS_EVENTO, - NS_REVISAR, -); - -## CSS -wfLoadExtension( 'CSS' ); - -## MultimediaViewer -wfLoadExtension( 'MultimediaViewer' ); - -## UploadWizard - -wfLoadExtension( 'UploadWizard' ); -$wgApiFrameOptions = 'SAMEORIGIN'; -$wgUploadWizardConfig = array( - 'debug' => false, - 'autoAdd' => array( - 'wikitext' => array( - 'This file was uploaded with the UploadWizard extension.' - ), - 'categories' => array( - 'Uploaded with UploadWizard' - ), - ), // Should be localised to the language of your wiki instance - 'feedbackPage' => 'Feedback about UploadWizard', - 'altUploadForm' => 'Special:Upload', - 'fallbackToAltUploadForm' => false, - 'feedbackLink' => false, // Disable the link for feedback (default: points to Commons) - 'alternativeUploadToolsPage' => false, // Disable the link to alternative upload tools (default: points to Commons) - 'enableFormData' => true, // Enable FileAPI uploads be used on supported browsers - 'enableMultipleFiles' => true, - 'enableMultiFileSelect' => true, - // 'uwLanguages' => array( - // 'ar' => 'العربية', - // 'de' => 'Deutsch', - // 'en' => 'English' - // ), // Selectable languages for file descriptions - defaults to 'en' - 'tutorial' => array( - 'skip' => true - ), // Skip the tutorial - // 'maxUploads' => 15, // Number of uploads with one form - defaults to 50 - 'fileExtensions' => $wgFileExtensions // omitting this may cause errors - ); - -## MsUpload -wfLoadExtension( 'MsUpload' ); -$wgMSU_useDragDrop = true; // Should the drag & drop area be shown? (Not set by default) -$wgMSU_showAutoCat = true; // Files uploaded while editing a category page will be added to that category -$wgMSU_checkAutoCat = true; // Whether the checkbox for adding a category to a page is checked by default -$wgMSU_useMsLinks = true; // Insert links in Extension:MsLinks style? -$wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox -$wgMSU_imgParams = 'thumb|none'; // Any image parameter separated by a semicolon. Examples are: {width}px, left, right, center, none, border, frameless, frame, thumb etc etc - -## ConfirmEdit - ANTISPAM! -wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]); - -$wgCaptchaQuestions = [ - "es" => [ - '¿Cuál es la Capital de Francia?' => 'Paris', - '¿De qué país es la capital Buenos Aires?' => 'Argentina', // Answers are case insensitive - '¿Cuál es el nombre de pila de Montessori?' => [ 'María', 'Maria' ], // A question may have many answers - '¿Cuál es el nombre de esta página?' => [ 'REEVO' ], // A question may have many answers - '¿Cuál es el nombre del único satélite natural de la Tierra?' => [ 'Luna', 'La Luna' ], // A question may have many answers - ], - "en" => [ - 'What is the name of the Capital of France?' => 'Paris', - 'Buenos Aires is the capital city of...' => 'Argentina', // Answers are case insensitive - 'First name of Montessori' => [ 'María', 'Maria' ], // A question may have many answers - 'What is the name of this website?' => [ 'REEVO' ], // A question may have many answers - 'What is the name of the natural satellite of the Earth' => [ 'Moon', 'The Moon' ], // A question may have many answers - ], - "pt" => [ - 'Qual é o nome da capital da França?' => 'Paris', - 'De que país é a capital Buenos Aires?' => 'Argentina', // Answers are case insensitive - 'Qual é o primeiro nome de Montessori?' => [ 'María', 'Maria' ], // A question may have many answers - 'Qual é o nome desta página da web?' => [ 'REEVO' ], // A question may have many answers - 'Qual é o nome do único satélite natural na Terra?' => [ 'Lua', 'La lua' ], // A question may have many answers - ] -]; - -$wgCaptchaTriggers['edit'] = false; -$wgCaptchaTriggersOnNamespace[NS_REVISAR]['create'] = true; -$wgCaptchaTriggers['createtalk'] = false; -$wgCaptchaTriggers['addurl'] = false; -$wgCaptchaTriggers['createaccount'] = true; -$wgCaptchaTriggers['badlogin'] = true; - - -## HideEmptySections -require_once( "$IP/extensions/HideEmptySections/HideEmptySections.php" ); - -## NewUserNotif -require_once "$IP/extensions/NewUserNotif/NewUserNotif.php"; -$wgNewUserNotifEmailTargets = array( - 'info2019@reevo.org' -); - -## ContactPage -$wgUserEmailUseReplyTo = true; -wfLoadExtension( 'ContactPage' ); -$wgContactConfig['default'] = array( - 'RecipientUser' => 'Reebot', // Must be the name of a valid account which also has a verified e-mail-address added to it. - 'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated - 'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required - 'RequireDetails' => true, // Either "true" or "false" as required - 'IncludeIP' => true, // Either "true" or "false" as required - 'MustBeLoggedIn' => false, // Check if the user is logged in before rendering the form - 'AdditionalFields' => array( - 'Text' => array( - 'label-message' => 'emailmessage', - 'type' => 'textarea', - 'rows' => 20, - 'required' => true, // Either "true" or "false" as required - ), - ), - // Added in MW 1.26 - 'DisplayFormat' => 'table', // See HTMLForm documentation for available values. - 'RLModules' => array(), // Resource loader modules to add to the form display page. - 'RLStyleModules' => array(), // Resource loader CSS modules to add to the form display page. -); -$wgCaptchaTriggers['contactpage'] = true; - -$wgHooks['EmailUser'][] = function ( &$address, &$from, &$subject, &$text, &$error ) { - global $wgPasswordSender; - $subject = '[reevo.wiki] Contacto: ' . $subject; - $address->address = 'info2019@reevo.org'; -# $from->address = $wgPasswordSender; -}; - - -###### Extensiones propias - -## CountryStates -wfLoadExtension( 'CountryStates' ); - -$CustomLS = __DIR__ . '/skins/bo/custom/LocalSettings.custom.php'; -if (file_exists($CustomLS)) { - include($CustomLS); -} diff --git a/www/wiki/LocalSettings.ReevoTech.php.sample b/www/wiki/LocalSettings.ReevoTech.php.sample new file mode 100644 index 00000000..00b25c13 --- /dev/null +++ b/www/wiki/LocalSettings.ReevoTech.php.sample @@ -0,0 +1,453 @@ + true, + NS_CATEGORY => true, + NS_USER => true, + NS_EXPERIENCIA => true, + NS_PRENSA => true, + NS_AUDIOVISUAL => true, + NS_EVENTO => true +]; + +$wgNamespaceAliases = array( + 'U' => NS_USER, + 'E' => NS_EXPERIENCIA, + 'P' => NS_PRENSA, + 'A' => NS_AUDIOVISUAL, + 'V' => NS_EVENTO +); + + +###### Skin y visuales + +## Default skin +// wfLoadSkin( 'chameleon' ); +$wgDefaultSkin = 'chameleon'; +$wgLogo = '/skins/bo/custom/logo.svg'; +$egChameleonLayoutFile = __DIR__ . '/skins/bo/layout-reevo.xml'; +$wgRawHtml = true; + +$egChameleonExternalStyleModules = [ + __DIR__ . '/skins/bo/assets/fontawesome/css/all.css' => $wgScriptPath, // (ya NO se carga mediante JS en /MediaWiki:Common.js) + __DIR__ . '/skins/bo/bootswatch.less' => $wgScriptPath, + __DIR__ . '/skins/bo/variables.less' => $wgScriptPath, + __DIR__ . '/skins/bo/bo.less' => $wgScriptPath, + __DIR__ . '/skins/bo/reevo.less' => $wgScriptPath + ]; + + +\Bootstrap\BootstrapManager::getInstance()->addCacheTriggerFile( __DIR__ . '/skins/bo/reevo.less' ); + + +$egChameleonExternalLessVariables = [ + 'font-size-base' => '18px', + 'font-size-large' => '20px', + 'font-size-small' => '14px', + 'font-size-h1' => '22px', + 'font-size-h2' => '20px', + 'font-size-h3' => '18px', + 'line-height-base' => '1.5', + 'navbar-margin-bottom' => '10px', + 'navbar-default-bg' => 'rgba( 94, 157, 200, 1 )', + 'navbar-default-border' => 'rgba( 94, 157, 200, 1 )', + 'nav-tabs-active-link-hover-color' => 'rgba( 255, 255, 255, 1 )', + 'input-border-focus' => 'rgba(0, 0, 0, .1)' + ]; + + +###### Extensiones + +## NoTitle +require_once "$IP/extensions/NoTitle/NoTitle.php"; +$wgRestrictDisplayTitle = false; + +## Cite +wfLoadExtension( 'Cite' ); + +## Semantic Mediawiki +// require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"; +enableSemantics( $REEVO_URL ); +// $smwgQMaxInlineLimit = 2000; +wfLoadExtension( 'SemanticResultFormats' ); +wfLoadExtension( 'SemanticFormsSelect' ); +$smwgQMaxInlineLimit = 2000; + +## ModernTimeline +wfLoadExtension( 'ModernTimeline' ); + +## PageForms +wfLoadExtension( 'PageForms' ); + +## Maps +wfLoadExtension( 'Maps' ); +require_once __DIR__ . '/extensions/Maps/Maps_Settings.php'; + +## ParserFunctions +wfLoadExtension( 'ParserFunctions' ); +$wgPFEnableStringFunctions = true; + +## RegexFunctions +require_once "$IP/extensions/RegexFunctions/RegexFunctions.php"; + +## EmbedVideo +wfLoadExtension( 'EmbedVideo' ); + +## ExternalData +require_once "$IP/extensions/ExternalData/ExternalData.php"; + +## DataTrasnfer +wfLoadExtension( 'DataTransfer' ); +include_once "$IP/extensions/DataTransfer/DataTransfer.php"; + +## WikiEditor +wfLoadExtension( 'WikiEditor' ); +$wgDefaultUserOptions['usebetatoolbar'] = 1; + +# MixedNamespaceSearchSuggestions +wfLoadExtension( 'MixedNamespaceSearchSuggestions' ); + +## LanguageTag +// require_once "$IP/extensions/LanguageTag/LanguageTag.php"; +// $wgLanguageTagLanguages = array( "en", "es", "pt" ); +// +// ## UniversalLanguageSelector +// wfLoadExtension( 'UniversalLanguageSelector' ); +// $wgULSAcceptLanguageList = $wgLanguageTagLanguages; +// $wgULSIMEEnabled = false; +// $wgULSPosition = "interlanguage"; + +## Translate +// include_once "$IP/extensions/Translate/Translate.php"; +// $wgGroupPermissions['user']['translate'] = true; +// // $wgGroupPermissions['translator']['skipcaptcha'] = true; // Bug 34182: needed with ConfirmEdit +// $wgTranslateDocumentationLanguageCode = 'qqq'; +// $wgGroupPermissions['sysop']['pagetranslation'] = true; + +// $wgPageLanguageUseDB = true; +// $wgGroupPermissions['user']['pagelang'] = true; +// +// $wgTranslateCC['wiki-sidebar'] = function( $id ) { +// $mg = new WikiMessageGroup( $id, 'sidebar-messages' ); +// $mg->setLabel( 'Sidebar' ); +// $mg->setDescription( 'Messages used in the sidebar of this wiki' ); +// return $mg; +// }; + +// wfLoadExtension( 'SimpleLanguageSelector' ); +// $wgSimpleLangageSelectionLangList = ['es', 'en', 'pt']; +// $wgSimpleLangageSelectionShowTranslateLink = true; + +## EmailLogin +wfLoadExtension( 'EmailLogin' ); + +## GetUserName +require_once "$IP/extensions/GetUserName/GetUserName.php"; + +## AbuseFilter +wfLoadExtension( 'AbuseFilter' ); +$wgGroupPermissions['sysop']['abusefilter-modify'] = true; +$wgGroupPermissions['*']['abusefilter-log-detail'] = true; +$wgGroupPermissions['*']['abusefilter-view'] = true; +$wgGroupPermissions['*']['abusefilter-log'] = true; +$wgGroupPermissions['sysop']['abusefilter-private'] = true; +$wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; +$wgGroupPermissions['sysop']['abusefilter-revert'] = true; + +## Nuke +wfLoadExtension( 'Nuke' ); + +## BlockBatch +require_once "$IP/extensions/BlockBatch/BlockBatch.php"; + +## OpenGraphMeta +wfLoadExtension( 'OpenGraphMeta' ); + +## Description2 +wfLoadExtension( 'Description2' ); +$wgEnableMetaDescriptionFunctions = true; + +## HideNamespace +require_once "$IP/extensions/HideNamespace/HideNamespace.php"; +$wgHidensNamespaces = array( + NS_PRENSA, + NS_AUDIOVISUAL, + NS_USER, + NS_EXPERIENCIA, + NS_EVENTO, + NS_REVISAR, +); + +## CSS +wfLoadExtension( 'CSS' ); + +## MultimediaViewer +wfLoadExtension( 'MultimediaViewer' ); + +## UploadWizard + +wfLoadExtension( 'UploadWizard' ); +$wgApiFrameOptions = 'SAMEORIGIN'; +$wgUploadWizardConfig = array( + 'debug' => false, + 'autoAdd' => array( + 'wikitext' => array( + 'This file was uploaded with the UploadWizard extension.' + ), + 'categories' => array( + 'Uploaded with UploadWizard' + ), + ), // Should be localised to the language of your wiki instance + 'feedbackPage' => 'Feedback about UploadWizard', + 'altUploadForm' => 'Special:Upload', + 'fallbackToAltUploadForm' => false, + 'feedbackLink' => false, // Disable the link for feedback (default: points to Commons) + 'alternativeUploadToolsPage' => false, // Disable the link to alternative upload tools (default: points to Commons) + 'enableFormData' => true, // Enable FileAPI uploads be used on supported browsers + 'enableMultipleFiles' => true, + 'enableMultiFileSelect' => true, + // 'uwLanguages' => array( + // 'ar' => 'العربية', + // 'de' => 'Deutsch', + // 'en' => 'English' + // ), // Selectable languages for file descriptions - defaults to 'en' + 'tutorial' => array( + 'skip' => true + ), // Skip the tutorial + // 'maxUploads' => 15, // Number of uploads with one form - defaults to 50 + 'fileExtensions' => $wgFileExtensions // omitting this may cause errors + ); + +## MsUpload +wfLoadExtension( 'MsUpload' ); +$wgMSU_useDragDrop = true; // Should the drag & drop area be shown? (Not set by default) +$wgMSU_showAutoCat = true; // Files uploaded while editing a category page will be added to that category +$wgMSU_checkAutoCat = true; // Whether the checkbox for adding a category to a page is checked by default +$wgMSU_useMsLinks = true; // Insert links in Extension:MsLinks style? +$wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox +$wgMSU_imgParams = 'thumb|none'; // Any image parameter separated by a semicolon. Examples are: {width}px, left, right, center, none, border, frameless, frame, thumb etc etc + +## ConfirmEdit - ANTISPAM! +wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]); + +$wgCaptchaQuestions = [ + "es" => [ + '¿Cuál es la Capital de Francia?' => 'Paris', + '¿De qué país es la capital Buenos Aires?' => 'Argentina', // Answers are case insensitive + '¿Cuál es el nombre de pila de Montessori?' => [ 'María', 'Maria' ], // A question may have many answers + '¿Cuál es el nombre de esta página?' => [ 'REEVO' ], // A question may have many answers + '¿Cuál es el nombre del único satélite natural de la Tierra?' => [ 'Luna', 'La Luna' ], // A question may have many answers + ], + "en" => [ + 'What is the name of the Capital of France?' => 'Paris', + 'Buenos Aires is the capital city of...' => 'Argentina', // Answers are case insensitive + 'First name of Montessori' => [ 'María', 'Maria' ], // A question may have many answers + 'What is the name of this website?' => [ 'REEVO' ], // A question may have many answers + 'What is the name of the natural satellite of the Earth' => [ 'Moon', 'The Moon' ], // A question may have many answers + ], + "pt" => [ + 'Qual é o nome da capital da França?' => 'Paris', + 'De que país é a capital Buenos Aires?' => 'Argentina', // Answers are case insensitive + 'Qual é o primeiro nome de Montessori?' => [ 'María', 'Maria' ], // A question may have many answers + 'Qual é o nome desta página da web?' => [ 'REEVO' ], // A question may have many answers + 'Qual é o nome do único satélite natural na Terra?' => [ 'Lua', 'La lua' ], // A question may have many answers + ] +]; + +$wgCaptchaTriggers['edit'] = false; +$wgCaptchaTriggersOnNamespace[NS_REVISAR]['create'] = true; +$wgCaptchaTriggers['createtalk'] = false; +$wgCaptchaTriggers['addurl'] = false; +$wgCaptchaTriggers['createaccount'] = true; +$wgCaptchaTriggers['badlogin'] = true; + + +## HideEmptySections +require_once( "$IP/extensions/HideEmptySections/HideEmptySections.php" ); + +## NewUserNotif +require_once "$IP/extensions/NewUserNotif/NewUserNotif.php"; +$wgNewUserNotifEmailTargets = array( + 'info2019@reevo.org' +); + +## ContactPage +$wgUserEmailUseReplyTo = true; +wfLoadExtension( 'ContactPage' ); +$wgContactConfig['default'] = array( + 'RecipientUser' => 'Reebot', // Must be the name of a valid account which also has a verified e-mail-address added to it. + 'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated + 'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required + 'RequireDetails' => true, // Either "true" or "false" as required + 'IncludeIP' => true, // Either "true" or "false" as required + 'MustBeLoggedIn' => false, // Check if the user is logged in before rendering the form + 'AdditionalFields' => array( + 'Text' => array( + 'label-message' => 'emailmessage', + 'type' => 'textarea', + 'rows' => 20, + 'required' => true, // Either "true" or "false" as required + ), + ), + // Added in MW 1.26 + 'DisplayFormat' => 'table', // See HTMLForm documentation for available values. + 'RLModules' => array(), // Resource loader modules to add to the form display page. + 'RLStyleModules' => array(), // Resource loader CSS modules to add to the form display page. +); +$wgCaptchaTriggers['contactpage'] = true; + +$wgHooks['EmailUser'][] = function ( &$address, &$from, &$subject, &$text, &$error ) { + global $wgPasswordSender; + $subject = '[reevo.wiki] Contacto: ' . $subject; + $address->address = 'info2019@reevo.org'; +# $from->address = $wgPasswordSender; +}; + + +###### Extensiones propias + +## CountryStates +wfLoadExtension( 'CountryStates' ); + +$CustomLS = __DIR__ . '/skins/bo/custom/LocalSettings.custom.php'; +if (file_exists($CustomLS)) { + include($CustomLS); +} diff --git a/www/wiki/LocalSettings.php.sample b/www/wiki/LocalSettings.php.sample new file mode 100644 index 00000000..856de73e --- /dev/null +++ b/www/wiki/LocalSettings.php.sample @@ -0,0 +1,19 @@ + -- cgit v1.2.1