From ca320ebafc2c5c0af7c2b733cfbbee065da7ac23 Mon Sep 17 00:00:00 2001 From: Yaco Date: Mon, 9 Sep 2019 12:26:44 -0300 Subject: agrega la extension NewUserNotif --- www/wiki/LocalSettings.Reevo.php | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) (limited to 'www/wiki/LocalSettings.Reevo.php') diff --git a/www/wiki/LocalSettings.Reevo.php b/www/wiki/LocalSettings.Reevo.php index 7f397e94..788de73f 100644 --- a/www/wiki/LocalSettings.Reevo.php +++ b/www/wiki/LocalSettings.Reevo.php @@ -32,13 +32,18 @@ $wgDBmysql5 = false; ## Registro y perfil de usuarios -$wgEmailConfirmToEdit = true; $wgHiddenPrefs[] = 'realname'; $wgHiddenPrefs[] = 'genre'; $wgGroupPermissions['*']['createaccount'] = true; -$wgGroupPermissions['user']['upload_by_url'] = true; $wgRedirectOnLogin = 'Special:MyPage'; +## Permisos +// $wgEmailConfirmToEdit = true; +// $wgGroupPermissions['*']['edit'] = false; +// $wgGroupPermissions['*']['createpage'] = true; +$wgGroupPermissions['user']['edit'] = true; +$wgGroupPermissions['user']['upload_by_url'] = true; + ## Email $wgEmergencyContact = "webmaster@$REEVO_URL"; @@ -106,6 +111,27 @@ $wgContentNamespaces[] = NS_EXPERIENCIA; $smwgNamespacesWithSemanticLinks[NS_EXPERIENCIA] = true; $wgNamespacesWithSubpages[NS_EXPERIENCIA] = true; +define("NS_REVISAR", 3006); // Este número DEBE ser par. +define("NS_REVISAR_TALK", 3007); // Éste DEBE ser el siguiente entero impar. +$wgExtraNamespaces[NS_REVISAR] = "Revisar"; +$wgExtraNamespaces[NS_REVISAR_TALK] = "Revisar_talk"; +$wgContentNamespaces[] = NS_REVISAR; +$smwgNamespacesWithSemanticLinks[NS_REVISAR] = true; +$wgNamespacesWithSubpages[NS_REVISAR] = true; + +$wgNamespaceProtection[NS_MAIN] = $wgNamespaceProtection[NS_USER] = +$wgNamespaceProtection[NS_PROJECT] = $wgNamespaceProtection[NS_IMAGE] = +$wgNamespaceProtection[NS_TEMPLATE] = $wgNamespaceProtection[NS_HELP] = +$wgNamespaceProtection[NS_CATEGORY] = $wgNamespaceProtection[NS_AUDIOVISUAL] = +$wgNamespaceProtection[NS_AUDIOVISUAL] = $wgNamespaceProtection[NS_EXPERIENCIA] = +$wgNamespaceProtection[NS_PRENSA] = array( 'autoconfirmed' ); + +$wgGroupPermissions['*']['revisar-edit'] = true; +$wgNamespaceProtection[NS_REVISAR] = array( 'revisar-edit' ); + + + + $wgNamespaceAliases = array( 'U' => NS_USER, 'E' => NS_EXPERIENCIA, @@ -350,7 +376,7 @@ $wgCaptchaQuestions = [ // $wgCaptchaTriggers['edit'] = true; -// $wgCaptchaTriggers['create'] = true; +$wgCaptchaTriggersOnNamespace[NS_REVISAR]['create'] = true; // $wgCaptchaTriggers['createtalk'] = true; // $wgCaptchaTriggers['addurl'] = true; $wgCaptchaTriggers['createaccount'] = true; @@ -359,7 +385,11 @@ $wgCaptchaTriggers['badlogin'] = true; ## HideEmptySections require_once( "$IP/extensions/HideEmptySections/HideEmptySections.php" ); - +## NewUserNotif +require_once "$IP/extensions/NewUserNotif/NewUserNotif.php"; +$wgNewUserNotifEmailTargets = array( + 'franco@reevo.org' +); ###### Extensiones propias -- cgit v1.2.1