国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > 帝國Empire > 正文

帝國CMS取消會員注冊時郵箱必填的方法

2024-07-09 22:50:28
字體:
來源:轉載
供稿:網友

帝國CMS取消會員注冊時郵箱必填的方法 

以帝國CMS7.2為例:

打開 /e/member/class/member_registerfun.php 文件

1)找到

  1. if(!chemail($email))
  2. {
  3. printerror('EmailFail','',1);
  4. }

將其刪除或者注釋掉

2)找到

  1. if($pr['regemailonly'])
  2. {
  3. $num=$empire->gettotal("select count(*) as total from ".eReturnMemberTable()." where ".egetmf('email')."='$email' limit 1");
  4. if($num)
  5. {
  6. printerror('ReEmailFail','',1);
  7. }
  8. }

將其刪除或者注釋掉

3)找到

  1. if(!$username||!$password||!$email)

修改為

  1. if(!$username||!$password)

到這里,網上隨處可以搜索到,但是還沒完!

為什么這么說呢?

  • 因為用戶可能編輯信息,那時將變成必填。
  • 管理員后臺可能修改用戶信息,那時也是必填的。

取消會員編輯個人信息時郵箱必填

打開 /e/member/class/member_editinfofun.php

4)找到

  1. //郵箱
  2. $email=trim($add['email']);
  3. if(!$email||!chemail($email))
  4. {
  5. printerror("EmailFail","history.go(-1)",1);
  6. }
  7. $email=RepPostStr($email);

將其刪除或者注釋掉

5)找到

  1. //郵箱
  2. $pr=$empire->fetch1("select regemailonly from {$dbtbpre}enewspublic limit 1");
  3. if($pr['regemailonly'])
  4. {
  5. $num=$empire->gettotal("select count(*) as total from ".eReturnMemberTable()." where ".egetmf('email')."='$email' and ".egetmf('userid')."<>'$userid' limit 1");
  6. if($num)
  7. {
  8. printerror("ReEmailFail","history.go(-1)",1);
  9. }
  10. }

將其刪除或者注釋掉。

取消管理員編輯會員信息時郵箱必填

6)找到

  1. if(!trim($add[userid])||!trim($add[email])||!trim($add[username])||!$add[groupid])

改為

  1. if(!trim($add[userid])||!trim($add[username])||!$add[groupid])

7)找到

  1. $add[email]=RepPostStr($add[email]);

將其刪除或者注釋掉。

8)找到

  1. $email=RepPostStr($add['email']);

將其刪除或者注釋掉。

9)找到

  1. if($email)
  2. {
  3. $where.=" and ".egetmf('email')." like '%$email%'";
  4. }

將其刪除或者注釋掉。

至此,才是真正的取消會員郵箱必填的完整方法!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 拉萨市| 蕲春县| 江永县| 阜南县| 米泉市| 潮安县| 荥阳市| 满洲里市| 漳州市| 五台县| 衡南县| 宽城| 高台县| 马关县| 康乐县| 楚雄市| 迁安市| 外汇| 汉中市| 喜德县| 夏津县| 循化| 九台市| 泰来县| 天全县| 玉龙| 龙泉市| 新平| 本溪市| 双峰县| 云浮市| 汾阳市| 临猗县| 洛阳市| 伊金霍洛旗| 紫金县| 河北区| 五华县| 方城县| 湄潭县| 高州市|