summaryrefslogtreecommitdiffstats
path: root/lib/class/access.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/access.class.php')
-rw-r--r--lib/class/access.class.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/class/access.class.php b/lib/class/access.class.php
index ba4548dd..fc01adfb 100644
--- a/lib/class/access.class.php
+++ b/lib/class/access.class.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2006 Ampache.org
+ Copyright (c) 2001 - 2007 Ampache.org
All Rights Reserved
This program is free software; you can redistribute it and/or
@@ -145,11 +145,13 @@ class Access {
} // delete
- /*!
- @function check
- @discussion check to see if they have rights
- */
- function check($type,$ip,$user,$level,$key='') {
+ /**
+ * check
+ * This takes a type, ip, user, level and key
+ * and then returns true or false if they have access to this
+ * the IP is passed as a dotted quad
+ */
+ public static function check($type,$ip,$user,$level,$key='') {
// They aren't using access control
// lets just keep on trucking