-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommonLocal.php
110 lines (85 loc) · 4.12 KB
/
CommonLocal.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
if (!defined('MEDIAWIKI')) die();
# Validator
require_once("$IP/extensions/Validator/Validator.php");
// For WIndows ImageMagickConvert
//
// $wgImageMagickConvertCommand='C:/Program Files/ImageMagick/convert.exe';
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'vector'; #Must be all lower case
#$wgLogo = "$wgScriptPath/extensions/your135x135.png";
#$wgFavicon = "$wgScriptPath/extensions/favicon.ico";
$wgPageSecurityAllowSysop = true;
$wgShowIPinHeader = false;
#
# Customizations from here down
#
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEnotifWatchlist = true;
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'pdf', 'ppt', 'pps', 'msg', 'txt', 'rtf', 'dot', 'xlt', 'chm' , 'svg', 'mpp', 'xlsx', 'docx', 'xlsm');
# $wgVerifyMimeType = false;
# $wgStrictFileExtensions = false;
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
$wgUseImageResize = true;
# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";
$wgAllowUserJs = true;
$wgAllowUserCss = true;
# require that users log in to read
# $wgGroupPermissions['*']['read'] = false;
# allow these pages for anonymous users
$wgWhitelistRead = array( "Main Page","Special:Userlogin","Special:ConfirmEmail","Special:UserLogout",
"Special:Invalidateemail","-","MediaWiki:Extraeditbuttons.js",
"Template:TblStyle","MediaWiki:Common.css","MediaWiki:Common.js",
);
#Set Default Timezone
$wgLocaltimezone = 'America/New_York';
# $oldtz = getenv("TZ");
# putenv("TZ=$wgLocaltimezone");
date_default_timezone_set($wgLocaltimezone);
# Versions before 1.7.0 used $wgLocalTZoffset as hours.
# After 1.7.0 offset as minutes
# $wgLocalTZoffset = date("Z") / 60;
# putenv("TZ=$oldtz");
# remove the link to the talk page for non-logged in users
$wgShowIPinHeader = false;
# Permission keys given to users in each group.
# All users are implicitly in the '*' group including anonymous visitors;
# logged-in users are all implicitly in the 'user' group. These will be
# combined with the permissions of all groups that a given user is listed
# in in the user_groups table.
require_once("$IP/extensions/WikiConfig/LockdownSetupPermissions.php");
require_once("$IP/extensions/Lockdown/Lockdown.php");
require_once("$IP/extensions/InputBox/InputBox.php");
require_once("$IP/extensions/NewUserNotif/NewUserNotif.php");
require_once("$IP/extensions/ConditionalShowSection/ConditionalShowSection.php");
#require_once("$IP/extensions/DiscussionThreading/DiscussionThreading.php");
require_once("$IP/extensions/ParserFunctions/ParserFunctions.php");
# require_once ("$IP/extensions/StringFunctions/StringFunctions.php");
$wgPFEnableStringFunctions = true;
require_once ("$IP/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php");
require_once("$IP/extensions/NSFileRepo/NSFileRepo.php");
# Semantic Mediawiki
require_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php");
require_once("$IP/extensions/WikiConfig/ConfigPoweredBy.php");
# Set up SMW searchable namespaces
foreach($lockdownSMWSearchable as $taddlinkkey)
$smwgNamespacesWithSemanticLinks[constant("NS_".strtoupper($taddlinkkey))] = true;
# Set up SMW searchable talk namespaces
foreach($lockdownSMWSearchable as $taddlinkkey)
$smwgNamespacesWithSemanticLinks[constant("NS_".strtoupper($taddlinkkey)."_talk")] = true;
# override or add any other namespace searchability
foreach($smwgNamespacesWithSemanticLinksAdd as $taddlinkkey => $taddlink)
$smwgNamespacesWithSemanticLinks[$taddlinkkey] = $taddlink;
enableSemantics($_SERVER['SERVER_NAME']);
include_once("$IP/extensions/SemanticForms/SemanticForms.php");
require_once("$IP/extensions/DataTransfer/DataTransfer.php");
require_once("$IP/extensions/HeaderTabs/HeaderTabs.php");
$htUseHistory = true;
$wgEnableParserCache = false;
$wgCachePages = false;
require_once("$IP/extensions/WikiConfig/LockdownConfigurePermissions.php");