X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=LocalSettings.sample;h=40578982ee08ccd1b8c9ff32a833485e10b2d696;hb=361c38da86f264ddc4e406088a1b8ce0beae7fde;hp=3046303351d93a57b89f1e50d3a20c2596961989;hpb=8d3f9999c33e5c1d23c082890cbafd25b6f2d291;p=lhc%2Fweb%2Fwiklou.git diff --git a/LocalSettings.sample b/LocalSettings.sample index 3046303351..40578982ee 100644 --- a/LocalSettings.sample +++ b/LocalSettings.sample @@ -5,32 +5,38 @@ # configuration preferences. The install script will copy it to # the installation path, but a copy should also remain in the # source tree so that maintenance scripts can refer to it (you -# may want to make it a symbolic link after installation). +# may want to make it a symbolic link after installation). # Developers: Do not check LocalSettings.php into CVS! Make # changes to LocalSettings.sample instead. -# Note that you will find many more settings in +# Note that you will find many more settings in # includes/DefaultSettings.php - if you want to change any of # them, copy the variables into LocalSettings.php, and change them # here, otherwise your settings will be overwritten with your # next update. +# You can get some useful informations online at: +# http://meta.wikipedia.org/wiki/LocalSettings.php + # The most important setting is here: $IP is the installation # path for the software. In the example below, the htdocs -# dir should be set as the DocumentRoot in the httpd.conf +# dir should be set as the DocumentRoot in the httpd.conf # configuration file of Apache. To put it more simply: # The directory below needs to be accessible in some way # through your web browser. # $IP = "/usr/local/apache/htdocs/wiki"; - ## Don't change this bit; install.php needs it. # if ( ! isset( $DP ) ) { $DP = $IP; } include_once( "$DP/DefaultSettings.php" ); +# If you wish to enable third-party extensions, you do that +# using an include_once statement here. Make sure, however, +# that DefaultSettings.php (above) is included first. + ## Please customize! # $wgSitename = "MediaWiki"; @@ -40,6 +46,8 @@ $wgSitename = "MediaWiki"; # Normally the server will be auto-detected, but you can # force the base URL. Don't forget http:// (or https://)! +# If you are running php as CGI, the $_SERVER variable might +# not be set, you will then need to manually set $wgServer # #$wgServer = "http://www.myhost.com"; @@ -57,17 +65,17 @@ $wgArticlePath = "{$wgScript}/$1"; ## Normally you don't need to change these once the above are set... # -$wgStyleSheetPath = "{$wgScriptPath}/style"; -$wgStyleSheetDirectory = "{$IP}/style"; +$wgStylePath = "{$wgScriptPath}/skins"; +$wgStyleSheetDirectory = "{$IP}/skins"; $wgUploadPath = "{$wgScriptPath}/upload"; $wgUploadDirectory = "{$IP}/upload"; -$wgLogo = "{$wgUploadPath}/wiki.png"; +$wgLogo = "{$wgStylePath}/images/wiki.png"; ## Preferably these addresses should be able to receive mail asking for help # -$wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" ); -$wgPasswordSender = "Wikipedia Mail "; +$wgEmergencyContact = "wikiadmin@" . $_SERVER['SERVER_NAME']; +$wgPasswordSender = "Wikipedia Mail "; # MySQL settings # @@ -80,9 +88,9 @@ $wgPasswordSender = "Wikipedia Mail "; # your existing username and password. Be sure this # file doesn't get left around on the web legible... # -# $wgDBsqluser is used for queries through the +# $wgDBsqluser is used for queries through the # web interface. It is also created by the script. -# Unlike the regular user, it has no write +# Unlike the regular user, it has no write # permissions and can not access passwords. # $wgDBserver = "localhost"; @@ -92,9 +100,12 @@ $wgDBpassword = "userpass"; # Use a better password! ;) $wgDBsqluser = "sqluser"; $wgDBsqlpassword = "sqlpass"; -## Advanced DB settings +## Minimum word length for the full-text search. +## NOTICE: Changing this value does not suffice. You must +## also change the corresponding setting in MySQL itself. +## See the MySQL manual for information on how to do so. # -$wgDBminWordLen = 3; # Match this to your MySQL fulltext +$wgDBminWordLen = 3; ## Set these to true to turn on some optimizations when using ## MySQL 4.x: @@ -109,9 +120,18 @@ $wgDBminWordLen = 3; # Match this to your MySQL fulltext # # $wgUseDatabaseMessages = false; +## The links in the navigation sidebar can be configured. +## To add a link to the sidebar, add a line like the following +# +# $wgNavigationLinks[] = array( 'text' => 'helpdesk', 'href' => 'helpdesk-url' ); +# +## and create two MediaWiki:-pages with the corresponding names, e.g. +## MediaWiki:helpdesk="User help desk" +## MediaWiki:helpdesk-url="YourProject:Help_desk" + ## Set $wgUseImageResize to true if you want to enable dynamic ## server side image resizing ("Thumbnails") -# +# # $wgUseImageResize = true; ## Resizing can be done using PHP's internal image libraries @@ -136,6 +156,9 @@ $wgLocalInterwiki = $wgSitename; ## If you want a non-English wiki, add a line like this # $wgLanguageCode = "de"; +## If you want a different default time zone than UTC, add a line like this +# $wgLocalTZoffset = -5; # (EST, for example) + ## Character encoding: normally auto-selected by the language. ## English, German, Danish, Dutch, French, Spanish, and Swedish ## will be in ISO-8859-1 by default, all other languages in @@ -148,6 +171,10 @@ $wgLocalInterwiki = $wgSitename; # $wgInputEncoding = "UTF-8"; # $wgOutputEncoding = "UTF-8"; +## Default skin: you can change the default skin. Use the internal symbolic +## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': +# $wgDefaultSkin = 'monobook'; + ## Extremely high-traffic wikis may want to disable ## some database-intensive features here: # @@ -156,12 +183,12 @@ $wgLocalInterwiki = $wgSitename; # $wgMiserMode = true; ## The following three config variables are used to define -## the rights of users in your system. +## the rights of users in your system. # # If wgWhitelistEdit is set to true, only logged in users # are allowed to edit articles. -# If wgWhitelistRead is set to true, only logged in users -# are allowed to read articles. +# If wgWhitelistRead is set to an array of page names, only logged in users +# are allowed to read pages *not in the list*. # # wgWhitelistAccount lists user types that can add user accounts: # "key" => 1 defines permission if user has right "key". @@ -175,7 +202,8 @@ $wgLocalInterwiki = $wgSitename; # # Invitation-only closed shop type of system # $wgWhitelistEdit = true; -# $wgWhitelistRead = true; +# Pages anonymous user may see: +# $wgWhitelistRead = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help"); # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 ); # # Public website, closed editorial team @@ -192,11 +220,16 @@ $wgLocalInterwiki = $wgSitename; # $wgUseESI = true; # Internal server name as known to Squid, if different # $wgInternalServer = 'http://yourinternal.tld:8000'; -# Cache timeout for the squid, will be sent as s-maxage (without ESI) or +# Cache timeout for the squid, will be sent as s-maxage (without ESI) or # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config. # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days # $wgSquidMaxage = 18000; # A list of proxy servers (ips if possible) to purge on changes # don't specify ports here (80 is default) # $wgSquidServers = array('127.0.0.1'); -?> \ No newline at end of file + +# Browser-related setting +# +# Array of regexps for UNICODE compliant browser. +$wgBrowserBlackList = "/Mozilla\/4./"; +?>