mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
login.tpl hided between my not yet pushed files! You evil login.tpl :D that might fix the auto login problem
--HG-- branch : quitta-gsoc-2013
This commit is contained in:
parent
40883e8afc
commit
ca769bf24b
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