|
From: Benjamin C. <bc...@us...> - 2002-01-05 20:01:22
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv2562
Modified Files:
include.php css.php
Log Message:
A little bit of css tweaking
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- include.php 2002/01/05 19:49:35 1.87
+++ include.php 2002/01/05 20:01:17 1.88
@@ -510,12 +510,9 @@
// Check to see if the user is trying to login
if (isset($_pv['dologin'])) {
if (isset($_pv['sendpass'])) {
- list($email, $password) = $q->grab("select email, password from ".TBL_AUTH_USER." where login = '$username' and active > 0");
+ list($email, $password) = $q->grab("select email, password from ".TBL_AUTH_USER." where login = '{$_pv['username']}' and active > 0");
if (!$q->num_rows()) {
- $t->set_var(array(
- 'loginerrorcolor' => '#ff0000',
- 'loginerror' => 'Invalid login<br>'
- ));
+ $t->set_var('loginerror', '<div class="error">Invalid login</div>');
} else {
if (ENCRYPT_PASS) {
$password = genpassword(10);
@@ -524,17 +521,12 @@
}
mail($email, $STRING['newacctsubject'], sprintf($STRING['newacctmessage'],
$password), sprintf("From: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n",ADMIN_EMAIL, $STRING['lang_charset']));
- $t->set_var(array(
- 'loginerrorcolor' => '#0000ff',
- 'loginerror' => 'Your password has been emailed to you<br>'
- ));
+ $t->set_var('loginerror',
+ '<div class="result">Your password has been emailed to you</div>');
}
} else {
if (!$u = $auth->auth_validatelogin()) {
- $t->set_var(array(
- 'loginerrorcolor' => '#ff0000',
- 'loginerror' => 'Invalid login<br>'
- ));
+ $t->set_var('loginerror', '<div class="error">Invalid login</div>');
}
}
}
Index: css.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/css.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- css.php 2001/10/30 04:04:38 1.3
+++ css.php 2002/01/05 20:01:17 1.4
@@ -151,3 +151,10 @@
color: #ff0000;
padding-bottom: 0.1em;
}
+
+.result {
+ text-align: center;
+ font-weight: bold;
+ color: #0000ff;
+ padding-bottom: 0.1em;
+ }
|