From 0c46da1f6213b29598f8cab741d2f69c18fd2d17 Mon Sep 17 00:00:00 2001 From: Quitta Date: Wed, 19 Jun 2013 21:05:12 +0200 Subject: [PATCH] small fixes of last night, still have to figure out a way to get the mkdir warning dissapear! --- .../tools/server/ryzom_ams/ams_lib/autoload/helpers.php | 4 ++-- .../ryzom/tools/server/ryzom_ams/www/html/inc/add_user.php | 1 + code/ryzom/tools/server/ryzom_ams/www/html/index.php | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php index daed71db8..2712e0aee 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/helpers.php @@ -44,9 +44,9 @@ class Helpers{ foreach ( $variables[$template] as $key => $value ){ $smarty -> assign( $key, $value ); } - if( $vars['permission'] == 2 ){ + if( isset($vars['permission']) && $vars['permission'] == 2 ){ $inherited = "extends:layout_admin.tpl|"; - }else if($vars['permission'] == 1){ + }else if( isset($vars['permission']) && $vars['permission'] == 1){ $inherited = "extends:layout_user.tpl|"; }else{ $inherited =""; diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/inc/add_user.php b/code/ryzom/tools/server/ryzom_ams/www/html/inc/add_user.php index da92e14f9..96b90acb4 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/inc/add_user.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/inc/add_user.php @@ -25,6 +25,7 @@ function add_user(){ $result['prevEmail'] = $_POST["Email"]; $result['no_visible_elements'] = 'TRUE'; helpers :: loadtemplate( 'register', $result); + exit; } } diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/index.php b/code/ryzom/tools/server/ryzom_ams/www/html/index.php index 941f9d628..eada82bb2 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/index.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/index.php @@ -1,5 +1,6 @@