emlog pro去除未注册提示
微站长
3年前
1976
0
申明:仅为模板开发,去除提示使用!如果喜欢该程序,请赞助原作者。
1、去除 注册码验证,原始文件36-57行。(路径:include\lib\register.php)
2、修改原始文件27-31行。(路径:admin\store.php)
3、修改原始文件54-57行。(路径:admin\store.php)
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; }
if ($ret['code'] === MSGCODE_EMKEY_INVALID) { // Option::updateOption('emkey', ''); // $CACHE->updateCache('options'); // emDirect("./register.php?error_store=1"); }
if ($ret['code'] === MSGCODE_EMKEY_INVALID) { /* Option::updateOption('emkey', ''); $CACHE->updateCache('options'); emDirect("./register.php?error_store=1"); */ }
第二步和第三步是为了防止手贱的点【商店】,导致授权码重置。
THE END
评论列表