summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2011-02-20 18:33:02 +0000
committerAnika Henke <anika@selfthinker.org>2011-02-20 18:33:02 +0000
commitbf413a4e50ea09a0345533c5fb1d07e963bd6368 (patch)
tree7d656536e9a2b100c607dc33a35fa4d6336199de /inc/template.php
parentb22b675ae4f8161cdffa97f24fa49e711ef7157d (diff)
downloadrpg-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.php12
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;