Commit c5a349ca authored by Dries's avatar Dries
Browse files

- added the "Log in" block
parent e2f24987
......@@ -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) {
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment