diff options
author | Anika Henke <anika@selfthinker.org> | 2011-02-20 18:33:02 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2011-02-20 18:33:02 +0000 |
commit | bf413a4e50ea09a0345533c5fb1d07e963bd6368 (patch) | |
tree | 7d656536e9a2b100c607dc33a35fa4d6336199de /inc/template.php | |
parent | b22b675ae4f8161cdffa97f24fa49e711ef7157d (diff) | |
download | rpg-bf413a4e50ea09a0345533c5fb1d07e963bd6368.tar.gz rpg-bf413a4e50ea09a0345533c5fb1d07e963bd6368.tar.bz2 |
added 'register' and 'resendpwd' to action links and buttons
Attention: $lang['register'] has been renamed to $lang['btn_register'],
anyone using that in any plugin or template should adjust it.
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php index 7ac3437fb..b873d818f 100644 --- a/inc/template.php +++ b/inc/template.php @@ -93,7 +93,7 @@ function tpl_content_core(){ break; case 'index': html_index($IDX); #FIXME can this be pulled from globals? is it sanitized correctly? - break; + break; case 'backlink': html_backlinks(); break; @@ -593,6 +593,16 @@ function tpl_get_action($type) { $type = 'logout'; } break; + case 'register': + if($_SERVER['REMOTE_USER']){ + return false; + } + break; + case 'resendpwd': + if($_SERVER['REMOTE_USER']){ + return false; + } + break; case 'admin': if(!$INFO['ismanager']){ return false; |