LocalSettings.php: Difference between revisions
(New page: Category:Elanthipedia Information) |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Category:Elanthipedia Information]] |
[[Category:Elanthipedia Information]] |
||
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" ); |
|||
require_once( "includes/DefaultSettings.php" ); |
|||
require_once( "$IP/extensions/ImageMap/ImageMap.php" ); |
|||
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); |
|||
require_once("$IP/extensions/Newuserlog/Newuserlog.php"); |
|||
require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" ); |
|||
#require_once( "{$IP}/extensions/Cite/Cite.php" ); |
|||
# If PHP's memory limit is very low, some operations may fail. |
|||
ini_set( 'memory_limit', '20M' ); |
|||
if ( $wgCommandLineMode ) { |
|||
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { |
|||
die( "This script must be run from the command line\n" ); |
|||
} |
|||
} elseif ( empty( $wgNoOutputBuffer ) ) { |
|||
## Compress output if the browser supports it |
|||
# if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' ); |
|||
} |
|||
$wgSitename = "Elanthipedia"; |
|||
$wgScriptPath = "/w"; |
|||
$wgScript = "$wgScriptPath/index.php"; |
|||
$wgRedirectScript = "$wgScriptPath/redirect.php"; |
|||
## If using PHP as a CGI module, use the ugly URLs |
|||
$wgArticlePath = "/wiki/$1"; |
|||
#$wgArticlePath = "$wgScript?title=$1"; |
|||
$wgStylePath = "$wgScriptPath/skins"; |
|||
$wgStyleDirectory = "$IP/skins"; |
|||
$wgLogo = "$wgStylePath/common/images/wiki.png"; |
|||
$wgUploadPath = "$wgScriptPath/images"; |
|||
$wgUploadDirectory = "$IP/images"; |
|||
$wgEnableEmail = true; |
|||
$wgEnableUserEmail = true; |
|||
$wgEmergencyContact = "wiki@elanthipedia.com"; |
|||
$wgPasswordSender = "Elanthipedia Wiki <wiki@elanthipedia.com>"; |
|||
$wgEnableParserCache = false; |
|||
$wgCachePages = false; |
|||
## For a detailed description of the following switches see |
|||
## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent |
|||
## 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; |
|||
$wgEmailConfirmToEdit = true; |
|||
# If you're on MySQL 3.x, this next line must be FALSE: |
|||
$wgDBmysql4 = false; |
|||
$wgSaveDeletedFiles = true; |
|||
$wgFileStore['deleted']['directory'] = "$IP/imgundelete"; |
|||
# Experimental charset support for MySQL 4.1/5.0. |
|||
$wgDBmysql5 = false; |
|||
## Shared memory settings |
|||
$wgMainCacheType = CACHE_NONE; |
|||
$wgMemCachedServers = array(); |
|||
## To enable image uploads, make sure the 'images' directory |
|||
## is writable, then uncomment this: |
|||
$wgEnableUploads = true; |
|||
$wgUseImageResize = true; |
|||
$wgUseImageMagick = true; |
|||
$wgImageMagickConvertCommand = "/usr/local/bin/convert"; |
|||
$wgFileExtensions = array('png','jpg','jpeg','gif','bmp'); |
|||
## 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 = true; |
|||
$wgMathPath = "{$wgUploadPath}/math"; |
|||
$wgMathDirectory = "{$wgUploadDirectory}/math"; |
|||
$wgTmpDirectory = "{$wgUploadDirectory}/tmp"; |
|||
$wgLocalInterwiki = $wgSitename; |
|||
$wgLanguageCode = "en"; |
|||
## Default skin: you can change the default skin. Use the internal symbolic |
|||
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': |
|||
# $wgDefaultSkin = 'monobook'; |
|||
$wgShowIPinHeader = false; # For non-logged in users |
|||
## 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 = ""; |
|||
$wgRightsText = ""; |
|||
$wgRightsIcon = ""; |
|||
# $wgRightsCode = ""; # Not yet used |
|||
$wgDiff3 = "/usr/bin/diff3"; |
|||
# |
|||
# 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. |
|||
# |
|||
# This replaces wgWhitelistAccount and wgWhitelistEdit |
|||
# |
|||
# The following line should be commented, otherwise these settings will |
|||
# throw away the settings on DefaultSettings.php (you probably don't want this). |
|||
# With this line commented you will only overwrite the settings you explicitly |
|||
# define here (that's what you probably want). |
|||
#$wgGroupPermissions = array(); |
|||
# $wgGroupPermissions['*' ]['createaccount'] = true; |
|||
# $wgGroupPermissions['*' ]['read'] = true; |
|||
# $wgGroupPermissions['*' ]['edit'] = false; |
|||
$wgGroupPermissions['*']['createaccount'] = true; |
|||
$wgGroupPermissions['*']['read'] = true; |
|||
$wgGroupPermissions['*']['edit'] = false; |
|||
$wgGroupPermissions['*']['createpage'] = false; |
|||
$wgGroupPermissions['*']['createtalk'] = false; |
|||
$wgGroupPermissions['localop']['block'] = true; |
|||
$wgGroupPermissions['localop']['createaccount'] = false; |
|||
$wgGroupPermissions['localop']['delete'] = true; |
|||
$wgGroupPermissions['localop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text |
|||
$wgGroupPermissions['localop']['editinterface'] = false; |
|||
$wgGroupPermissions['localop']['import'] = false; |
|||
$wgGroupPermissions['localop']['importupload'] = false; |
|||
$wgGroupPermissions['localop']['move'] = true; |
|||
$wgGroupPermissions['localop']['patrol'] = true; |
|||
$wgGroupPermissions['localop']['autopatrol'] = false; |
|||
$wgGroupPermissions['localop']['protect'] = true; |
|||
$wgGroupPermissions['localop']['proxyunbannable'] = false; |
|||
$wgGroupPermissions['localop']['rollback'] = true; |
|||
$wgGroupPermissions['localop']['trackback'] = false; |
|||
$wgGroupPermissions['localop']['upload'] = true; |
|||
$wgGroupPermissions['localop']['reupload'] = false; |
|||
$wgGroupPermissions['localop']['reupload-shared'] = false; |
|||
$wgGroupPermissions['localop']['unwatchedpages'] = false; |
|||
$wgGroupPermissions['localop']['autoconfirmed'] = true; |
|||
$wgGroupPermissions['localop']['upload_by_url'] = false; |
|||
$wgGroupPermissions['localop']['ipblock-exempt'] = false; |
|||
$wgRawHtml = 0; |
|||
// $wgEnableUploads = true; |
|||
Revision as of 20:51, 26 March 2007
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" ); require_once( "includes/DefaultSettings.php" ); require_once( "$IP/extensions/ImageMap/ImageMap.php" ); require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); require_once("$IP/extensions/Newuserlog/Newuserlog.php"); require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );
- require_once( "{$IP}/extensions/Cite/Cite.php" );
- If PHP's memory limit is very low, some operations may fail.
ini_set( 'memory_limit', '20M' );
if ( $wgCommandLineMode ) {
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
die( "This script must be run from the command line\n" );
}
} elseif ( empty( $wgNoOutputBuffer ) ) {
## Compress output if the browser supports it
- if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}
$wgSitename = "Elanthipedia";
$wgScriptPath = "/w"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
- If using PHP as a CGI module, use the ugly URLs
$wgArticlePath = "/wiki/$1";
- $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/skins"; $wgStyleDirectory = "$IP/skins"; $wgLogo = "$wgStylePath/common/images/wiki.png"; $wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images";
$wgEnableEmail = true; $wgEnableUserEmail = true;
$wgEmergencyContact = "wiki@elanthipedia.com"; $wgPasswordSender = "Elanthipedia Wiki <wiki@elanthipedia.com>";
$wgEnableParserCache = false; $wgCachePages = false;
- For a detailed description of the following switches see
- http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent
- 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; $wgEmailConfirmToEdit = true;
- If you're on MySQL 3.x, this next line must be FALSE:
$wgDBmysql4 = false;
$wgSaveDeletedFiles = true; $wgFileStore['deleted']['directory'] = "$IP/imgundelete";
- Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;
- Shared memory settings
$wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array();
- To enable image uploads, make sure the 'images' directory
- is writable, then uncomment this:
$wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/local/bin/convert";
$wgFileExtensions = array('png','jpg','jpeg','gif','bmp');
- 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 = true;
$wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgLocalInterwiki = $wgSitename;
$wgLanguageCode = "en";
- Default skin: you can change the default skin. Use the internal symbolic
- names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
- $wgDefaultSkin = 'monobook';
$wgShowIPinHeader = false; # For non-logged in users
- 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 = ""; $wgRightsText = ""; $wgRightsIcon = "";
- $wgRightsCode = ""; # Not yet used
$wgDiff3 = "/usr/bin/diff3";
# # 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. # # This replaces wgWhitelistAccount and wgWhitelistEdit # # The following line should be commented, otherwise these settings will # throw away the settings on DefaultSettings.php (you probably don't want this). # With this line commented you will only overwrite the settings you explicitly # define here (that's what you probably want). #$wgGroupPermissions = array();
- $wgGroupPermissions['*' ]['createaccount'] = true;
- $wgGroupPermissions['*' ]['read'] = true;
- $wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = true; $wgGroupPermissions['*']['read'] = true; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false;
$wgGroupPermissions['localop']['block'] = true; $wgGroupPermissions['localop']['createaccount'] = false; $wgGroupPermissions['localop']['delete'] = true; $wgGroupPermissions['localop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text $wgGroupPermissions['localop']['editinterface'] = false; $wgGroupPermissions['localop']['import'] = false; $wgGroupPermissions['localop']['importupload'] = false; $wgGroupPermissions['localop']['move'] = true; $wgGroupPermissions['localop']['patrol'] = true; $wgGroupPermissions['localop']['autopatrol'] = false; $wgGroupPermissions['localop']['protect'] = true; $wgGroupPermissions['localop']['proxyunbannable'] = false; $wgGroupPermissions['localop']['rollback'] = true; $wgGroupPermissions['localop']['trackback'] = false; $wgGroupPermissions['localop']['upload'] = true; $wgGroupPermissions['localop']['reupload'] = false; $wgGroupPermissions['localop']['reupload-shared'] = false; $wgGroupPermissions['localop']['unwatchedpages'] = false; $wgGroupPermissions['localop']['autoconfirmed'] = true; $wgGroupPermissions['localop']['upload_by_url'] = false; $wgGroupPermissions['localop']['ipblock-exempt'] = false;
$wgRawHtml = 0;
// $wgEnableUploads = true;