0) { $info=mysql_fetch_assoc($result); $circuit_code = $info['circuit_code']; $secure_session_id=$info['secure_session_id']; $session_id=$info['session_id']; $query = "SELECT * FROM local_user_profiles WHERE userprofile_LLUUID='$agent_id'"; $result=mysql_query($query); $userinfo=mysql_fetch_assoc($result); $firstname=$userinfo['profile_firstname']; $lastname=$userinfo['profile_lastname']; $agent_id=$userinfo['userprofile_LLUUID']; output_xml_block("usersession",Array( 'authkey' => $sim_sendkey, 'circuit_code' => $circuit_code, 'agent_id' => $agent_id, 'session_id' => $session_id, 'secure_session_id' => $secure_session_id, 'firstname' => $firstname, 'lastname' => $lastname )); } } ?>