summaryrefslogtreecommitdiff
path: root/includes/user.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/user.inc')
-rw-r--r--includes/user.inc5
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