From 3d73a48edcf62bed0033fcea1aebcedb23e7c197 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 17 Jun 2001 20:35:48 +0000 Subject: - Merged "system settings" and "module settings" into one page. IMHO it wasn't a good idea to split them up in first place, and it turned out to be quite hard to decide where to put some variables. Also moved some variables around and even renamed a few variables while doing so. - Added a page_header() and page_footer() to all top-level .php pages. --- account.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'account.php') diff --git a/account.php b/account.php index 7035a49a2..bc4703b6c 100644 --- a/account.php +++ b/account.php @@ -133,7 +133,7 @@ function account_site_edit() { } else { $theme->header(); - if (variable_get("account_reg_allow", 1)) $theme->box(t("Create user account"), account_create()); + if (variable_get("account_register", 1)) $theme->box(t("Create user account"), account_create()); $theme->box(t("E-mail new password"), account_email()); $theme->footer(); } @@ -202,7 +202,7 @@ function account_user($uname) { } elseif ($uname && $account = account_get_user($uname)) { $output .= "\n"; - $output .= " \n"; + $output .= " \n"; $output .= " \n"; $output .= " \n"; $output .= " \n"; @@ -216,7 +216,7 @@ function account_user($uname) { else { // Display login form: $theme->header(); - if (variable_get("account_reg_allow", 1)) $theme->box(t("Create user account"), account_create()); + if (variable_get("account_register", 1)) $theme->box(t("Create user account"), account_create()); $theme->box(t("E-mail new password"), account_email()); $theme->footer(); } @@ -405,7 +405,7 @@ switch ($op) { account_email_submit(check_input($userid), check_input($email)); break; case t("Create account"): - if (variable_get("account_reg_allow", 1)) account_create_submit(check_input($userid), check_input($email)); + if (variable_get("account_register", 1)) account_create_submit(check_input($userid), check_input($email)); break; case t("Save user information"): account_user_save($edit); -- cgit v1.2.3
". t("Username") .":$account->userid
". t("Username") .":". check_output($account->userid) ."
". t("E-mail") .":". format_email($account->fake_email) ."
". t("Homepage") .":". format_url($account->url) ."
". t("Bio") .":". check_output($account->bio) ."