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