mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-29 03:40:55 +00:00
login.tpl hided between my not yet pushed files! You evil login.tpl :D that might fix the auto login problem
This commit is contained in:
parent
a7f41c448d
commit
2432071319
1 changed files with 16 additions and 0 deletions
16
code/ryzom/tools/server/ryzom_ams/www/html/inc/login.php
Normal file
16
code/ryzom/tools/server/ryzom_ams/www/html/inc/login.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
function login(){
|
||||
if ( helpers :: check_if_game_client () ){
|
||||
$result = Helpers::check_login_ingame();
|
||||
if( $result != "FALSE"){
|
||||
//handle successful login
|
||||
$_SESSION['user'] = $result['name'];
|
||||
$_SESSION['id'] = WebUsers::getId($result['id']);
|
||||
$_SESSION['ticket_user'] = Ticket_User::constr_ExternId($_SESSION['id']);
|
||||
//go back to the index page.
|
||||
header( 'Location: index.php' );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue