At 09:21 +0000 10/11/05, Gordon Joly wrote:
I have set up wiki which can only be read by logged in
users, by setting:
$wgGroupPermissions['*' ]['createaccount'] = false;
$wgGroupPermissions['*' ]['read'] = false;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['user' ]['move'] = true;
$wgGroupPermissions['user' ]['read'] = true;
$wgGroupPermissions['user' ]['edit'] = true;
$wgGroupPermissions['user' ]['upload'] = true;
However, a non logged in user visiting any page raises an error, and
this appears to call:-
function returnToMain( $auto = true, $returnto = NULL )
which contains a 10 second refresh (on the the main page) with the notice
***
Login Required
You must login to view other pages.
Return to Main Page.
***
$wgOut->addMeta( 'http:Refresh', '10;url=' .
$titleObj->escapeFullURL() );
}
I have set the refresh to 600 seconds to reduce server load. This
Wiki is on the Internet (that is not an intranet).
Any other thoughts or suggestions?
Regards,
Gordo
-
My next question is "how do I login to wiki that will only allow
logged in users to read pages"?
Looks like there is need to refresh back to the login page, and not
the page that says
***
Login Required
You must login to view other pages.
Return to Main Page.
***
Gordo
--
"Think Feynman"/////////
http://pobox.com/~gordo/
gordon.joly(a)pobox.com///