diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-02 15:54:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-02 15:54:37 +0000 |
commit | 805107cd2202ddee66c4743e43804a3069508f29 (patch) | |
tree | 39a0661f2e8a84ee743831ee7abac5c9a626637c /includes/user.inc | |
parent | 1f5bc83d794906c1b88dde20e107363cf2f71c17 (diff) | |
download | brdo-805107cd2202ddee66c4743e43804a3069508f29.tar.gz brdo-805107cd2202ddee66c4743e43804a3069508f29.tar.bz2 |
Commiting my work of last Sunday:
- removed ban.inc and ban.module and integrated it in account.module
under the name "access control" --> the ban code was not really up
to standard so this has now been dealt with. This refactoring and
reintegration cuts down the code size with 100 lines too. :-)
(The ban.module code was really old and it showed.)
- added node.module and made the other modules reuse some of this
code --> cut down the code size of modules by at least 100 lines
and adds stability.
- added a status() function to admin.php to display a conform status
message where appropriate. See admin.php for usage.
- removed $theme->control() and made comments.inc handle this itself
wrapped in a $theme->box(). No need to clutter the themes with
such complexity --> updated all themes already. :-)
- some small visual changes to some administration pages to be more
consistent across different modules.
Diffstat (limited to 'includes/user.inc')
-rw-r--r-- | includes/user.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/user.inc b/includes/user.inc index 66a015e4f..09b434102 100644 --- a/includes/user.inc +++ b/includes/user.inc @@ -95,4 +95,9 @@ function user_access($account, $section = 0) { else return ($account->access || $account->id == 1); } +function user_ban($mask, $type) { + $result = db_query("SELECT * FROM access WHERE type = '$type' AND '$mask' REGEXP mask"); + return db_fetch_object($result); +} + ?>
\ No newline at end of file |