-
Notifications
You must be signed in to change notification settings - Fork 0
/
CommonSettings.php
109 lines (84 loc) · 3.15 KB
/
CommonSettings.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
<?php
# WARNING: This file is publically viewable on the web. Do not put private data here.
#
# This file contains wiki settings common to *all* UESP wikis. Note that some settings
# may be overridden in a site dependant config file.
#
# It is included by LocalSettings.php.
#
$wgSitename = "Starfield Wiki";
$wgMetaNamespace = "StarfieldWiki";
$wgEnableCanonicalServerLink = true;
$wgCanonicalServer = "https://$wgLanguageCode.starfieldwiki.net";
if ($wgLanguageCode == "en") $wgCanonicalServer = "https://starfieldwiki.net";
$wgScriptPath = "/w";
$wgAjaxSearch = true;
$wgAllowUserCss = true;
$wgAllowUserJs = true;
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = false;
$wgResourceBasePath = $wgScriptPath;
$wgAllowSiteCSSOnRestrictedPages = true;
$wgExpensiveParserFunctionLimit = 1000;
$wgLogos = [
'1x' => "https://images.starfieldwiki.net/6/60/Wiki_Logo.png",
'svg' => "https://images.starfieldwiki.net/7/72/Main_logo_white.svg"
];
if ($sfwikiIsDev)
{
//TODO: Language logo?
$wgLogos = [
'1x' => "https://dev.starfieldwiki.net/w/images/8/8b/Dev_Wiki_Logo.png",
'svg' => "https://dev.starfieldwiki.net/w/images/3/31/Main_logo_dev.svg"
];
}
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEmergencyContact = "[email protected]";
$wgPasswordSender = "[email protected]";
$wgEnotifUserTalk = true;
$wgEnotifWatchlist = true;
$wgEmailAuthentication = true;
$wgUploadPath = "//images.starfieldwiki.net";
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgHashedUploadDirectory = true;
array_push($wgFileExtensions, 'ogg', 'zip', 'pcx', 'tga', 'svg', 'webm', 'webp');
$wgUseInstantCommons = false;
$wgCookieDomain = ".starfieldwiki.net";
$wgCookiePrefix = "sfwiki"; # Don't change as it affects the session name used
$wgPingback = true;
$wgShellLocale = "en_US.utf8";
$wgLanguageCode = "en";
# Changing this will log out all existing sessions and prevent custom logins/apps from working.
# $wgAuthenticationTokenVersion = "1";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "https://creativecommons.org/licenses/by-sa/4.0/";
$wgRightsText = "Creative Commons Attribution-ShareAlike";
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by-sa.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "darkvector";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Timeless' );
wfLoadSkin( 'Vector' );
wfLoadSkin( 'DarkVector' );
$wgAutoConfirmAge = 3600*24*4;
$wgAutoConfirmCount = 10;
$wgUpgradeKey = $sfWikiSecretKey;
$wgSecretKey = $sfWikiUpgradeKey;
$wgGalleryOptions['imageWidth'] = 200;
$wgGalleryOptions['imageHeight'] = 200;
$wgGalleryOptions['mode'] = 'packed';
if ($sfwikiIsDev)
{
$wgUploadPath = "//dev.starfieldwiki.net/w/images";
}