$msg .= Lang::t('_PHONE', 'classroom') . ": " . $tel . $br_char; $msg .= $br_char . "----------------------------------" . $br_char; //$msg .= chelpCheckField(Get::req("help_req_txt", DOTY_STRING, "")); $msg .= Get::req("help_req_text", DOTY_STRING, ""); $msg .= $br_char . "----------------------------------" . $br_char; /** Getting client info */ $result = parse_user_agent(); $msg .= $br_char . "---------- CLIENT INFO -----------" . $br_char; $msg .= "IP: " . $_SERVER['REMOTE_ADDR'] . $br_char; $msg .= "USER AGENT: " . $_SERVER['HTTP_USER_AGENT'] . $br_char; $msg .= "OS: " . $result['platform'] . $br_char; $msg .= "BROWSER: " . $result['browser'] . " " . $result['version'] . $br_char; $msg .= "RESOLUTION: " . Get::req("help_req_resolution", DOTY_STRING, "") . $br_char; $msg .= "FLASH: " . Get::req("help_req_flash_installed", DOTY_STRING, "") . $br_char; $mailer = new DoceboMailer(); $mailer->IsHTML(true); $res = $mailer->SendMail($user_email, $help_email, $subject, $msg); $output = array('success' => $res); if (!$res) { $output['message'] = UIFeedback::perror(Lang::t('_OPERATION_FAILURE', 'menu')); } $json = new Services_JSON(); aout($json->encode($output)); break; default: break; } /** * Parses a user agent string into its important parts * * @author Jesse G. Donat <*****@*****.**>