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 56715943b..09cec04e9 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 @@ -10,14 +10,14 @@ class Helpers{ $smarty = new Smarty; // turn smarty debugging on/off - $smarty -> debugging = true; + $smarty -> debugging = false; // caching must be disabled for multi-language support $smarty -> caching = false; $smarty -> cache_lifetime = 120; helpers :: create_folders (); - if ( !helpers :: check_if_game_client () or $forcelibrender = true ){ + if ( helpers :: check_if_game_client () or $forcelibrender = false ){ $smarty -> template_dir = $AMS_LIB . '/ingame_templates/'; $smarty -> setConfigDir( $AMS_LIB . '/configs' ); }else{ @@ -44,7 +44,12 @@ class Helpers{ foreach ( $variables[$template] as $key => $value ){ $smarty -> assign( $key, $value ); } - $smarty -> display( $template . '.tpl' ); + if($vars['permission'] == 1){ + $inherited = "layout_admin.tpl"; + }else{ + $inherited = "layout_user.tpl"; + } + $smarty -> display( 'extends:' . $inherited .'|home.tpl' ); } public function create_folders(){ diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/css/charisma-app.css b/code/ryzom/tools/server/ryzom_ams/www/html/css/charisma-app.css index 7b6ae40fa..1684e5fd9 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/css/charisma-app.css +++ b/code/ryzom/tools/server/ryzom_ams/www/html/css/charisma-app.css @@ -452,7 +452,7 @@ background: #DEDEDE; } .login-header{ padding-top:30px; -height:120px; +height:190px; } .pull-left{ float:left !important; diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/img/mainlogo.png b/code/ryzom/tools/server/ryzom_ams/www/html/img/mainlogo.png new file mode 100644 index 000000000..06d01c716 Binary files /dev/null and b/code/ryzom/tools/server/ryzom_ams/www/html/img/mainlogo.png differ diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/img/ryzomlogo.psd b/code/ryzom/tools/server/ryzom_ams/www/html/img/ryzomlogo.psd new file mode 100644 index 000000000..e7f614c29 Binary files /dev/null and b/code/ryzom/tools/server/ryzom_ams/www/html/img/ryzomlogo.psd differ diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/img/ryzomtop.png b/code/ryzom/tools/server/ryzom_ams/www/html/img/ryzomtop.png new file mode 100755 index 000000000..bbed52f46 Binary files /dev/null and b/code/ryzom/tools/server/ryzom_ams/www/html/img/ryzomtop.png differ diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/index_old.php b/code/ryzom/tools/server/ryzom_ams/www/html/index_old.php index 9556f50c7..b8be452dd 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/index_old.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/index_old.php @@ -16,5 +16,7 @@ $page = 'home'; if ( isset( $_GET["page"] ) ){ $page = $_GET["page"]; } +//temporary set permission to 1 which = admin mode +$return = array('permission' => 1); -helpers :: loadTemplate( 'register' , $return ); +helpers :: loadTemplate( 'home' , $return ); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js b/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js index 579174176..6445ef69a 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js +++ b/code/ryzom/tools/server/ryzom_ams/www/html/js/charisma.js @@ -1,7 +1,7 @@ $(document).ready(function(){ //themes, change CSS with JS //default theme(CSS) is cerulean, change it if needed - var current_theme = $.cookie('current_theme')==null ? 'cerulean' :$.cookie('current_theme'); + var current_theme = $.cookie('current_theme')==null ? 'spacelab' :$.cookie('current_theme'); switch_theme(current_theme); $('#themes a[data-value="'+current_theme+'"]').find('i').addClass('icon-ok'); diff --git a/code/ryzom/tools/server/ryzom_ams/www/html/login.php b/code/ryzom/tools/server/ryzom_ams/www/html/login.php index 202441863..9bb640c2c 100644 --- a/code/ryzom/tools/server/ryzom_ams/www/html/login.php +++ b/code/ryzom/tools/server/ryzom_ams/www/html/login.php @@ -4,7 +4,7 @@ include('header.php'); ?>
Welcome to the Ryzom Account Management System!
+ +Welcome to the Ryzom Account Management System!
+ +Welcome to the Ryzom Account Management System!
+ +Welcome to the Ryzom Account Management System!
+ +