Hi,
I'm getting a error when I try connecting the client: Screenshot by Lightshot
I changed the User_tickets to Authticket in the emulator?
I'm using BTW Thunderbolt 3.0
Client.php
PHP Code:
<?php
define('USER_ACCES', true);include('../../bootstrap.php');
if(Core::GetSystemSettings('client_status') == 'closed') (!User::$permissions['client_login'] ?: Core::redirect('me'));
$tpl = new Template();
$tpl->enableSecurity();
$tpl->AddFiles('client');
$tpl->Assign('local_site', array('name' => 'Client'));
$tpl->Assign('usertags', User::GetUsernamesArray());
$ticket = User::SSOTicket();
$flashvars = 'client.starting=Hallo '.User::$username.', je koffers worden naar je kamer gebracht...';$flashvars .= '&client.allow.cross.domain=1';$flashvars .= '&client.notify.cross.domain=1';$flashvars .= '&client.hotel_view.show_on_startup=1';$flashvars .= '&site.url='.HTTP;$flashvars .= '&url.prefix='.HTTP;$flashvars .= '&client.reload.url='.HTTP.'/client';$flashvars .= '&client.fatal.error.url='.HTTP.'/client-disconnection-error';$flashvars .= '&hotelview.banner.url=http://127.0.0.1/gamedata/supersecret.php';$flashvars .= '&client.connection.failed.url='.HTTP.'/client-disconnection-connect';$flashvars .= '&connection.info.host='.Core::GetSystemSettings('client_ip');$flashvars .= '&connection.info.port='.Core::GetSystemSettings('client_port');$flashvars .= '&external.variables.txt='.Core::GetSystemSettings('client_external_variables');$flashvars .= '&external.texts.txt='.Core::GetSystemSettings('client_external_flash_texts');$flashvars .= '&productdata.load.url='.Core::GetSystemSettings('client_productdata');$flashvars .= '&furnidata.load.url='.Core::GetSystemSettings('client_furnidata');$flashvars .= '&use.sso.ticket=1';$flashvars .= '&sso.ticket='.$ticket.'';$flashvars .= '&processlog.enabled=1';$flashvars .= '&flash.client.url='.Core::GetSystemSettings('client_swf_directory');$flashvars .= '&flash.client.origin=popup';$tpl->Assign('flashvars', $flashvars);
$tpl->Assign('swf', array( 'habbo' => Core::GetSystemSettings('client_swf_habbo'), 'directory' => Core::GetSystemSettings('client_swf_directory')));
Core::$DB->prepare('UPDATE users SET auth_ticket = "'.$ticket.'", last_online = "'.time().'", ip_last = "'.User::GetIp().'" WHERE id = "'.User::GetUserInfo('username', User::$username, 'id').'"')->execute();
$tpl->Display('comp-client.tpl');
?>