首页/ 资源分享/ 正文

emlog pro去除未注册提示

微站长 3年前 1976 0

申明:仅为模板开发,去除提示使用!如果喜欢该程序,请赞助原作者。

火狐截图_2021-10-15T16-50-15.792Z.png

  1. 1、去除 注册码验证,原始文件36-57行。(路径:include\lib\register.php)

  2.     public static function checkEmKey($emkey) {
    //        if (empty($emkey)) {
    //            return false;
    //        }
    //
    //        $emcurl = new EmCurl();
    //        $emcurl->setPost(['emkey' => $emkey]);
    //        $emcurl->request(OFFICIAL_SERVICE_HOST . 'proauth/register');
    //        if ($emcurl->getHttpStatus() !== 200) {
    //            return false;
    //        }
    //        $response = $emcurl->getRespone();
    //        $response = json_decode($response, 1);
    //        if ($response['code'] !== 200) {
    //            $CACHE = Cache::getInstance();
    //            Option::updateOption('emkey', '');
    //            $CACHE->updateCache('options');
    //            return false;
    //        }
     
            return true;
        }
  3. 2、修改原始文件27-31行。(路径:admin\store.php)

  4.     if ($ret['code'] === MSGCODE_EMKEY_INVALID) {
    //        Option::updateOption('emkey', '');
    //        $CACHE->updateCache('options');
    //        emDirect("./register.php?error_store=1");
        }
  5. 3、修改原始文件54-57行。(路径:admin\store.php)

  6.     if ($ret['code'] === MSGCODE_EMKEY_INVALID) {
            /* Option::updateOption('emkey', '');
            $CACHE->updateCache('options');
            emDirect("./register.php?error_store=1"); */
        }

第二步和第三步是为了防止手贱的点【商店】,导致授权码重置。

分享到:

如果您喜欢本站,点击这儿不花一分钱捐赠本站

资源解压密码默认为:vzzw.com www.vzzw.com

本站部分资源收集于网络,如有侵权请联系9108780#qq.com(#替换成@)

THE END

评论列表

暂时没有评论

发表评论: