summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorMatthias Grimm <matthiasgrimm@users.sourceforge.net>2005-05-08 12:13:44 +0200
committerMatthias Grimm <matthiasgrimm@users.sourceforge.net>2005-05-08 12:13:44 +0200
commitca3a6df1c943c36a4b6eca3ad03f64d3d40b9b2c (patch)
tree1d47fdf0f940df5b801830dcfdb7da8e4e706713 /inc/html.php
parentf4f04d1599863f643ad54a17734ba8984aa0c759 (diff)
downloadrpg-ca3a6df1c943c36a4b6eca3ad03f64d3d40b9b2c.tar.gz
rpg-ca3a6df1c943c36a4b6eca3ad03f64d3d40b9b2c.tar.bz2
add user registration to admin page
If 'openregister' is not set the menue entry 'Add new user...' will be added to the admin page so that registering of new users is always possible through an GUI. If 'openregister is set the menu entry will be omitted to not to overload the admin page. darcs-hash:20050508101344-4145d-cb3f9e10f4b8d26dec516ce796e54ed12a1e2b53.gz
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php
index 9e736f702..cb076b76d 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -985,6 +985,7 @@ function html_debug(){
function html_admin(){
global $ID;
global $lang;
+ global $conf;
print p_locale_xhtml('admin');
@@ -992,7 +993,10 @@ function html_admin(){
// currently ACL only - more to come
ptln('<li><a href="'.wl($ID,'do=admin&amp;page=acl').'">'.$lang['admin_acl'].'</a></li>');
-
+ if (!$conf['openregister']){
+ ptln('<li><a href="'.wl($ID,'do=admin&amp;page=register').'">'.$lang['admin_register'].'</a></li>');
+ }
+
ptln('</ul>');
}