EMBLOG和EMBLOG RPO区别需知
EMBLOG和EMBLOG PRO在有些地方不一样。前者商店的东西多。后者东西少,如果安装了后者没有的模板或插件则会出错,而且后者有些模板也已经失效
开始破解
1.去除购买信息变更为已购买并解锁商店
安装好pro版本后,打开 EMBLOG PRO网站目录/include/lib/register.php文件。将13行到19行注释掉,37行到54行注释掉,参考文件:
<?php
/**
* register check
* @package EMLOG (www.emlog.net)
*/
class Register {
/**
* Check user is registered on the local side
*/
public static function isRegLocal() {
// $CACHE = Cache::getInstance();
// $options_cache = $CACHE->readCache('options');
// $emkey = $options_cache['emkey'] ?? '';
// if (empty($emkey)) {
// return false;
// }
return true;
}
/**
* Check user is registered on the server side
*/
public static function isRegServer() {
$CACHE = Cache::getInstance();
$options_cache = $CACHE->readCache('options');
$emkey = $options_cache['emkey'] ?? '';
return self::checkEmKey($emkey);
}
/**
* check emkey
*/
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;
}
}
2.变更首页titile文字。
打开 EMBLOG PRO网站目录include/lib/option.php文件,找到52行和53行。原代码为:
$options_cache['footer_info'] .= ' 未注册的PRO版本';
$options_cache['site_title'] = '未注册的PRO版本' . $options_cache['site_title'];
修改为:
$options_cache['footer_info'] .= '';
$options_cache['site_title'] = $options_cache['site_title'];
至此EMBLOG PRO破解完毕,商店可正常使用安装插件和模板,首页也没有提醒未注册版本。 但是注意:pro版本BUG较多,适应模板较差 在此放出emlog pro1.2.2的下载地址
EMLOG Pro v1.2.2 版本号:pro v1.2.2 发布时间:2022-03-20 运行环境:PHP7、PHP8(推荐7.4) 、 MySQL5.6/5.7/8.0(推荐5.6) 主要功能 1、内容管理:文章、评论、分类、标签,Markdown编辑器,多媒体资源管理 2、用户管理:用户注册、找回密码、权限控制 3、性能安全:支持Https,更快的速度,及时修复安全漏洞 4、屏幕适配:响应式布局适配电脑及手机屏幕 5、系统扩展:不断增加的模板和插件
微信扫描下方的二维码阅读本文

