application/api/controller/Uiset.php
(开头部分) 30KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 易优CMS
* ============================================================================
* 版权所有 2016-2028 海南赞赞网络科技有限公司,并保留所有权利。
* 网站地址: http://www.eyoucms.com
* ----------------------------------------------------------------------------
* 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
* ============================================================================
* Author: 小虎哥 <1105415366@qq.com>
* Date: 2018-4-3
*/
namespace app\api\controller;
use think\Controller;
use think\Db;
// use think\Session;
class Uiset extends Controller
{
public $uipath = '';
public $theme_style = '';
public $theme_style_path = '';
public $v = '';
private $urltypeid = 0;
private $urlaid = 0;
private $idcode = '';
/**
* 析构函数
*/
function __construct()
{
header("Cache-control: private"); // history.back返回后输入框值丢失问题
parent::__construct();
$this->theme_style = THEME_STYLE;
$this->theme_style_path = THEME_STYLE_PATH;
$this->uipath = RUNTIME_PATH.'ui/'.$this->theme_style_path.'/';
if (!file_exists(ROOT_PATH.'template/'.TPL_THEME.'pc/uiset.txt') && !file_exists(ROOT_PATH.'template/'.TPL_THEME.'mobile/uiset.txt')) {
abort(404,'页面不存在');
}
}
/*
* 初始化操作
*/
public function _initialize()
{
//过滤不需要登陆的行为
$ctl_act = CONTROLLER_NAME.'@'.ACTION_NAME;
$ctl_all = CONTROLLER_NAME.'@*';
$filter_login_action = config('filter_login_action');
if (in_array($ctl_act, $filter_login_action) || in_array($ctl_all, $filter_login_action)) {
//return;
}else{
if(!session('?admin_id')){
$this->error('请先登录后台!');
exit;
}
后面还有 943 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
