$mail->gpg_set_type(GPG_ASYMMETRIC); $mail->gpg_set_sign(1); $mail->gpg_set_signing_key('0x0DD626E6'); $mail->gpg_set_homedir('/home/apt/.gnupg/'); $mail->sender("*****@*****.**"); $mail->from($LOGIN_DATA['email']); $mail->add_to('*****@*****.**'); $mail->subject('TVE Application Submission: ' . $_POST['name']); if ($_FILES['source_file']) { $mail->attachment($_FILES['source_file']['tmp_name'], $_FILES['source_file']['type'], $_FILES['source_file']['name']); } foreach ($_POST as $key => $val) { if ($key == 'source_file') { continue; } $mail->body($key . ': ' . $val . "\n"); } $mail->body('User: '******'user_id']); $successful_submit = $mail->send(); } } switch (use_type(array('application/xhtml+xml', 'text/html', 'text/plain'), true)) { case 'text/plain': $text = @file_get_contents(dirname(__FILE__) . '/faq.html'); header('Content-Type: text/plain; charset=utf-8'); echo wordwrap(strip_tags(str_replace('<li>', '* ', $text))); break; case 'text/html': $noxml = true; case 'application/xhtml+xml': $title = 'Developers';