From 3d69e377e0cced892fece9323d2d6d63df0d1b90 Mon Sep 17 00:00:00 2001 From: Quitta Date: Tue, 17 Sep 2013 04:58:02 +0200 Subject: [PATCH] it works, though this will also forward the client to the success page --HG-- branch : quitta-gsoc-2013 --- .../server/ryzom_ams/ams_lib/ingame_templates/register.tpl | 2 +- code/ryzom/tools/server/ryzom_ams/www/html/func/add_user.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/register.tpl b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/register.tpl index d2ecae811..90913b807 100644 --- a/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/register.tpl +++ b/code/ryzom/tools/server/ryzom_ams/ams_lib/ingame_templates/register.tpl @@ -87,7 +87,7 @@ name="Submit" value="Continue" /> - +
$_SERVER['REQUEST_TIME'] ); $status = write_user( $edit ); + if(Helpers::check_if_game_client()){ + //if registering ingame then we have to set the header and dont need to reload the template. + header('Location: email_sent.php'); + exit; + } $pageElements['status'] = $status; $pageElements['no_visible_elements'] = 'TRUE'; $pageElements['ingame_webpath'] = $INGAME_WEBPATH;