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

📄 webmail_edit.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 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<form action=\"webmail_submit.php\"  method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n<table border=\"0\" width=\"100%\" cellspacing=\"1\"  cellpadding=\"0\">\r\n   <tr class=\"tablehead1\">\r\n    <td ><img src=\"/images/notify_new.gif\" align=\"absmiddle\" height=\"18\"> 新建邮件账户\r\n    </td>\r\n  </tr>\r\n  <tr class=\"tablehead2\"><td>\r\n  <input type=\"image\" src=\"/images/button/save.gif\" title=\"保存\">\r\n  <a href=\"in";
echo "dex.php\"><img src=\"/images/button/return.gif\" border=\"0\" title=\"返回\"></a>\r\n  </td></tr>\r\n</table>\r\n<hr width=\"95%\" height=\"1\" align=\"left\" color=\"#ffffff\">\r\n<table border=\"0\" width=\"100%\" cellpadding=\"5\" cellspacing=\"1\" class=\"small\">\r\n    <tr>\r\n      <td nowrap class=\"TableLine2\" width=\"25%\"> 电子邮件地址:</td>\r\n      <td class=\"TableLine1\"> \r\n        <input type=\"text\" name=\"EMAIL\" size=\"30\" maxlength=\"20";
echo "0\" value=\"";
echo $EMAIL;
echo "\" ";
if ( $EMAIL != "" )
{
	echo "readonly ";
}
echo " class=\"BigInput\">\r\n        <br> 例如 abc@263.net\r\n      </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableLine2\"> 接收邮件服务器(POP3):</td>\r\n      <td class=\"TableLine1\"> \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=\"TableLine2\"> 发送邮件服务器(SMTP):</td>\r\n      <td class=\"TableLine1\">\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=\"TableLine2\" valign=\"top\"> 登录账户格式:</td>\r\n      <td class=\"TableLine1\">\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>\r\n        263 等邮局要求账户格式为如abc, 即仅用户名. <br>\r\n        yeah.net 等邮局要求账户格式为如 abc@yeah.net, 即<br>\r\n        用户名@主机名. </td>\r\n    </tr>\r\n    <tr>\r\n      <td nowrap class=\"TableLine2\" valign=\"top\"> SMTP服务器需要身份验证:</td>\r\n      <td class=\"TableLine1\">\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      <input type=\"hidden\" name=\"OPERATION\" value=\"";
echo $OPERATION;
echo "\">\r\n       \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 + -