mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
aur.inc: remove unused code
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
1529020e79
commit
bf4fe7f47c
1 changed files with 0 additions and 47 deletions
|
@ -20,53 +20,6 @@ include_once("acctfuncs.inc");
|
||||||
# is using...
|
# is using...
|
||||||
|
|
||||||
|
|
||||||
# return an array of info for each Trusted user
|
|
||||||
#
|
|
||||||
function getTrustedUsers() {
|
|
||||||
$tus = array();
|
|
||||||
$dbh = db_connect();
|
|
||||||
$q = "SELECT * FROM Users WHERE AccountTypeID = 2 ";
|
|
||||||
$q.= "ORDER BY Username ASC";
|
|
||||||
$result = db_query($q, $dbh);
|
|
||||||
if ($result) {
|
|
||||||
while ($row = mysql_fetch_assoc($result)) {
|
|
||||||
$tus[$row["ID"]] = $row;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $tus;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# return an array of info for each Developer
|
|
||||||
#
|
|
||||||
function getDevelopers() {
|
|
||||||
$devs = array();
|
|
||||||
$dbh = db_connect();
|
|
||||||
$q = "SELECT * FROM Users WHERE AccountTypeID = 3 ";
|
|
||||||
$q.= "ORDER BY Username ASC";
|
|
||||||
$result = db_query($q, $dbh);
|
|
||||||
if ($result) {
|
|
||||||
while ($row = mysql_fetch_assoc($result)) {
|
|
||||||
$devs[$row["ID"]] = $row;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $devs;
|
|
||||||
}
|
|
||||||
|
|
||||||
# return an array of info for each user
|
|
||||||
function getUsers() {
|
|
||||||
$users = array();
|
|
||||||
$dbh = db_connect();
|
|
||||||
$q = "SELECT * FROM Users ORDER BY Username ASC";
|
|
||||||
$result = db_query($q, $dbh);
|
|
||||||
if ($result) {
|
|
||||||
while ($row = mysql_fetch_assoc($result)) {
|
|
||||||
$users[$row["ID"]] = $row;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $users;
|
|
||||||
}
|
|
||||||
|
|
||||||
# see if the visitor is already logged in
|
# see if the visitor is already logged in
|
||||||
#
|
#
|
||||||
function check_sid() {
|
function check_sid() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue