📄 webmail_edit.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>新建邮件账户</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\r\n";
echo "<s";
echo "cript Language=\"JavaScript\">\r\nfunction CheckForm()\r\n{\r\n\r\n if(document.form1.EMAIL.value==\"\"||document.form1.POP_SERVER.value==\"\"||document.form1.SMTP_SERVER.value==\"\")\r\n { alert(\"邮件账户信息均不能为空!\");\r\n return (false);\r\n }\r\n\r\n return (true);\r\n}\r\n</script>\r\n</head>\r\n\r\n";
if ( $EMAIL != "" )
{
$connection = openconnection( );
$query = "SELECT * from WEBMAIL where EMAIL='{$EMAIL}' and USER_ID='{$LOGIN_USER_ID}'";
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$POP_SERVER = $ROW['POP_SERVER'];
$SMTP_SERVER = $ROW['SMTP_SERVER'];
$LOGIN_TYPE = $ROW['LOGIN_TYPE'];
$SMTP_PASS = $ROW['SMTP_PASS'];
}
$OPERATION = 2;
}
else
{
$OPERATION = 1;
}
echo "\r\n<body class=\"bodycolor\" topmargin=\"5\" ";
if ( $OPERATION == 1 )
{
echo "onload='document.form1.EMAIL.focus();'";
}
echo ">\r\n\r\n<table border=\"0\" width=\"90%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/notify_new.gif\" align=\"absmiddle\">";
echo "<s";
echo "pan class=\"big3\"> 新建邮件账户</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<hr width=\"95%\" height=\"1\" align=\"left\" class=\"big1\">\r\n\r\n<table border=\"0\" width=\"500\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <form action=\"webmail_submit.php\" method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n <tr>\r\n <td nowrap class=\"TableData\"> 电子邮件地址:</td>\r\n <t";
echo "d class=\"TableData\"> \r\n <input type=\"text\" name=\"EMAIL\" size=\"30\" maxlength=\"200\" value=\"";
echo $EMAIL;
echo "\" ";
if ( $EMAIL != "" )
{
echo "readonly class='BigStatic'";
}
else
{
echo "class='BigInput' ";
}
echo ">\r\n <br> 例如 abc@263.net\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\"> 接收邮件服务器(POP3):</td>\r\n <td class=\"TableData\"> \r\n <input type=\"text\" name=\"POP_SERVER\" size=\"20\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $POP_SERVER;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\"> 发送邮件服务器(SMTP):</td>\r\n <td class=\"TableData\">\r\n <input type=\"text\" name=\"SMTP_SERVER\" size=\"20\" maxlength=\"100\" class=\"BigInput\" value=\"";
echo $SMTP_SERVER;
echo "\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\" valign=\"top\"> 登录账户格式:</td>\r\n <td class=\"TableData\">\r\n ";
echo "<s";
echo "elect name=\"LOGIN_TYPE\" class=\"BigSelect\">\r\n <option value=\"1\" ";
if ( $LOGIN_TYPE == "1" )
{
echo "selected";
}
echo ">仅用户名</option>\r\n <option value=\"2\" ";
if ( $LOGIN_TYPE == "2" )
{
echo "selected";
}
echo ">用户名@主机名</option>\r\n </select>\r\n <br>说明:\r\n <br>263 等邮局要求账户格式为如 abc,即仅用户名。\r\n <br>yeah.net 等邮局要求账户格式为如 abc@yeah.net,即<br>用户名@主机名。\r\n </td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableData\" valign=\"top\"> SMTP服务器需要身份验证:</td>\r\n <td class=\"TableData\">\r\n ";
echo "<s";
echo "elect name=\"SMTP_PASS\" class=\"BigSelect\">\r\n <option value=\"yes\" ";
if ( $SMTP_PASS == "yes" )
{
echo "selected";
}
echo ">是</option>\r\n <option value=\"no\" ";
if ( $SMTP_PASS == "no" )
{
echo "selected";
}
echo ">否</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr align=\"center\" class=\"TableControl\">\r\n <td colspan=\"2\" nowrap>\r\n <input type=\"hidden\" name=\"OPERATION\" value=\"";
echo $OPERATION;
echo "\">\r\n <input type=\"submit\" value=\"保存\" class=\"BigButton\"> \r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='index.php'\">\r\n </td>\r\n </tr>\r\n </table>\r\n</form>\r\n\r\n";
message( "", "说明:请关闭OA服务器的瑞星邮件发送、接收监控,以免引起误报。" );
echo "\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -