summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-02-21 18:53:51 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-02-21 18:53:51 +0100
commitd012ef7d2a1019a89c7fbd8c2479d7c1ed10b526 (patch)
tree7c90009354601ab34473b4d6d376e4b73c45e3f7 /inc/template.php
parent84a355b61e53b5d8969c030679612a7b456777e9 (diff)
parent3240c7a0b3414f926ee76b2c4fff0a95ab33e916 (diff)
downloadrpg-d012ef7d2a1019a89c7fbd8c2479d7c1ed10b526.tar.gz
rpg-d012ef7d2a1019a89c7fbd8c2479d7c1ed10b526.tar.bz2
Merge remote-tracking branch 'origin/master'
Conflicts: inc/lang/bg/lang.php
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;