LocalSettings.php: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" ); |
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" ); |
||
require_once( "includes/DefaultSettings.php" ); |
require_once( "includes/DefaultSettings.php" ); |
||
require_once( "$IP/extensions/ImageMap/ImageMap.php" ); |
require_once( "$IP/extensions/ImageMap/ImageMap.php" ); |
||
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); |
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); |
||
require_once("$IP/extensions/Newuserlog/Newuserlog.php"); |
require_once("$IP/extensions/Newuserlog/Newuserlog.php"); |
||
require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" ); |
require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" ); |
||
#require_once( "{$IP}/extensions/Cite/Cite.php" ); |
#require_once( "{$IP}/extensions/Cite/Cite.php" ); |
||
# If PHP's memory limit is very low, some operations may fail. |
# If PHP's memory limit is very low, some operations may fail. |
||
ini_set( 'memory_limit', '20M' ); |
ini_set( 'memory_limit', '20M' ); |
||
if ( $wgCommandLineMode ) { |
if ( $wgCommandLineMode ) { |
||
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { |
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { |
||
die( "This script must be run from the command line\n" ); |
die( "This script must be run from the command line\n" ); |
||
} |
} |
||
} elseif ( empty( $wgNoOutputBuffer ) ) { |
} elseif ( empty( $wgNoOutputBuffer ) ) { |
||
## Compress output if the browser supports it |
## Compress output if the browser supports it |
||
# if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' ); |
# if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' ); |
||
} |
} |
||
$wgSitename = "Elanthipedia"; |
$wgSitename = "Elanthipedia"; |
||
$wgScriptPath = "/w"; |
$wgScriptPath = "/w"; |
||
$wgScript = "$wgScriptPath/index.php"; |
$wgScript = "$wgScriptPath/index.php"; |
||
$wgRedirectScript = "$wgScriptPath/redirect.php"; |
$wgRedirectScript = "$wgScriptPath/redirect.php"; |
||
## If using PHP as a CGI module, use the ugly URLs |
## If using PHP as a CGI module, use the ugly URLs |
||
$wgArticlePath = "/wiki/$1"; |
$wgArticlePath = "/wiki/$1"; |
||
#$wgArticlePath = "$wgScript?title=$1"; |
#$wgArticlePath = "$wgScript?title=$1"; |
||
$wgStylePath = "$wgScriptPath/skins"; |
$wgStylePath = "$wgScriptPath/skins"; |
||
$wgStyleDirectory = "$IP/skins"; |
$wgStyleDirectory = "$IP/skins"; |
||
$wgLogo = "$wgStylePath/common/images/wiki.png"; |
$wgLogo = "$wgStylePath/common/images/wiki.png"; |
||
$wgUploadPath = "$wgScriptPath/images"; |
$wgUploadPath = "$wgScriptPath/images"; |
||
$wgUploadDirectory = "$IP/images"; |
$wgUploadDirectory = "$IP/images"; |
||
$wgEnableEmail = true; |
$wgEnableEmail = true; |
||
$wgEnableUserEmail = true; |
$wgEnableUserEmail = true; |
||
$wgEmergencyContact = "wiki@elanthipedia.com"; |
$wgEmergencyContact = "wiki@elanthipedia.com"; |
||
$wgPasswordSender = "Elanthipedia Wiki <wiki@elanthipedia.com>"; |
$wgPasswordSender = "Elanthipedia Wiki <wiki@elanthipedia.com>"; |
||
$wgEnableParserCache = false; |
$wgEnableParserCache = false; |
||
$wgCachePages = false; |
$wgCachePages = false; |
||
## For a detailed description of the following switches see |
## For a detailed description of the following switches see |
||
## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent |
## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent |
||
## There are many more options for fine tuning available see |
## There are many more options for fine tuning available see |
||
## /includes/DefaultSettings.php |
## /includes/DefaultSettings.php |
||
## UPO means: this is also a user preference option |
## UPO means: this is also a user preference option |
||
$wgEnotifUserTalk = true; # UPO |
$wgEnotifUserTalk = true; # UPO |
||
$wgEnotifWatchlist = true; # UPO |
$wgEnotifWatchlist = true; # UPO |
||
$wgEmailAuthentication = true; |
$wgEmailAuthentication = true; |
||
$wgEmailConfirmToEdit = true; |
$wgEmailConfirmToEdit = true; |
||
# If you're on MySQL 3.x, this next line must be FALSE: |
# If you're on MySQL 3.x, this next line must be FALSE: |
||
$wgDBmysql4 = false; |
$wgDBmysql4 = false; |
||
$wgSaveDeletedFiles = true; |
$wgSaveDeletedFiles = true; |
||
$wgFileStore['deleted']['directory'] = "$IP/imgundelete"; |
$wgFileStore['deleted']['directory'] = "$IP/imgundelete"; |
||
# Experimental charset support for MySQL 4.1/5.0. |
# Experimental charset support for MySQL 4.1/5.0. |
||
$wgDBmysql5 = false; |
$wgDBmysql5 = false; |
||
## Shared memory settings |
## Shared memory settings |
||
$wgMainCacheType = CACHE_NONE; |
$wgMainCacheType = CACHE_NONE; |
||
$wgMemCachedServers = array(); |
$wgMemCachedServers = array(); |
||
## To enable image uploads, make sure the 'images' directory |
## To enable image uploads, make sure the 'images' directory |
||
## is writable, then uncomment this: |
## is writable, then uncomment this: |
||
$wgEnableUploads = true; |
$wgEnableUploads = true; |
||
$wgUseImageResize = true; |
$wgUseImageResize = true; |
||
$wgUseImageMagick = true; |
$wgUseImageMagick = true; |
||
$wgImageMagickConvertCommand = "/usr/local/bin/convert"; |
$wgImageMagickConvertCommand = "/usr/local/bin/convert"; |
||
$wgFileExtensions = array('png','jpg','jpeg','gif','bmp'); |
$wgFileExtensions = array('png','jpg','jpeg','gif','bmp'); |
||
## If you want to use image uploads under safe mode, |
## If you want to use image uploads under safe mode, |
||
## create the directories images/archive, images/thumb and |
## create the directories images/archive, images/thumb and |
||
## images/temp, and make them all writable. Then uncomment |
## images/temp, and make them all writable. Then uncomment |
||
## this, if it's not already uncommented: |
## this, if it's not already uncommented: |
||
# $wgHashedUploadDirectory = false; |
# $wgHashedUploadDirectory = false; |
||
## If you have the appropriate support software installed |
## If you have the appropriate support software installed |
||
## you can enable inline LaTeX equations: |
## you can enable inline LaTeX equations: |
||
# $wgUseTeX = true; |
# $wgUseTeX = true; |
||
$wgMathPath = "{$wgUploadPath}/math"; |
$wgMathPath = "{$wgUploadPath}/math"; |
||
$wgMathDirectory = "{$wgUploadDirectory}/math"; |
$wgMathDirectory = "{$wgUploadDirectory}/math"; |
||
$wgTmpDirectory = "{$wgUploadDirectory}/tmp"; |
$wgTmpDirectory = "{$wgUploadDirectory}/tmp"; |
||
$wgLocalInterwiki = $wgSitename; |
$wgLocalInterwiki = $wgSitename; |
||
$wgLanguageCode = "en"; |
$wgLanguageCode = "en"; |
||
## Default skin: you can change the default skin. Use the internal symbolic |
## Default skin: you can change the default skin. Use the internal symbolic |
||
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': |
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': |
||
# $wgDefaultSkin = 'monobook'; |
# $wgDefaultSkin = 'monobook'; |
||
$wgShowIPinHeader = false; # For non-logged in users |
$wgShowIPinHeader = false; # For non-logged in users |
||
## For attaching licensing metadata to pages, and displaying an |
## For attaching licensing metadata to pages, and displaying an |
||
## appropriate copyright notice / icon. GNU Free Documentation |
## appropriate copyright notice / icon. GNU Free Documentation |
||
## License and Creative Commons licenses are supported so far. |
## License and Creative Commons licenses are supported so far. |
||
# $wgEnableCreativeCommonsRdf = true; |
# $wgEnableCreativeCommonsRdf = true; |
||
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright |
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright |
||
$wgRightsUrl = ""; |
$wgRightsUrl = ""; |
||
$wgRightsText = ""; |
$wgRightsText = ""; |
||
$wgRightsIcon = ""; |
$wgRightsIcon = ""; |
||
# $wgRightsCode = ""; # Not yet used |
# $wgRightsCode = ""; # Not yet used |
||
$wgDiff3 = "/usr/bin/diff3"; |
$wgDiff3 = "/usr/bin/diff3"; |
||
| Line 127: | Line 127: | ||
# define here (that's what you probably want). |
# define here (that's what you probably want). |
||
#$wgGroupPermissions = array(); |
#$wgGroupPermissions = array(); |
||
# $wgGroupPermissions['*' ]['createaccount'] = true; |
# $wgGroupPermissions['*' ]['createaccount'] = true; |
||
# $wgGroupPermissions['*' ]['read'] = true; |
# $wgGroupPermissions['*' ]['read'] = true; |
||
# $wgGroupPermissions['*' ]['edit'] = false; |
# $wgGroupPermissions['*' ]['edit'] = false; |
||
$wgGroupPermissions['*']['createaccount'] = true; |
$wgGroupPermissions['*']['createaccount'] = true; |
||
$wgGroupPermissions['*']['read'] = true; |
$wgGroupPermissions['*']['read'] = true; |
||
$wgGroupPermissions['*']['edit'] = false; |
$wgGroupPermissions['*']['edit'] = false; |
||
$wgGroupPermissions['*']['createpage'] = false; |
$wgGroupPermissions['*']['createpage'] = false; |
||
$wgGroupPermissions['*']['createtalk'] = false; |
$wgGroupPermissions['*']['createtalk'] = false; |
||
$wgGroupPermissions['localop']['block'] = true; |
$wgGroupPermissions['localop']['block'] = true; |
||
$wgGroupPermissions['localop']['createaccount'] = false; |
$wgGroupPermissions['localop']['createaccount'] = false; |
||
$wgGroupPermissions['localop']['delete'] = true; |
$wgGroupPermissions['localop']['delete'] = true; |
||
$wgGroupPermissions['localop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text |
$wgGroupPermissions['localop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text |
||
$wgGroupPermissions['localop']['editinterface'] = false; |
$wgGroupPermissions['localop']['editinterface'] = false; |
||
$wgGroupPermissions['localop']['import'] = false; |
$wgGroupPermissions['localop']['import'] = false; |
||
$wgGroupPermissions['localop']['importupload'] = false; |
$wgGroupPermissions['localop']['importupload'] = false; |
||
$wgGroupPermissions['localop']['move'] = true; |
$wgGroupPermissions['localop']['move'] = true; |
||
$wgGroupPermissions['localop']['patrol'] = true; |
$wgGroupPermissions['localop']['patrol'] = true; |
||
$wgGroupPermissions['localop']['autopatrol'] = false; |
$wgGroupPermissions['localop']['autopatrol'] = false; |
||
$wgGroupPermissions['localop']['protect'] = true; |
$wgGroupPermissions['localop']['protect'] = true; |
||
$wgGroupPermissions['localop']['proxyunbannable'] = false; |
$wgGroupPermissions['localop']['proxyunbannable'] = false; |
||
$wgGroupPermissions['localop']['rollback'] = true; |
$wgGroupPermissions['localop']['rollback'] = true; |
||
$wgGroupPermissions['localop']['trackback'] = false; |
$wgGroupPermissions['localop']['trackback'] = false; |
||
$wgGroupPermissions['localop']['upload'] = true; |
$wgGroupPermissions['localop']['upload'] = true; |
||
$wgGroupPermissions['localop']['reupload'] = false; |
$wgGroupPermissions['localop']['reupload'] = false; |
||
$wgGroupPermissions['localop']['reupload-shared'] = false; |
$wgGroupPermissions['localop']['reupload-shared'] = false; |
||
$wgGroupPermissions['localop']['unwatchedpages'] = false; |
$wgGroupPermissions['localop']['unwatchedpages'] = false; |
||
$wgGroupPermissions['localop']['autoconfirmed'] = true; |
$wgGroupPermissions['localop']['autoconfirmed'] = true; |
||
$wgGroupPermissions['localop']['upload_by_url'] = false; |
$wgGroupPermissions['localop']['upload_by_url'] = false; |
||
$wgGroupPermissions['localop']['ipblock-exempt'] = false; |
$wgGroupPermissions['localop']['ipblock-exempt'] = false; |
||
$wgRawHtml = 0; |
$wgRawHtml = 0; |
||
// $wgEnableUploads = true; |
// $wgEnableUploads = true; |
||
Revision as of 21:07, 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;