it works, though this will also forward the client to the success page

This commit is contained in:
Quitta 2013-09-17 04:58:02 +02:00
parent e889c639db
commit 6cc2c8cfc3
2 changed files with 6 additions and 1 deletions

View file

@ -87,7 +87,7 @@
name="Submit"
value="Continue" />
</div>
<input type="hidden" name="function" value="add_user">
</form>
<div id="signupTooltip"

View file

@ -27,6 +27,11 @@ function add_user(){
'access' => $_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;