Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13355
LocalSettings.php
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 3:06 AM
2014-11-22 03:06:16 (UTC+0)
Size
11 KB
Referenced Files
None
Subscribers
None
LocalSettings.php
View Options
<?php
$IP
=
"/www/wiki.toolserver.org/w"
;
$path
=
array
(
$IP
,
"$IP/includes"
,
"$IP/languages"
);
set_include_path
(
implode
(
PATH_SEPARATOR
,
$path
)
.
PATH_SEPARATOR
.
get_include_path
()
);
require_once
(
"$IP/includes/DefaultSettings.php"
);
if
(
$wgCommandLineMode
)
{
if
(
isset
(
$_SERVER
)
&&
array_key_exists
(
'REQUEST_METHOD'
,
$_SERVER
)
)
{
die
(
"This script must be run from the command line
\n
"
);
}
}
$wgSitename
=
"Toolserver wiki"
;
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
$wgScriptPath
=
"/w"
;
$wgScriptExtension
=
".php"
;
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgEnableEmail
=
true
;
$wgEnableUserEmail
=
true
;
$wgEmergencyContact
=
"ts-admins@toolserver.org"
;
$wgPasswordSender
=
"ts-admins@toolserver.org"
;
## For a detailed description of the following switches see
## http://www.mediawiki.org/wiki/Extension:Email_notification
## and http://www.mediawiki.org/wiki/Extension:Email_notification
## There are many more options for fine tuning available see
## /includes/DefaultSettings.php
## UPO means: this is also a user preference option
$wgEnotifUserTalk
=
true
;
# UPO
$wgEnotifWatchlist
=
true
;
# UPO
$wgEmailAuthentication
=
true
;
$wgDBtype
=
"postgres"
;
$wgDBserver
=
"(redacted)"
;
$wgDBname
=
"(redacted)"
;
$wgDBuser
=
"(redacted)"
;
$wgDBpassword
=
"(redacted)"
;
# MySQL specific settings
$wgDBprefix
=
""
;
# MySQL table options to use during installation or update
$wgDBTableOptions
=
"TYPE=InnoDB"
;
# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5
=
false
;
# Postgres specific settings
$wgDBport
=
"(redacted)"
;
$wgDBmwschema
=
"(redacted)"
;
$wgDBts2schema
=
"(redacted)"
;
## Shared memory settings
$wgMainCacheType
=
CACHE_NONE
;
#$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads
=
false
;
# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;
## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX
=
false
;
$wgLocalInterwiki
=
$wgSitename
;
$wgLanguageCode
=
"en"
;
$wgProxyKey
=
"(redacted)"
;
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin
=
'monobook'
;
## 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.
$wgEnableCreativeCommonsRdf
=
true
;
$wgRightsPage
=
""
;
# Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl
=
"http://creativecommons.org/licenses/by-sa/3.0/"
;
$wgRightsText
=
"CC-BY-SA-3.0"
;
$wgRightsIcon
=
"//i.creativecommons.org/l/by-sa/3.0/88x31.png"
;
# $wgRightsCode = "[license_code]"; # Not yet used
$wgDiff3
=
""
;
# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$configdate
=
gmdate
(
'YmdHis'
,
@
filemtime
(
__FILE__
)
);
$wgCacheEpoch
=
max
(
$wgCacheEpoch
,
$configdate
);
$actions
=
array
(
'view'
,
'edit'
,
'watch'
,
'unwatch'
,
'delete'
,
'revert'
,
'rollback'
,
'protect'
,
'unprotect'
,
'info'
,
'markpatrolled'
,
'validate'
,
'render'
,
'deletetrackback'
,
'print'
,
'dublincore'
,
'creativecommons'
,
'credits'
,
'submit'
,
'viewsource'
,
'history'
,
'purge'
);
foreach
(
$actions
as
$a
)
$wgActionPaths
[
$a
]
=
"/$a/$1"
;
$wgArticlePath
=
"/view/$1"
;
$wgDiff3
=
'/opt/diffutils/bin/diff3'
;
$wgEnableUploads
=
true
;
$wgUseImageMagick
=
true
;
#$wgImageMagickConvertCommand = '/usr/local/bin/convert';
$JIRAs
=
array
(
'toolserver'
=>
array
(
'user'
=>
'(redacted)'
,
'password'
=>
'(redacted)'
,
'url'
=>
'(redacted)'
,
),
);
require_once
(
"/www/wiki.toolserver.org/extensions/JIRA/JIRA.php"
);
$JIRAdefault
=
'toolserver'
;
$wgLogo
=
'/w/tslogo.png'
;
$wgMetaNamespace
=
'Toolserver'
;
$wgShowIPinHeader
=
false
;
$wgAllowRealName
=
false
;
$wgUseRCPatrol
=
true
;
$wgEnableAPI
=
true
;
$wgEnableWriteAPI
=
true
;
$wgAllowUserJs
=
true
;
$wgAllowUserCss
=
true
;
require_once
(
"/www/wiki.toolserver.org/extensions/ParserFunctions/ParserFunctions.php"
);
#require_once("/export/mediawiki/extensions/Newuserlog/Newuserlog.php");
$wgRC2UDPAddress
=
'127.0.0.1'
;
$wgRC2UDPPort
=
6566
;
$wgRC2UDPPrefix
=
''
;
$wgUseMemCached
=
true
;
$wgMemCachedDebug
=
false
;
# Will be set to false in Setup.php, if the server isn't working
$wgMemCachedServers
=
array
(
'127.0.0.1:11211'
);
$wgMemCachedPersistent
=
false
;
$wgMainCacheType
=
CACHE_MEMCACHED
;
$wgImportSources
=
array
(
"m"
);
require_once
(
"/www/wiki.toolserver.org/extensions/CrowdAuthentication/CrowdAuthentication.php"
);
$caApplicationName
=
'mediawiki'
;
$caApplicationPassword
=
'(redacted)'
;
$caDefaultGroups
=
array
(
'jira-users'
,
'confluence-users'
);
$caCrowdServerUrl
=
'http://127.0.0.1:8080/services'
;
$caImportGroups
=
true
;
$caOverwriteLocalGroups
=
false
;
$wgAuth
=
new
CrowdAuthenticator
();
require_once
(
"/www/wiki.toolserver.org/extensions/Renameuser/SpecialRenameuser.php"
);
#on a second thought, probably not a good idea in the face of sso
require_once
(
"/www/wiki.toolserver.org/extensions/ConfirmEdit/ConfirmEdit.php"
);
$wgGroupPermissions
=
array
();
// Implicit group for all visitors
$wgGroupPermissions
[
'*'
][
'createaccount'
]
=
true
;
$wgGroupPermissions
[
'*'
][
'read'
]
=
true
;
$wgGroupPermissions
[
'*'
][
'edit'
]
=
true
;
$wgGroupPermissions
[
'*'
][
'createpage'
]
=
false
;
# 2011-03-05 river
$wgGroupPermissions
[
'*'
][
'createtalk'
]
=
false
;
$wgGroupPermissions
[
'*'
][
'writeapi'
]
=
true
;
// Implicit group for all logged-in accounts
$wgGroupPermissions
[
'user'
][
'move'
]
=
true
;
$wgGroupPermissions
[
'user'
][
'read'
]
=
true
;
$wgGroupPermissions
[
'user'
][
'edit'
]
=
true
;
$wgGroupPermissions
[
'user'
][
'createpage'
]
=
false
;
$wgGroupPermissions
[
'user'
][
'createtalk'
]
=
true
;
$wgGroupPermissions
[
'user'
][
'upload'
]
=
true
;
$wgGroupPermissions
[
'user'
][
'reupload'
]
=
true
;
$wgGroupPermissions
[
'user'
][
'reupload-shared'
]
=
true
;
$wgGroupPermissions
[
'user'
][
'minoredit'
]
=
true
;
$wgGroupPermissions
[
'user'
][
'purge'
]
=
true
;
// can use ?action=purge without clicking "ok"
// Implicit group for accounts that pass $wgAutoConfirmAge
$wgGroupPermissions
[
'autoconfirmed'
][
'autoconfirmed'
]
=
true
;
$wgGroupPermissions
[
'autoconfirmed'
][
'createpage'
]
=
true
;
// Implicit group for accounts with confirmed email addresses
// This has little use when email address confirmation is off
$wgGroupPermissions
[
'emailconfirmed'
][
'emailconfirmed'
]
=
true
;
// Users with bot privilege can have their edits hidden
// from various log pages by default
$wgGroupPermissions
[
'bot'
][
'bot'
]
=
true
;
$wgGroupPermissions
[
'bot'
][
'autoconfirmed'
]
=
true
;
$wgGroupPermissions
[
'bot'
][
'nominornewtalk'
]
=
true
;
$wgGroupPermissions
[
'bot'
][
'autopatrol'
]
=
true
;
$wgGroupPermissions
[
'bot'
][
'apihighlimits'
]
=
true
;
// Most extra permission abilities go to this group
$wgGroupPermissions
[
'mw-sysops'
][
'block'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'createaccount'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'delete'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'undelete'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'deletedhistory'
]
=
true
;
// can view deleted history entries, but not see or restore the text
$wgGroupPermissions
[
'mw-sysops'
][
'editinterface'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'editusercssjs'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'import'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'importupload'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'move'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'patrol'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'autopatrol'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'protect'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'proxyunbannable'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'rollback'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'trackback'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'upload'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'reupload'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'reupload-shared'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'unwatchedpages'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'autoconfirmed'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'upload_by_url'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'ipblock-exempt'
]
=
true
;
$wgGroupPermissions
[
'mw-sysops'
][
'blockemail'
]
=
true
;
// Permission to change users' group assignments
$wgGroupPermissions
[
'mw-bureaucrats'
][
'userrights'
]
=
true
;
$wgGroupPermissions
[
'*'
][
'skipcaptcha'
]
=
false
;
$wgGroupPermissions
[
'user'
][
'skipcaptcha'
]
=
false
;
$wgGroupPermissions
[
'autoconfirmed'
][
'skipcaptcha'
]
=
true
;
$wgGroupPermissions
[
'bot'
][
'skipcaptcha'
]
=
true
;
// registered bots
$wgGroupPermissions
[
'mw-sysops'
][
'skipcaptcha'
]
=
true
;
$wgCaptchaTriggers
[
'edit'
]
=
false
;
$wgCaptchaTriggers
[
'create'
]
=
true
;
$wgCaptchaTriggers
[
'addurl'
]
=
true
;
$wgCaptchaTriggers
[
'createaccount'
]
=
true
;
$wgCaptchaTriggers
[
'badlogin'
]
=
true
;
$wgGroupPermissions
[
'ts-users'
]
=
$wgGroupPermissions
[
'mw-sysops'
];
$wgGroupPermissions
[
'admins'
][
'editpolicy'
]
=
true
;
$wgGroupPermissions
[
'admins'
][
'edithomepage'
]
=
true
;
$wgRestrictionTypes
=
array
(
'edit'
,
'move'
,
'delete'
);
$wgRestrictionLevels
=
array
(
''
,
'autoconfirmed'
,
'sysop'
,
'editpolicy'
,
'edithomepage'
);
require_once
(
"/www/wiki.toolserver.org/extensions/SpamBlacklist/SpamBlacklist.php"
);
$wgSpamBlacklistFiles
=
array
(
"http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw"
);
require_once
(
"/www/wiki.toolserver.org/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php"
);
require_once
(
"/www/wiki.toolserver.org/extensions/Gadgets/Gadgets.php"
);
require_once
(
"/www/wiki.toolserver.org/extensions/Cite/Cite.php"
);
require_once
(
"/www/wiki.toolserver.org/extensions/HTMLets/HTMLets.php"
);
$wgHTMLetsDirectory
=
"/opt/local/htmlets"
;
$wgUseTidy
=
false
;
$wgNamespacesWithSubpages
[
0
]
=
true
;
#$wgShowExceptionDetails = true;
$wgGroupsAddToSelf
=
array
(
'query-service'
);
$wgGroupsRemoveFromSelf
=
array
(
'query-service'
);
$wgDefaultSkin
=
'modern'
;
$wgSVGConverters
[
'rsvg-broken'
]
=
'$path/rsvg-convert -w $width -h $height -o $output < $input'
;
#$wgSVGConverter = 'imgserv';
$wgSVGConverter
=
'rsvg-broken'
;
$wgSVGConverterPath
=
'/opt/ts/bin'
;
$wgFileExtensions
[]
=
'svg'
;
$wgImageMagickConvertCommand
=
'/opt/ts/bin/convert'
;
$wgShellLocale
=
"en_US.UTF-8"
;
$wgExtraNamespaces
[
100
]
=
"Admin"
;
$wgExtraNamespaces
[
101
]
=
"Admin_talk"
;
$wgAllowDisplayTitle
=
true
;
require_once
(
"/www/wiki.toolserver.org/extensions/Nuke/Nuke.php"
);
#include_once("/www/wiki.toolserver.org/extensions/CheckUser/CheckUser.php");
$wgShowExceptionDetails
=
true
;
$wgAutoConfirmAge
=
86400
*
3
;
$wgAutoConfirmCount
=
3
;
$wgGroupPermissions
[
'admins'
][
'renameuser'
]
=
true
;
File Metadata
Details
Attached
Mime Type
text/x-php
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12793
Default Alt Text
LocalSettings.php (11 KB)
Attached To
Mode
T62222: Set up a clone of wiki.toolserver.org
Attached
Detach File
Event Timeline
Log In to Comment