📄 webmail_submit.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/check_type.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</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
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( );
}
$connection = openconnection( );
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) VALUES ('{$EMAIL}', '{$LOGIN_USER_ID}','{$POP_SERVER}','{$SMTP_SERVER}','{$LOGIN_TYPE}','{$SMTP_PASS}')";
}
else
{
$query = "update WEBMAIL set POP_SERVER='{$POP_SERVER}',SMTP_SERVER='{$SMTP_SERVER}',LOGIN_TYPE='{$LOGIN_TYPE}',SMTP_PASS='{$SMTP_PASS}' where EMAIL='{$EMAIL}'";
}
exequery( $connection, $query );
header( "location: index.php" );
echo "\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -