Advertisement
pokeswap

Untitled

Apr 10th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1. <?php
  2.  
  3. define("NS_SPY", 3540);
  4. define("NS_SPY_FILES", 3570);
  5.  
  6. $wgExtraNamespaces =
  7.     array(3540 => "spy",
  8.           3570 => "spy_files",
  9.     );
  10.  
  11. $wgNamespaceProtection[NS_SPY]      = array( 'spy_edit' );
  12. $wgNamespaceProtection[NS_SPY_FILES] = array('spy_edit', 'spy_file_edit' );
  13.  
  14. $wgGroupPermissions['spy_register']['spy_edit'] = true;
  15. $wgGroupPermissions['spy_exam']['spy_file_edit'] = true;
  16. $wgGroupPermissions['*']['spy_edit'] = false;
  17. $wgGroupPermissions['*']['spy_file_edit'] = false;
  18.  
  19. /*$wgNamespacePermissionLockdown[3540]['read'] = array('spy_exam');
  20. $wgNamespacePermissionLockdown[3570]['read'] = array('spy_exam');
  21.  
  22. #prevent inclusion of pages from that namespace
  23. $wgNonincludableNamespaces[3540] = ;
  24. $wgNonincludableNamespaces[3570] = ;
  25. */
  26. $wgNamespacePermissionLockdown[NS_SPY_FILES]['read'] = array('spy_exam');
  27. $wgNamespacePermissionLockdown[NS_SPY_FILES]['edit'] = array('spy_exam');
  28. $wgNonincludableNamespaces[] = NS_SPY_FILES;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement