Archive > 0.5.x Custom/Unofficial Modules

access control

(1/1)

Temar:
1st run Access control Setting

this will set all access control

  * normal - Do Nothing, Let modules Set
  * minimal - DISABLE all but Essentials and set rest to OWNER
  * public - Change all that is set to MEMBER or GUEST to ANNONYMOUS

this option is Changeable in your config file
add this code to it

--- Code: ---  /*
  * normal - Do Nothing, Let modules Set Access Control
  * minimal - DISABLE all but Essentials and set rest to OWNER
  * public - Change all that is set to MEMBER or GUEST to ANNONYMOUS
  */
  $access_install = "normal";

--- End code ---

and install these
main.php goes in your main directory
bot.php goes in /sources
AccessControl.php in /sources

Files Removed for Major Changes

Temar:
Patch files

Alreadythere:
Nice idea!

Though I wouldn't go and change any access control entries in the table, I'd hook into the check_rights() function directly.
And I'd prolly move the config into settings for more flexiblility - why should you have to restart your bot after doing config in setup mode?

Temar:
well the orginal idea was for 1st install, but i serpose adding it as part of ingame setting etc might work better

Navigation

[0] Message Index

Go to full version