mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
re-working pkgsearch, NumVotes add to Packages table
This commit is contained in:
parent
efcca46f26
commit
4b80bc34ff
7 changed files with 216 additions and 112 deletions
|
@ -25,11 +25,14 @@ if (isset($_REQUEST["user"]) || isset($_REQUEST["pass"])) {
|
|||
$q.= "AND Passwd = '" . mysql_escape_string($_REQUEST["pass"]) . "'";
|
||||
$result = db_query($q, $dbh);
|
||||
if (!$result) {
|
||||
$login_error = __("Incorrect password for username, %s.",
|
||||
$login_error = __("Error looking up username, %s.",
|
||||
array($_REQUEST["user"]));
|
||||
} else {
|
||||
$row = mysql_fetch_row($result);
|
||||
if ($row[1]) {
|
||||
if (empty($row)) {
|
||||
$login_error = __("Incorrect password for username, %s.",
|
||||
array($_REQUEST["user"]));
|
||||
} elseif ($row[1]) {
|
||||
$login_error = __("Your account has been suspended.");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue