--- mediawiki-1.8.2/config/index.php.orig 2006-12-11 13:44:52.000000000 +0200 +++ mediawiki-1.8.2/config/index.php 2006-12-11 13:45:22.000000000 +0200 @@ -1451,6 +1451,18 @@ # sure that cached pages are cleared. \$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); \$wgCacheEpoch = max( \$wgCacheEpoch, \$configdate ); + +# Added by Gentoo Developer Philippe Trottier +# This will make the access by default very restricted. This is not supported +# by mediawiki themself. Here I make a very gross assumtion that everyone will install in english 1st. +# Please read http://meta.wikimedia.org/wiki/Preventing_Access before filing bug reports +# +\$wgGroupPermissions['*']['createaccount'] = false; +\$wgGroupPermissions['*']['edit'] = false; +\$wgWhitelistRead = array( \"Main Page\", \"Special:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); +# \$wgWhitelistRead = array( \"Hauptseite\", \"Spezial:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); +# \$wgWhitelistRead = array( \"Pagina principale\", \"Speciale:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); +\$wgGroupPermissions['*']['read'] = false; "; ## End of setting the $localsettings string // Keep things in Unix line endings internally;