⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 support_email.php

📁 一个全功能的国外博客商业程序
💻 PHP
字号:
<?
$page = "support_email.php";
include "header.php";

if(isset($_POST['task'])) { $task = $_POST['task']; } else { $task = "main"; }





if($task == "dosend") {
$submit = $_POST['submit'];

if($submit == "$support_email29") {
header("Location: support.php");
exit();
}

$email = $_POST['email'];
$issue = $_POST['issue'];
$priority = $_POST['priority'];
$date = cdate("g:i A \o\\n D, M y", time());
$message = "$support_email1\n\n$support_email2 $user_info[u_id]\n$support_email3 $user_info[username]\n$support_email4 $email\n$support_email5 $_SERVER[REMOTE_ADDR]\n$support_email6 $date\n$support_email7\n";
$message .= stripslashes("$_POST[message]");

$headers = "From: $email\r\n";

if($email == "") { echo $head; error(15); echo $foot; exit(); }
if($message == "") { echo $head; error(15); echo $foot; exit(); }

// SEND MAIL
mail("$admin_info[email]", "$support_email8 - $issue", $message, $headers);

echo $head;
echo "
<h2>$support_email9</h2>
$support_email10
<br><br>
<form action='support.php' method='POST'>
<input type='submit' class='button' value='$support_email11'>
</form>
";
echo $foot;
exit();
}





if($task == "main") {
echo $head;
echo "
<h2>$support_email12</h2>
$support_email13
<br><br>

<table cellpadding='0' cellspacing='0'>
<form action='support_email.php' method='POST'>

<tr>
<td valign='top'>
$support_email14<br>
<input type='text' class='text' name='email' value='$user_info[email]' size='25'>&nbsp;
</td>
<td valign='top'>
$support_email15<br>
<select name='issue'>
<option>$support_email16</option>
<option>$support_email17</option>
<option>$support_email18</option>
<option>$support_email19</option>
<option>$support_email20</option>
<option>$support_email21</option>
</select>&nbsp;
</td>
<td valign='top'>
$support_email22<br>
<select name='priority'>
<option>$support_email23</option>
<option>$support_email24</option>
<option SELECTED>$support_email25</option>
<option>$support_email26</option>
</select>
</td>
</tr>
</table>

<br>

<table cellpadding='0' cellspacing='0'>
<tr>
<td>
$support_email27<br>
<textarea name='message' rows='10' cols='70'></textarea>
</td>
</tr>
</table>

<br>

<input type='submit' name='submit' class='button' value='$support_email28'>
<input type='submit' name='submit' class='button' value='$support_email29'>
<input type='hidden' name='task' value='dosend'>
</form>
";
echo $foot;
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -