From 64db123697c4ce34bd9ef0c3881771627465ae6b Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 22 Jun 2004 14:26:54 +0000 Subject: pulled out account functions into separate include file --- web/lib/aur.inc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'web/lib/aur.inc') 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) { -- cgit v1.2.3-70-g09d2