summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-22 09:05:36 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-04-22 09:05:36 +0000
commitde5b9a168daeef12b6f7bcf6e43b767a2d7f35d8 (patch)
tree8b0aa9828f941161183b27e74b6fdc0a167e0021 /modules/user/user.module
parent5b5551674d3721cee39c21dd6843700315521f91 (diff)
downloadbrdo-de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8.tar.gz
brdo-de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8.tar.bz2
- bug fixes:
* fixed mails not being parsed properly. * tracker now shows user name when you view your own recent comments. * link to submission queue now points to the right place. * fixed jabber module. * theme is now activated when changed. - applied Gerhards coding style patch.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 1169898c8..2f202c3b8 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -459,7 +459,7 @@ function user_block() {
// Display account settings:
$block[0]["subject"] = $user->name;
- $output .= "<div style=\"{ width: 155; }\">\n";
+ $output = "<div style=\"{ width: 155; }\">\n";
$links = array_merge(module_invoke_all("link", "menu.create"), array(""), module_invoke_all("link", "menu.view"), array(""), module_invoke_all("link", "menu.settings"), array(""), module_invoke_all("link", "menu.misc"));
$output .= @implode("<br />\n", $links);
@@ -470,18 +470,17 @@ function user_block() {
else {
$block[1]["subject"] = t("Log in");
- $output .= "<div align=\"center\">\n";
+ $output = "<div align=\"center\">\n";
$output .= "<form action=\"".drupal_url(array("mod" => "user", "op" => "login"), "module")."\" method=\"post\">\n";
$output .= "<b>". t("Username") .":</b><br /><input name=\"edit[name]\" size=\"15\" /><br />\n";
$output .= "<b>". t("Password") .":</b><br /><input name=\"edit[pass]\" size=\"15\" type=\"password\" /><br />\n";
- $output .= "<input name=\"edit[remember_me]\" type=\"checkbox\" />". t("Remember me") ."<br />\n";
+ $output .= "<input name=\"edit[remember_me]\" type=\"checkbox\" />". t("Remember me") ."<br />\n";
$output .= "<input type=\"submit\" value=\"". t("Log in") ."\" /><br />\n";
- $output .= "</div>\n";
+ $output .= "</form></div>\n";
if (variable_get("account_register", 1)) {
$output .= "&#187; ".lm(t("Register"), array("mod" => "user", "op" => "register"), t("Create a new user account."))."\n";
}
- $output .= "<br \>&#187; ".lm(t("New password"), array("mod" => "user", "op" => "password"), t("Request new password via e-mail"))."</a><br />";
- $output .= "</form>\n";
+ $output .= "<br \>&#187; ".lm(t("New password"), array("mod" => "user", "op" => "password"), t("Request new password via e-mail"))."<br />";
$block[1]["content"] = $output;
}
@@ -940,7 +939,7 @@ function user_register($edit = array()) {
//the first user may login immediately, and receives a customized welcome email.
if ($user->uid == 1) {
- user_mail($edit["mail"], t("drupal user account details for %s", array("%s" => $edit["name"])), t("%username,\n\nYou may now login to %uri using the following username and password:\n\n username: %username\n password: %password\n\nAfter logging in, you may wish to visit the following pages:\n\nAdministration: %uriadmin.php\nEdit user account: %uri".drupal_url(array("mod" => "user", "op" => "edit"), "module")."\n\n--drupal"), $variables, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from");
+ user_mail($edit["mail"], t("drupal user account details for %s", array("%s" => $edit["name"])), strtr(t("%username,\n\nYou may now login to %uri using the following username and password:\n\n username: %username\n password: %password\n\nAfter logging in, you may wish to visit the following pages:\n\nAdministration: %uriadmin.php\nEdit user account: %uri". drupal_url(array("mod" => "user", "op" => "edit"), "module") ."\n\n--drupal"), $variables), "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from");
// This should not be t()'ed. No point as its only shown once in the sites lifetime, and it would be bad to store the password
$output .= "<p>Welcome to Drupal. You are user #1, which gives you full and immediate access. All future registrants will receive their passwords via email, so please configure your email settings using the Administration pages.</p><p> Your password is <b>$pass</b>. You may change your password on the next page.</p><p>Please login below.</p>";
$output .= form_hidden("name", $user->name);
@@ -1179,6 +1178,7 @@ function user_page() {
case t("Save user information"):
case "edit":
$output = user_edit($edit);
+ $theme = theme_init();
$theme->header();
$theme->box(t("User account"), user_menu());
$theme->box(t("Edit user information"), $output);