collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: access control  (Read 6181 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
access control
« 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
« Last Edit: August 19, 2007, 11:39:32 pm by Temar »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: access control
« Reply #1 on: August 19, 2007, 04:21:48 am »
Patch files
« Last Edit: August 19, 2007, 11:39:21 pm by Temar »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: access control
« Reply #2 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?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: access control
« Reply #3 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

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 373
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal