Extension:LegalLogin/ru

This page is a translated version of the page Extension:LegalLogin and the translation is 46% complete.
This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
Справка по расширениям MediaWiki
LegalLogin
Статус релиза: стабильно
Реализация Действия пользователя
Описание The LegalLogin extension requires acceptance of legal policies and correct answer on test questions during account creation and login.
Автор(ы) Pavel Astakhov (Pastakhovобсуждение)
Поддерживающий(ие) WikiTeq team
Последняя версия 1.0 (Jan 2023)
Политика совместимости В расширении есть соответствуюшая ветвь для каждого релиза MediaWiki, который является релизом долгосрочной поддержки (Long Term Support release).
MediaWiki 1.35, 1.39
PHP 7.4.3+
Изменения в БД Да
Таблицы legallogin_accepted
legallogin_logged
Лицензия GNU General Public License 2.0 или позднее
Скачать
README
$wgLegalLoginPolicies, $wgLegalLoginQuestions, $wgLegalLoginExpiration, $wgLegalLoginInterval, $wgLegalLoginLogActions
legallogin-view-log
Ежеквартальные загрузки 2 (Ranked 142nd)
Переведите расширение LegalLogin, если оно доступно на translatewiki.net
Проблемы Открытые задачи · Сообщить об ошибке

The LegalLogin extension requires acceptance of legal policies and correct answer on test questions during account creation and login.

Это расширение было создано для WikiWorks.

Установка

  • Скачайте и распакуйте файл(ы) в папку с названием LegalLogin в вашей папке extensions/.
    Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LegalLogin
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'LegalLogin' );
    
  •   Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

Параметры конфигурации

$wgLegalLoginPolicies
The list of legal policies that will require acceptance during account creation and login. Only pages in NS_MEDIAWIKI namespaces allowed as correct values.
$wgLegalLoginQuestions
Вопросы, на которые пользователи должны будут правильно ответить перед входом. Only pages in NS_MEDIAWIKI namespaces allowed as correct values.
$wgLegalLoginExpiration
Require acceptance of legal policies again after defined seconds.
$wgLegalLoginInterval
Require acceptance of legal policies again after defined number of logins.
$wgLegalLoginLogActions
Save LegalLogin actions like acceptance of the policies to Special:Log.

Пример:

$wgLegalLoginPolicies = [
   'Terms and Conditions of Use' => [ // text from MediaWiki:Terms and Conditions of Use, title is the same
      'require scrolling' => true, // user must scroll it to down or open in popup windows before accept
   ],
   'Privacy policy' => [ // text from MediaWiki:Privacy policy
      'captionmsg' => 'privacy-policy-caption', // MediaWiki:Privacy-policy-caption // caption of the policy
   ],
];


$wgLegalLoginQuestions = [
   'I hate this site' => [
      'answer' => false,
      'help' => 'This is a hint',
   ],
   'I love this site' => [
      'answer' => true,
   ]
];

Права участников

legallogin-view-log
Allow to view LegalLogin actions like acceptance of the policies in "Special:Log"