summaryrefslogtreecommitdiffstats
path: root/web/html/index.php
diff options
context:
space:
mode:
authoreric <eric>2004-06-21 21:36:54 +0200
committereric <eric>2004-06-21 21:36:54 +0200
commit38eda65735e81d2774759a2aa6e9922c7131f830 (patch)
tree9b7f2268ad85d4638a1ee8ff4e2690ba5bb25255 /web/html/index.php
parent84e15d0463726fe03b0cdb5a690621330034e737 (diff)
downloadaur-38eda65735e81d2774759a2aa6e9922c7131f830.tar.gz
aur-38eda65735e81d2774759a2aa6e9922c7131f830.tar.xz
working on the accounts stuff
Diffstat (limited to 'web/html/index.php')
-rw-r--r--web/html/index.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/web/html/index.php b/web/html/index.php
index ad7b73f0..dd9b2ccb 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -11,7 +11,7 @@ if (isset($_REQUEST["user"]) || isset($_REQUEST["pass"])) {
# Attempting to log in
#
if (!isset($_REQUEST['user'])) {
- $login_error = __("You must supply a username.");
+ $login_error = __("You must supply an email address.");
}
if (!isset($_REQUEST['pass'])) {
$login_error = __("You must supply a password.");
@@ -21,11 +21,11 @@ if (isset($_REQUEST["user"]) || isset($_REQUEST["pass"])) {
#
$dbh = db_connect();
$q = "SELECT ID, Suspended FROM Users ";
- $q.= "WHERE Email = '" . mysql_escape_string($_REQUEST["user"]) . "' ";
+ $q.= "WHERE Username = '" . mysql_escape_string($_REQUEST["user"]) . "' ";
$q.= "AND Passwd = '" . mysql_escape_string($_REQUEST["pass"]) . "'";
$result = db_query($q, $dbh);
if (!$result) {
- $login_error = __("Incorrect password for username %s.",
+ $login_error = __("Incorrect password for email address, %s.",
array($_REQUEST["user"]));
} else {
$row = mysql_fetch_row($result);
@@ -70,13 +70,16 @@ html_header();
print "<table border='0' cellpadding='0' cellspacing='3' width='90%'>\n";
print "<tr>\n";
-print " <td align='left' valign='top'>&nbsp;<br/>";
+print " <td align='left' valign='top'>";
print __("This is where the intro text will go.");
print __("For now, it's just a place holder.");
print __("It's more important to get the login functionality finished.");
print __("After that, this can be filled in with more meaningful text.");
print " </td>";
-print " <td align='right'>&nbsp;<br/>\n";
+# XXX Is this the proper way to add some spacing between table cells?
+#
+print " <td>&nbsp;&nbsp;</td>";
+print " <td align='right'>\n";
if (!isset($_COOKIE["AURSID"])) {
# the user is not logged in, give them login widgets
#