代码拉取完成,页面将自动刷新
<?php
require "include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();
if (get_user_class() < UC_SYSOP)
permissiondenied();
$action = isset($_POST['action']) ? htmlspecialchars($_POST['action']) : '';
if ($action == "sendmail") {
$email = safe_email(htmlspecialchars(trim($_POST['email'])));
if (!check_email($email)) {
stderr($lang_mailtest['std_error'], $lang_mailtest['std_invalid_email_address']);
}
$title = $SITENAME . $lang_mailtest['text_smtp_testing_mail'];
$body = <<<EOD
{$lang_mailtest['mail_test_mail_content']}
EOD;
$SITENAME_ENCODE = "=?UTF-8?B?" . base64_encode($SITENAME) . "?=";
sent_mail($email, $SITENAME_ENCODE, $SITEEMAIL, change_email_encode(get_langfolder_cookie(), $title), change_email_encode(get_langfolder_cookie(), $body), '', false, false, '', get_email_encode(get_langfolder_cookie()));
stderr($lang_mailtest['std_success'], $lang_mailtest['std_success_note']);
} else {
stdhead($lang_mailtest['head_mail_test']);
print("<h1 align=\"center\">" . $lang_mailtest['text_mail_test'] . "</h1>");
print("<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n");
print("<form method='post' action='mailtest.php'>");
print("<input type='hidden' name='action' value='sendmail'>");
tr($lang_mailtest['row_enter_email'], "<input type='text' name='email' size=35><br />" . $lang_mailtest['text_enter_email_note'], 1);
print("<tr><td colspan=\"2\" align=\"center\"><input type='submit' name='sendmail' value='" . $lang_mailtest['submit_send_it'] . "'></td></tr>");
print("</form></table>");
stdfoot();
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。