catalog/controller/extension/d_blog_module/post.php

(开头部分) 30KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

class ControllerExtensionDBlogModulePost extends Controller
{
    private $id = 'd_blog_module';
    private $route = 'extension/d_blog_module/post';
    private $sub_versions = array('lite', 'light', 'free');
    //private $mbooth = '';
    private $prefix = '';
    private $config_file = '';
    private $error = array();
    private $debug = false;
    private $setting = array();
    private $theme = 'default';

    public function __construct($registry)
    {
        parent::__construct($registry);
        if (!isset($this->user)) {
            if (VERSION >= '2.2.0.0') {
                $this->user = new Cart\User($registry);
            } else {
                $this->user = new User($registry);
            }
        }
        //fix theme detection
        if (VERSION >= '3.0.0.0') {
			$this->theme = $this->config->get('theme_' . $this->config->get('config_theme') . '_directory');
		} elseif (VERSION >= '2.2.0.0') {
			$this->theme = $this->config->get($this->config->get('config_theme') . '_directory');
		} else {
			$this->theme = $this->config->get('config_template');
		}
		
        $this->load->model('extension/d_opencart_patch/load');
        $this->load->language('extension/d_blog_module/post');
        $this->load->model('extension/module/d_blog_module');
        $this->load->model('extension/d_blog_module/category');
        $this->load->model('extension/d_blog_module/post');
        $this->load->model('extension/d_blog_module/review');
        $this->load->model('extension/d_blog_module/author');
        $this->load->model('tool/image');

        $this->session->data['d_blog_module_debug'] = $this->config->get('d_blog_module_debug');

        $this->config_file = $this->model_extension_module_d_blog_module->getConfigFile($this->id, $this->sub_versions);

        $this->setting = $this->model_extension_module_d_blog_module->getConfigData($this->id, $this->id . '_setting', $this->config->get('config_store_id'), $this->config_file);

        $this->load->model('localisation/language');
        $lang = $this->model_localisation_language->getLanguage($this->config->get('config_language_id'));
        $locales = array();
        foreach (explode(',', $lang['locale']) as $l) {
            $locales [] = $l;
        }
        $loc_de = setlocale(LC_ALL, $locales);

    }

    public function index()
后面还有 555 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。