summaryrefslogtreecommitdiff
path: root/www/wiki/LocalSettings.Reevo.php
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2019-01-06 00:20:37 -0300
committerYaco <franco@reevo.org>2019-01-06 00:20:37 -0300
commitdab3fd4a501df5c3fc30b4c9fe79bfada4415958 (patch)
tree3d1971414457ff62418a69b6a95bc4b4e93ab5e9 /www/wiki/LocalSettings.Reevo.php
parent71ddfdcf197d529e0964059ad7b796913908f2b3 (diff)
grandes avances previos al primer deployment en reevo.wiki
Diffstat (limited to 'www/wiki/LocalSettings.Reevo.php')
-rw-r--r--www/wiki/LocalSettings.Reevo.php188
1 files changed, 188 insertions, 0 deletions
diff --git a/www/wiki/LocalSettings.Reevo.php b/www/wiki/LocalSettings.Reevo.php
new file mode 100644
index 00000000..396b482f
--- /dev/null
+++ b/www/wiki/LocalSettings.Reevo.php
@@ -0,0 +1,188 @@
+<?php
+# ----
+# Copyright (C) 2013-2020 - Reevo Project (http://reevo.org)
+# License: Affero GPL version 3 - http://www.gnu.org/licenses/agpl.html
+# ----
+
+if ( !defined( 'MEDIAWIKI' ) ) {
+ exit;
+}
+include(__DIR__ . '/../../etc/global_config.php');
+
+$wgMetaNamespace = "REEVO";
+$wgScriptPath = "";
+$wgArticlePath = "/$1";
+$wgUsePathInfo = true;
+$wgResourceBasePath = $wgScriptPath;
+
+## Database settings
+$wgDBtype = "mysql";
+$wgDBserver = "localhost";
+$wgDBname = $REEVO_DB_WIKI;
+$wgDBuser = $REEVO_DB_USER;
+$wgDBpassword = $REEVO_DB_PASS;
+$wgDBprefix = "";
+$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
+$wgDBmysql5 = false;
+
+## Registro y perfil de usuarios
+$wgEmailConfirmToEdit = true;
+$wgHiddenPrefs[] = 'realname';
+$wgHiddenPrefs[] = 'genre';
+
+
+## Email
+$wgEmergencyContact = "webmaster@$REEVO_URL";
+$wgPasswordSender = "webmaster@$REEVO_URL";
+$wgEnableEmail = true;
+$wgEnableUserEmail = true; # UPO
+$wgEnotifUserTalk = false; # UPO
+$wgEnotifWatchlist = false; # UPO
+$wgEmailAuthentication = true;
+
+$wgMainCacheType = CACHE_NONE;
+$wgMemCachedServers = [];
+
+## Subidas e imagenes
+$wgEnableUploads = true;
+$wgUseImageMagick = true;
+$wgImageMagickConvertCommand = "/usr/bin/convert";
+$wgAllowImageTag = "true";
+$wgUseInstantCommons = false;
+$wgDiff3 = "/usr/bin/diff3";
+
+## Idioma
+$wgShellLocale = "en_US.utf8";
+$wgLanguageCode = "es";
+$wgMessagesDirs['Reevo'] = "../../i18n/wiki/reevo";
+$wgMessagesDirs['ISO'] = "../../i18n/wiki/iso";
+
+## Licencia
+$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
+$wgRightsUrl = "https://creativecommons.org/licenses/by-sa/4.0/";
+$wgRightsText = "Creative Commons Atribución-CompartirIgual";
+$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by-sa.png";
+
+## Namespaces
+define("NS_AUDIOVISUAL", 3000); // Este número DEBE ser par.
+define("NS_AUDIOVISUAL_TALK", 3001); // Éste DEBE ser el siguiente entero impar.
+$wgExtraNamespaces[NS_AUDIOVISUAL] = "Audiovisual";
+$wgExtraNamespaces[NS_AUDIOVISUAL_TALK] = "Audiovisual_talk";
+$wgContentNamespaces[] = NS_AUDIOVISUAL;
+$smwgNamespacesWithSemanticLinks[NS_AUDIOVISUAL] = true;
+$wgNamespaceAliases['Pelicula'] = NS_AUDIOVISUAL;
+$wgNamespaceAliases['Pelicula_talk'] = NS_AUDIOVISUAL_TALK;
+$wgNamespacesWithSubpages[NS_AUDIOVISUAL] = true;
+
+define("NS_PRENSA", 3002); // Este número DEBE ser par.
+define("NS_PRENSA_TALK", 3003); // Éste DEBE ser el siguiente entero impar.
+$wgExtraNamespaces[NS_PRENSA] = "Prensa";
+$wgExtraNamespaces[NS_PRENSA_TALK] = "Prensa_talk";
+$wgContentNamespaces[] = NS_PRENSA;
+$smwgNamespacesWithSemanticLinks[NS_PRENSA] = true;
+$wgNamespacesWithSubpages[NS_PRENSA] = true;
+
+
+###### Skin y visuales
+
+## Default skin
+$wgDefaultSkin = 'chameleon';
+$wgLogo = '/skins/bo/logo.svg';
+$egChameleonLayoutFile = __DIR__ . '/skins/bo/layout-tools.xml';
+
+$egChameleonExternalStyleModules = [
+ __DIR__ . '/skins/bo/bootswatch.less' => $wgScriptPath,
+ __DIR__ . '/skins/bo/variables.less' => $wgScriptPath,
+ __DIR__ . '/skins/bo/bo.less' => $wgScriptPath,
+ __DIR__ . '/skins/bo/reevo.less' => $wgScriptPath
+ ];
+
+$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
+
+## Cite
+wfLoadExtension( 'Cite' );
+
+## Semantic Mediawiki
+require_once "$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php";
+enableSemantics( 'reevo2.red' );
+
+## PageForms
+wfLoadExtension( 'PageForms' );
+
+## ParserFunctions
+wfLoadExtension( 'ParserFunctions' );
+
+## ExternalData
+require_once "$IP/extensions/ExternalData/ExternalData.php";
+
+## DataTrasnfer
+wfLoadExtension( 'DataTransfer' );
+include_once "$IP/extensions/DataTransfer/DataTransfer.php";
+
+## NoTitle
+require_once "$IP/extensions/NoTitle/NoTitle.php";
+$wgRestrictDisplayTitle = false;
+
+## WikiEditor
+wfLoadExtension( 'WikiEditor' );
+$wgDefaultUserOptions['usebetatoolbar'] = 1;
+
+## Translate
+include_once "$IP/extensions/Translate/Translate.php";
+$wgGroupPermissions['translator']['translate'] = true;
+$wgGroupPermissions['translator']['skipcaptcha'] = true; // Bug 34182: needed with ConfirmEdit
+$wgTranslateDocumentationLanguageCode = 'qqq';
+$wgGroupPermissions['sysop']['pagetranslation'] = true;
+wfLoadExtension( 'UniversalLanguageSelector' );
+
+## 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;
+
+
+###### Extensiones propias
+
+## ImportarPerfil
+require_once( "$IP/extensions/ImportarPerfil/ImportarPerfil.php" );
+
+
+
+####### DEBUG
+if( strpos( $REEVO_URL, 'test' ) !== false) {
+ $wgShowExceptionDetails = true;
+ $wgDebugComments = true;
+ $wgDebugLogFile = "../../log/wiki/mediawiki.log";
+ $wgShowSQLErrors = true;
+ $wgDebugDumpSql = true;
+ $wgShowExceptionDetails= true;
+ $wgShowDBErrorBacktrace = true;
+}