summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-09-16 16:05:16 +0000
committerDries Buytaert <dries@buytaert.net>2001-09-16 16:05:16 +0000
commitc5a349ca5140dec738903afe7f6e0deda604d013 (patch)
treebc5320c7171075817a6e22ee6c21f6cf88f43489
parente2f249878eddb4d91e3bffa80ba5452691b5e43b (diff)
downloadbrdo-c5a349ca5140dec738903afe7f6e0deda604d013.tar.gz
brdo-c5a349ca5140dec738903afe7f6e0deda604d013.tar.bz2
- added the "Log in" block
-rw-r--r--includes/theme.inc13
-rw-r--r--modules/user.module1
-rw-r--r--modules/user/user.module1
3 files changed, 13 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 6b0a97e88..3da5116c2 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -60,6 +60,19 @@ function theme_account($region, $theme) {
$theme->box($user->name, $content, $region);
}
+ else {
+ $output .= "<div align=\"center\">\n";
+ $output .= " <form action=\"module.php?mod=user&op=login\" method=\"post\">\n";
+ $output .= " <b>". t("Username") .":</b><br /><input name=\"edit[name]\" size=\"15\"><p />\n";
+ $output .= " <b>". t("Password") .":</b><br /><input name=\"edit[pass]\" size=\"15\" TYPE=\"password\"><br />\n";
+ $output .= " <input type=\"submit\" value=\"". t("Log in") ."\"><br />\n";
+ if (variable_get("account_register", 1)) $output .= " <a href=\"module.php?mod=user\">". t("REGISTER") ."</a>\n";
+ $output .= " </form>\n";
+ $output .= "</div>\n";
+
+ $theme->box(t("Log in"), $output, $region);
+ }
+
}
function theme_blocks($region, $theme) {
diff --git a/modules/user.module b/modules/user.module
index 132328bcc..c63d0a370 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -494,7 +494,6 @@ function user_login($edit = array()) {
$output .= form_textfield(t("Username"), "name", $edit["name"], 20, 64, t("Enter your local username, a Drupal ID or a Jabber ID."));
$output .= form_password(t("Password"), "pass", $pass, 20, 64, t("Enter the password that accompanies your username."));
- $output .= form_hidden("type", "local");
$output .= form_submit(t("Log in"));
return form($REQUEST_URI, $output);
diff --git a/modules/user/user.module b/modules/user/user.module
index 132328bcc..c63d0a370 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -494,7 +494,6 @@ function user_login($edit = array()) {
$output .= form_textfield(t("Username"), "name", $edit["name"], 20, 64, t("Enter your local username, a Drupal ID or a Jabber ID."));
$output .= form_password(t("Password"), "pass", $pass, 20, 64, t("Enter the password that accompanies your username."));
- $output .= form_hidden("type", "local");
$output .= form_submit(t("Log in"));
return form($REQUEST_URI, $output);