Änderungen

Wechseln zu: Navigation, Suche

NLPedia:Einstellungen

26 Byte hinzugefügt, 09:45, 2. Apr. 2006
/* Access Restriction to wiki */
Add the following lines in LocalSettings.php after this line: require_once( "includes/DefaultSettings.php" ); Result of the configuration will be: users cannot create their own account and cannot read/edit documents without logging in to the system.
<nowiki>
;$wgGroupPermissions[’*’ ][’createaccount’] = false;
;$wgGroupPermissions[’*’ ][’edit’] = false;
;$wgWhitelistRead = array( "Special:Userlogin" );
;$wgGroupPermissions[’*’ ][’read’] = false;
<nowiki>
To allow browsing only from particular ip address (e.g. office lan only) insert the following lines to .htaccess file:
$wgLocalTZoffset = date("Z") / 3600;
----</nowiki>