BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.5.x Custom/Unofficial Modules => Topic started by: Temar on August 19, 2007, 04:15:35 am

Title: access control
Post by: Temar on August 19, 2007, 04:15:35 am
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: [Select]
  /*
  * 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";

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

Files Removed for Major Changes
Title: Re: access control
Post by: Temar on August 19, 2007, 04:21:48 am
Patch files
Title: Re: access control
Post by: Alreadythere on August 19, 2007, 03:34:58 pm
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?
Title: Re: access control
Post by: Temar on August 19, 2007, 03:52:06 pm
well the orginal idea was for 1st install, but i serpose adding it as part of ingame setting etc might work better
SimplePortal 2.3.7 © 2008-2024, SimplePortal