require_once get_file_loc('smr_sector.inc'); // register game_id SmrSession::$game_id = $var["game_id"]; // check if hof entry is there $db->query("SELECT * FROM account_has_stats WHERE account_id = " . SmrSession::$old_account_id); if (!$db->nf()) { $db->query("INSERT INTO account_has_stats (account_id, HoF_name, games_joined) VALUES ({$account->account_id}, " . format_string($account->login, true) . ", 1)"); } $player = new SMR_PLAYER(SmrSession::$old_account_id, $var["game_id"]); include get_file_loc('out_check.php'); $player->last_sector_id = 0; $player->last_active = time(); $player->update(); // get rid of old plotted course $player->delete_plotted_course(); // log $account->log(2, "Player entered game " . SmrSession::$game_id, $player->sector_id); $container = array(); $container["url"] = "skeleton.php"; if ($player->land_on_planet == "TRUE") { $container["body"] = "planet_main.php"; } else { $container["body"] = "current_sector.php"; } require_once get_file_loc('smr_alliance.inc'); require_once get_file_loc("smr_force.inc"); require_once get_file_loc("smr_planet.inc"); require_once get_file_loc("smr_port.inc"); require_once get_file_loc('smr_sector.inc'); $player = new SMR_PLAYER(SmrSession::$old_account_id, SmrSession::$game_id);