summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc
diff options
context:
space:
mode:
authoreric <eric>2004-06-22 16:26:54 +0200
committereric <eric>2004-06-22 16:26:54 +0200
commit64db123697c4ce34bd9ef0c3881771627465ae6b (patch)
tree475d5b7e5bbeb91caa635b932e3067c864355f51 /web/lib/aur.inc
parent63b92980c2b4ead0e27991da2c44f9293c63c48d (diff)
downloadaur-64db123697c4ce34bd9ef0c3881771627465ae6b.tar.gz
aur-64db123697c4ce34bd9ef0c3881771627465ae6b.tar.xz
pulled out account functions into separate include file
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r--web/lib/aur.inc13
1 files changed, 1 insertions, 12 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index 9695229a..ecedb51f 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) {