summaryrefslogtreecommitdiff
path: root/modules/account.module
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 /modules/account.module
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 'modules/account.module')
-rw-r--r--modules/account.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/account.module b/modules/account.module
index fe654f5a6..56ad34737 100644
--- a/modules/account.module
+++ b/modules/account.module
@@ -32,6 +32,11 @@ function account_help() {
<?php
}
+function account_conf_options() {
+ $output .= form_select(t("Public accounts"), "account_register", variable_get("account_register", 1), array("Disabled", "Enabled"), "If enabled, everyone can create a new user account. If disabled, new user accounts can only be created by site administrators.");
+ return $output;
+}
+
function account_password($min_length=6) {
mt_srand((double)microtime() * 1000000);
$words = array("foo","bar","guy","neo","tux","moo","sun","asm","dot","god","axe","geek","nerd","fish","hack","star","mice","warp","moon","hero","cola","girl","fish","java","perl","boss","dark","sith","jedi","drop","mojo");
@@ -291,7 +296,7 @@ function account_query($type = "") {
function account_admin() {
global $op, $edit, $id, $mod, $keys, $order, $name, $query;
- print "<SMALL><A HREF=\"admin.php?mod=account&op=access\">access control</A> | <A HREF=\"admin.php?mod=account&op=listing\">account listings</A> | <A HREF=\"admin.php?mod=account&op=search\">search account</A> | <A HREF=\"admin.php?mod=account&op=add\">add account</A> | <A HREF=\"admin.php?mod=account\">overview</A> | <A HREF=\"admin.php?mod=account&op=help\">help</A></SMALL><HR>";
+ print "<SMALL><A HREF=\"admin.php?mod=account&op=access\">access control</A> | <A HREF=\"admin.php?mod=account&op=add\">add new account</A> | <A HREF=\"admin.php?mod=account&op=listing\">account listings</A> | <A HREF=\"admin.php?mod=account&op=search\">search account</A> | <A HREF=\"admin.php?mod=account\">overview</A> | <A HREF=\"admin.php?mod=account&op=help\">help</A></SMALL><HR>";
$query = $query ? $query : 0;
$name = $name ? $name : $edit[name];