📄 webmail_submit.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_all.php");
include_once("inc/check_type.php");
?>
<html>
<head>
<title>邮箱新建与更新</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<?
if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $EMAIL))
{
Message("警告","您没有输入有效的 Email 地址!");
Button_Back();
exit;
}
$EMAIL_PASS=encrypt_str($EMAIL_PASS,"webmail");
if($OPERATION==1)
{
$query = "SELECT * from webmail where EMAIL='$EMAIL' and USER_ID='$LOGIN_USER_ID'";
$cursor= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
{
Message("警告","输入的 Email 地址已存在!");
Button_Back();
exit;
}
$query="insert into WEBMAIL(EMAIL,USER_ID,POP_SERVER,SMTP_SERVER,LOGIN_TYPE,SMTP_PASS,EMAIL_PASS) VALUES ('$EMAIL', '$LOGIN_USER_ID','$POP_SERVER','$SMTP_SERVER','$LOGIN_TYPE','$SMTP_PASS','$EMAIL_PASS')";
}
else
$query="update WEBMAIL set POP_SERVER='$POP_SERVER',SMTP_SERVER='$SMTP_SERVER',LOGIN_TYPE='$LOGIN_TYPE',SMTP_PASS='$SMTP_PASS',EMAIL_PASS='$EMAIL_PASS' where EMAIL='$EMAIL'";
exequery($connection,$query);
header("location: index.php");
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -