summaryrefslogtreecommitdiff
path: root/account.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-17 20:35:48 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-17 20:35:48 +0000
commit3d73a48edcf62bed0033fcea1aebcedb23e7c197 (patch)
tree88257dc7dcfb497e8223db6cf77b0daab05911c0 /account.php
parent03c06a86ebb9521f0a81343e1648a87c5ea9247f (diff)
downloadbrdo-3d73a48edcf62bed0033fcea1aebcedb23e7c197.tar.gz
brdo-3d73a48edcf62bed0033fcea1aebcedb23e7c197.tar.bz2
- 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.
Diffstat (limited to 'account.php')
-rw-r--r--account.php8
1 files changed, 4 insertions, 4 deletions
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 .= "<TABLE BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"1\">\n";
- $output .= " <TR><TD ALIGN=\"right\"><B>". t("Username") .":</B></TD><TD>$account->userid</TD></TR>\n";
+ $output .= " <TR><TD ALIGN=\"right\"><B>". t("Username") .":</B></TD><TD>". check_output($account->userid) ."</TD></TR>\n";
$output .= " <TR><TD ALIGN=\"right\"><B>". t("E-mail") .":</B></TD><TD>". format_email($account->fake_email) ."</TD></TR>\n";
$output .= " <TR><TD ALIGN=\"right\"><B>". t("Homepage") .":</B></TD><TD>". format_url($account->url) ."</TD></TR>\n";
$output .= " <TR><TD ALIGN=\"right\"><B>". t("Bio") .":</B></TD><TD>". check_output($account->bio) ."</TD></TR>\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);