-
Notifications
You must be signed in to change notification settings - Fork 5
/
ExternalServerSettings.php
66 lines (55 loc) · 2.6 KB
/
ExternalServerSettings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
// MediaWiki4Intranet configuration base for external (WWW) installations
// (c) Stas Fomin, Vitaliy Filippov 2008-2020
require_once(dirname(__FILE__).'/ServerSettings.php');
$wgScriptPath = '';
$wgUsePathInfo = true;
$wgArticlePath = "/$1";
# Для коротких URL (http://domain.com/ArticleName) нужно использовать mod_rewrite.
# Конфигурация:
#
# RewriteCond %{THE_REQUEST} ^\S+\s*/*index.php/
# RewriteRule ^index.php/(.*)$ /$1 [R=301,L,NE]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ index.php/$1 [L,B,QSA]
#
# Подробнее см. http://wiki.4intra.net/Mediawiki4Intranet, секция "Короткие URL"
// OpenID is disabled by default because it opens a way for spammers
//require_once("$IP/extensions/OpenID/OpenID.php");
$wgCookieExpiration = 30 * 86400;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['delete'] = false;
$wgGroupPermissions['*']['undelete'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
$wgGroupPermissions['*']['import'] = false;
$wgGroupPermissions['*']['importupload'] = false;
$wgGroupPermissions['*']['wl-postcomment'] = false;
$wgGroupPermissions['user']['delete'] = false;
$wgGroupPermissions['user']['undelete'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['user']['createtalk'] = false;
$wgGroupPermissions['user']['movefile'] = false;
$wgGroupPermissions['user']['wl-postcomment'] = false;
$wgGroupPermissions['autoconfirmed']['createpage'] = true;
$wgGroupPermissions['autoconfirmed']['createtalk'] = true;
$wgGroupPermissions['autoconfirmed']['import'] = true;
$wgGroupPermissions['autoconfirmed']['importupload'] = false;
$wgGroupPermissions['autoconfirmed']['wl-postcomment'] = true;
$wgGroupPermissions['sysop']['delete'] = true;
$wgGroupPermissions['sysop']['createpage'] = true;
$wgGroupPermissions['sysop']['createtalk'] = true;
$wgGroupPermissions['bureaucrat']['delete'] = true;
$wgGroupPermissions['bureaucrat']['createpage'] = true;
$wgGroupPermissions['bureaucrat']['createtalk'] = true;
$wgEmailConfirmToEdit = true;
require_once('extensions/ListFeed/ListFeed.php');
$egListFeedFeedUrlPrefix = '/rss';
$egListFeedFeedDir = $IP.'/rss';
require_once('extensions/ConfirmEdit/ConfirmEdit.php');
require_once('extensions/WikiKCaptcha/WikiKCaptcha.php');
$wgCaptchaClass = 'WikiKCaptcha';
require_once('extensions/SimpleAntiSpamReg/SimpleAntiSpamReg.php');
// In bad cases, use the following:
//$wgAutoConfirmAge = 86400 * 4; # User must wait 4 days after registration before editing