You have to add your login page to the white list. See includes/DefaultSettings.php for
more details:
# Pages anonymous user may see as an array, e.g.:
# array ( "Main Page", "Special:Userlogin",
"Wikipedia:Help");
# NOTE: This will only work if $wgGroupPermissions['*']['read']
# is false -- see below. Otherwise, ALL pages are accessible,
# regardless of this setting.
# Also note that this will only protect _pages in the wiki_.
# Uploaded files will remain readable. Make your upload
# directory name unguessable, or use .htaccess to protect it.
$wgWhitelistRead = false;
-----Ursprüngliche Nachricht-----
Von: MediaWiki announcements and site admin list <mediawiki-l(a)Wikimedia.org>
Gesendet: 20.05.06 14:50:46
An: mediawiki-l(a)Wikimedia.org
Betreff: [Mediawiki-l] Make Wiki readable only for logged in users
I want to disable access to my wiki for non logged in
users. I've read
this howto:
http://meta.wikimedia.org/wiki/Help:User_rights but i have one
question.
Now i can't login, because i keep redirected to the 'you must be logged
in" page. In the howto it says that i should change the function
LoginToUse in includes/outputpage.php. Should i add the given code or
change the old code with the new?
I tried to add the code and to change the old code to the given code, but
both give me an error.
The howto says the following:
Main Page is not mandatory for this list. To avoid "login required"
redirect page, you can change includes/OuputPage.php loginToUse():
function loginToUse() {
$titleObj = Title::makeTitle( NS_SPECIAL, "Userlogin" );
$this->redirect( $titleObj->getFullURL() );
}
What should i do?
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l