Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define("NS_SPY", 3540);
- define("NS_SPY_FILES", 3570);
- $wgExtraNamespaces =
- array(3540 => "spy",
- 3570 => "spy_files",
- );
- $wgNamespaceProtection[NS_SPY] = array( 'spy_edit' );
- $wgNamespaceProtection[NS_SPY_FILES] = array('spy_edit', 'spy_file_edit' );
- $wgGroupPermissions['spy_register']['spy_edit'] = true;
- $wgGroupPermissions['spy_exam']['spy_file_edit'] = true;
- $wgGroupPermissions['*']['spy_edit'] = false;
- $wgGroupPermissions['*']['spy_file_edit'] = false;
- /*$wgNamespacePermissionLockdown[3540]['read'] = array('spy_exam');
- $wgNamespacePermissionLockdown[3570]['read'] = array('spy_exam');
- #prevent inclusion of pages from that namespace
- $wgNonincludableNamespaces[3540] = ;
- $wgNonincludableNamespaces[3570] = ;
- */
- $wgNamespacePermissionLockdown[NS_SPY_FILES]['read'] = array('spy_exam');
- $wgNamespacePermissionLockdown[NS_SPY_FILES]['edit'] = array('spy_exam');
- $wgNonincludableNamespaces[] = NS_SPY_FILES;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement