diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-06-23 11:09:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-06-23 11:09:40 +0000 |
commit | 3754a54ed62db2d01a1d46a161ce95688b9c942e (patch) | |
tree | a10386b199fb9633b7e4fd1c155375a1595e4e4a /modules/access.module | |
parent | 3e075294febed760b7e59a8b8a59dc2ebe8ccf7b (diff) | |
download | brdo-3754a54ed62db2d01a1d46a161ce95688b9c942e.tar.gz brdo-3754a54ed62db2d01a1d46a161ce95688b9c942e.tar.bz2 |
- Small but significant improvements to block and box.module which
makes the ever-confusing "rehash modules" (see module.module) no
longer needed, hence making module.module redundant. :-)
- Removed module.module.
- Renamed conf.module to system.module, and added some information
about the available modules to system.module.
- Various small changes.
Diffstat (limited to 'modules/access.module')
-rw-r--r-- | modules/access.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/access.module b/modules/access.module index 1b7d614c5..7126d4584 100644 --- a/modules/access.module +++ b/modules/access.module @@ -116,7 +116,7 @@ function access_perm_save($edit) { return "permissions have been saved."; } -function access_default() { +function access_init() { $role = db_fetch_object(db_query("SELECT * FROM role WHERE name = 'anonymous user'")); if (!$role) db_query("INSERT INTO role (name) VALUES ('anonymous user')"); @@ -131,7 +131,7 @@ function access_admin() { print "<SMALL><A HREF=\"admin.php?mod=access&op=add\">add new role</A> | <A HREF=\"admin.php?mod=access&op=role\">role overview</A> | <A HREF=\"admin.php?mod=access&op=perm\">permission overview</A> | <A HREF=\"admin.php?mod=access&op=help\">help</A></SMALL><HR>\n"; - access_default(); + access_init(); switch ($op) { case "add": |