admin/controller/common/dashboard.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class ControllerCommonDashboard extends Controller {
public function index() {
$this->load->language('common/dashboard');
$this->document->setTitle($this->language->get('heading_title'));
$data['breadcrumbs'] = array();
$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'])
);
$this->document->addScript('view/javascript/jquery/jquery.cookie.js');
$data['breadcrumbs'][] = array(
'text' => $this->language->get('heading_title'),
'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'])
);
$data['user_token'] = $this->session->data['user_token'];
// Check install directory exists
if (is_dir(DIR_CATALOG . '../install')) {
$data['error_install'] = $this->language->get('error_install');
} else {
$data['error_install'] = '';
}
// Dashboard Extensions
$dashboards = array();
$this->load->model('setting/extension');
// Get a list of installed modules
$extensions = $this->model_setting_extension->getInstalled('dashboard');
// Add all the modules which have multiple settings for each module
foreach ($extensions as $code) {
if ($this->config->get('dashboard_' . $code . '_status') && $this->user->hasPermission('access', 'extension/dashboard/' . $code)) {
$output = $this->load->controller('extension/dashboard/' . $code . '/dashboard');
if ($output) {
$dashboards[] = array(
'code' => $code,
'width' => $this->config->get('dashboard_' . $code . '_width'),
'sort_order' => $this->config->get('dashboard_' . $code . '_sort_order'),
'output' => $output
);
}
}
}
$sort_order = array();
foreach ($dashboards as $key => $value) {
$sort_order[$key] = $value['sort_order'];
}
后面还有 34 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
