diff options
author | eric <eric> | 2004-06-22 14:26:54 +0000 |
---|---|---|
committer | eric <eric> | 2004-06-22 14:26:54 +0000 |
commit | 64db123697c4ce34bd9ef0c3881771627465ae6b (patch) | |
tree | 475d5b7e5bbeb91caa635b932e3067c864355f51 /web/lib/aur.inc | |
parent | 63b92980c2b4ead0e27991da2c44f9293c63c48d (diff) |
pulled out account functions into separate include file
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r-- | web/lib/aur.inc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 9695229..ecedb51 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -99,17 +99,6 @@ function new_sid() { return strtoupper(md5($id)); } -# obtain the user type from its database ID -# -function user_type($id=0) { - if ($id == 3) { - return __("Developer"); - } elseif ($id == 2) { - return __("Trusted user"); - } else { - return __("User"); - } -} # obtain the username if given their current SID # @@ -162,7 +151,7 @@ function account_from_sid($sid="") { $q = "SELECT AccountType "; $q.= "FROM Users, AccountTypes, Sessions "; $q.= "WHERE Users.ID = Sessions.UsersID "; - $q.= "AND AccountTypes.ID = Users.AccountTypesID "; + $q.= "AND AccountTypes.ID = Users.AccountTypeID "; $q.= "AND Sessions.SessionID = '" . mysql_escape_string($sid) . "'"; $result = db_query($q, $dbh); if (!$result) { |