From baeb30b456b94e85848ddd458411c11a356d90f5 Mon Sep 17 00:00:00 2001 From: Yaco Date: Thu, 29 Aug 2019 14:59:22 -0300 Subject: agrega anti-spam con preguntas --- www/wiki/LocalSettings.Reevo.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/www/wiki/LocalSettings.Reevo.php b/www/wiki/LocalSettings.Reevo.php index 063f0fe7..42cf10b7 100644 --- a/www/wiki/LocalSettings.Reevo.php +++ b/www/wiki/LocalSettings.Reevo.php @@ -288,7 +288,6 @@ $wgUploadWizardConfig = array( ); ## 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 @@ -297,6 +296,26 @@ $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 = [ + '¿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 +]; + +$wgMainCacheType = CACHE_ANYTHING; +// $wgCaptchaTriggers['edit'] = true; +// $wgCaptchaTriggers['create'] = true; +// $wgCaptchaTriggers['createtalk'] = true; +// $wgCaptchaTriggers['addurl'] = true; +$wgCaptchaTriggers['createaccount'] = true; +$wgCaptchaTriggers['badlogin'] = true; + + ###### Extensiones propias ## ImportarPerfil -- cgit v1.2.1