admin/controller/extension/module/d_blog_module.php
(开头部分) 40KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*
* location: admin/controller
*/
class ControllerExtensionModuleDBlogModule extends Controller {
private $codename = 'd_blog_module';
private $route = 'extension/module/d_blog_module';
private $sub_versions = array('lite', 'light', 'free');
private $config_file = '';
private $store_id = 0;
private $error = array();
public function __construct($registry)
{
parent::__construct($registry);
$this->load->language($this->route);
$this->load->model($this->route);
$this->load->model('setting/setting');
$this->load->model('extension/d_blog_module/category');
$this->load->model('extension/d_opencart_patch/load');
$this->load->model('extension/d_opencart_patch/cache');
$this->d_shopunity = (file_exists(DIR_SYSTEM.'library/d_shopunity/extension/d_shopunity.json'));
$this->d_blog_module_pack = (file_exists(DIR_SYSTEM.'library/d_shopunity/extension/d_blog_module_pack.json'));
$this->d_opencart_patch = (file_exists(DIR_SYSTEM.'library/d_shopunity/extension/d_opencart_patch.json'));
$this->d_seo_module = (file_exists(DIR_SYSTEM.'library/d_shopunity/extension/d_seo_module.json'));
if($this->d_opencart_patch){
$this->load->model('extension/d_opencart_patch/url');
$this->load->model('extension/d_opencart_patch/user');
$this->load->model('extension/d_opencart_patch/store');
}
$this->d_twig_manager = (file_exists(DIR_SYSTEM.'library/d_shopunity/extension/d_twig_manager.json'));
$this->d_event_manager = (file_exists(DIR_SYSTEM.'library/d_shopunity/extension/d_event_manager.json'));
$this->d_admin_style = (file_exists(DIR_SYSTEM.'library/d_shopunity/extension/d_admin_style.json'));
if ($this->d_admin_style){
$this->load->model('extension/d_admin_style/style');
}
$this->extension = json_decode(file_get_contents(DIR_SYSTEM.'library/d_shopunity/extension/d_blog_module.json'), true);
if (isset($this->request->get['store_id'])) {
$this->store_id = $this->request->get['store_id'];
}
$this->d_validator = (file_exists(DIR_SYSTEM . 'library/d_shopunity/extension/d_validator.json'));
// give some permissions
$this->permission_handler('main');
$this->config_file = $this->model_extension_module_d_blog_module->getConfigFile($this->codename, $this->sub_versions);
}
public function index()
{
if($this->d_shopunity){
$this->load->model('extension/d_shopunity/mbooth');
$this->model_extension_d_shopunity_mbooth->validateDependencies($this->codename);
}
后面还有 728 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
