app/admin/controller/Index.php

(开头部分) 7KB

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

<?php
/**
 * 人人站CMS
 * ============================================================================
 * 版权所有 2015-2030 山东康程信息科技有限公司,并保留所有权利。
 * 网站地址: http://www.rrzcms.com
 * ----------------------------------------------------------------------------
 * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
 * ============================================================================
 */

namespace app\admin\controller;

use think\Exception;

class Index extends Base
{

    protected function initialize() {
        parent::initialize();
        $action = $this->request->action();
        if (in_array($action, ['storage', 'imgspace'])) {
            set_upload_config();
        }
    }

    public function index() {

        $this->assign('account', $this->account);

        $menus = C('menus');
        $this->assign('menus', $menus);

        $statistic = [
            'articles_count' => M('articles')->count(),
            'goods_count' => M('goods')->count(),
            'links_count' => M('site_links')->count(),
            'admin_count' => M('admin')->count(),
        ];

        $dashboard = $this->fetch('index/dashboard', [
            'statistic' => $statistic,
            'sys_info' => get_sys_info(),
            'global' => $this->getGlobal(),
        ]);
        $this->assign('dashboard', $dashboard);

        return $this->fetch();
    }

    function authortoken() {
        $url = base64_decode('aHR0cDovL3d3dy5ycnpjbXMuY29tL0FwaS9ScnpjbXMvY2hlY2tkb21haW4=');
        $vaules = [
            'domain' => urldecode($this->request->host(true)),
        ];
        $url .= '?' . http_build_query($vaules);
        $params = get_curl($url, 'json');
        if (is_array($params) && 'success' == $params['status']) {
            $authortoken_code = $params['data']['code'];
            sysConfig('website.authortoken_code', $authortoken_code);
后面还有 179 行代码,购买后查看完整代码

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

AI 解读 AI

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

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