Gentoo Archives: gentoo-commits

From: "Gunnar Wrobel (wrobel)" <wrobel@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/mediawiki/files: access_restrict_1.12.0.patch
Date: Sun, 01 Jun 2008 14:43:15
Message-Id: E1K2om5-0003NN-Rx@stork.gentoo.org
1 wrobel 08/06/01 14:43:09
2
3 Added: access_restrict_1.12.0.patch
4 Log:
5 Fix for #219713.
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.1 www-apps/mediawiki/files/access_restrict_1.12.0.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/files/access_restrict_1.12.0.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/mediawiki/files/access_restrict_1.12.0.patch?rev=1.1&content-type=text/plain
13
14 Index: access_restrict_1.12.0.patch
15 ===================================================================
16 --- mediawiki-1.12.0/config/index.php.orig 2008-03-20 23:08:49.000000000 +0100
17 +++ mediawiki-1.12.0/config/index.php 2008-05-12 19:57:05.000000000 +0200
18 @@ -1692,6 +1692,18 @@
19 # When you make changes to this configuration file, this will make
20 # sure that cached pages are cleared.
21 \$wgCacheEpoch = max( \$wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
22 +
23 +# Added by Gentoo Developer Philippe Trottier <tchiwam@g.o>
24 +# This will make the access by default very restricted. This is not supported
25 +# by mediawiki themself. Here I make a very gross assumtion that everyone will install in english 1st.
26 +# Please read http://meta.wikimedia.org/wiki/Preventing_Access before filing bug reports
27 +#
28 +\$wgGroupPermissions['*']['createaccount'] = false;
29 +\$wgGroupPermissions['*']['edit'] = false;
30 +\$wgWhitelistRead = array( \"Main Page\", \"Special:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" );
31 +# \$wgWhitelistRead = array( \"Hauptseite\", \"Spezial:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" );
32 +# \$wgWhitelistRead = array( \"Pagina principale\", \"Speciale:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" );
33 +\$wgGroupPermissions['*']['read'] = false;
34 "; ## End of setting the $localsettings string
35
36 // Keep things in Unix line endings internally;
37
38
39
40 --
41 gentoo-commits@l.g.o mailing list