Template:Team:VT Ensimag 2010-Biosecurity/Templates/main

From 2010.igem.org

(Difference between revisions)
Line 1: Line 1:
 +
# Disable reading by anonymous users
 +
$wgGroupPermissions['*']['read'] = false;
 +
 +
# But allow them to access the login page or else there will be no way to log in!
 +
# NOTE: You also need to provide access here to the .css and .js files that the
 +
# allowed pages attempt to load; otherwise, users will get errors on the page
 +
# when they attempt to load it (IE will complain about the errors;
 +
# FF will show them in its error console)
 +
# [You also might want to add access to "Main Page", "Wikipedia:Help", etc.)
 +
$wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css",
 +
"MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-");
 +
 +
# Disable anonymous editing
 +
$wgGroupPermissions['*']['edit'] = false;
 +
 +
# Prevent new user registrations except by sysops
 +
$wgGroupPermissions['*']['createaccount'] = false
 +
 +
 +
{{Template:Team:VT_Ensimag_2010-Biosecurity/Templates/css}}
{{Template:Team:VT_Ensimag_2010-Biosecurity/Templates/css}}

Revision as of 17:22, 9 August 2010

  1. Disable reading by anonymous users

$wgGroupPermissions['*']['read'] = false;

  1. But allow them to access the login page or else there will be no way to log in!
  2. NOTE: You also need to provide access here to the .css and .js files that the
  3. allowed pages attempt to load; otherwise, users will get errors on the page
  4. when they attempt to load it (IE will complain about the errors;
  5. FF will show them in its error console)
  6. [You also might want to add access to "Main Page", "Wikipedia:Help", etc.)

$wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-");

  1. Disable anonymous editing

$wgGroupPermissions['*']['edit'] = false;

  1. Prevent new user registrations except by sysops

$wgGroupPermissions['*']['createaccount'] = false



VT-ENSIMAG over VT campus long.png

{{{1}}}

DNAside.png
Home

Our team

project presentation

Results

Lab notebook

Safety

References

Blast

Sponsors

Media Links

DNAside.png

{{{content}}}




ALIEN DNA.png
VT-ENSIMAG logo.png
ALIEN DNA.png