2014-05-07
我的站长站
帝国CMS邮箱验证插件(判断邮箱是否已注册)
- 插件编号:40
- 插件分类:帝国cms插件
- 点击次数:1413
- 插件编码:GBK/UTF
- 插件版本:ecms6.6
- 插件大小:207.65 KB
- 下载权限:普通 / VIP
- 插件售价:免费下载
- 下载次数:109次
1、配置邮箱发送
下载的附件,修改user.php文件

2、判断邮箱是否已注册
e/class/user.php文件下增加下面的代码
function eail_tis($error="",$gotourl="",$ecms=1){
global $empire,$editor,$ecmslang,$public_r;
if($editor==1){$a="../";}
elseif($editor==2){$a="../../";}
elseif($editor==3){$a="../../../";}
else{$a="";}
if(strstr($gotourl,"(")||empty($gotourl))
{
$gotourl_js="history.go(-1)";
$gotourl="javascript:history.go(-1)";
}
else
{$gotourl_js="self.location.href='$gotourl';";}
if(empty($error))
{$error="DbError";}
@include($a."../message/index.php");
$empire=null;
exit();
}
//加入判断是否该邮箱为未注册的
$eail=$empire->fetch1("select count(*) as email from ".$user_tablename." where email='".$email."'");
if ($eail[email]!=0){
eail_tis("该邮箱已注册过了,请使用其他的邮箱注册","history.go(-1)",1);
} 相关专题
- 常用邮箱SMTP服务器地址大全 [2024-08-29]
- 基于cloudflare搭建的临时邮箱开源源码 [2024-06-27]
- 免费邮箱批量群发工具 [2024-01-14]
- 国外免费邮箱分享 [2023-09-06]
- 免费临时匿名收件邮箱在线工具大全 [2023-08-29]
下载地址

