webmain/index/indexAction.php
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class indexClassAction extends Action{
public $homestylebool = false;
private $menuwhere,$addmenu;
public function defaultAction()
{
if(strlen(getconfig('randkey'))!=26)exit('配置文件randkey不正确,请重新设置为:'.$this->jm->getRandkey().'');
$notuserids = getconfig('notuserids');
$this->pannouser();
$homestyle = getconfig('homestyle');
if($homestyle>=1 && !$this->homestylebool){
$temshot = $this->getsession('homestyle');
if(!$temshot){
$urlt = '?a=home';
if($homestyle==2)$urlt = '?a=new';
$this->rock->location($urlt);
return;
}
}
$afrom = $this->get('afrom');
$this->tpltype = 'html';
$my = $this->db->getone('[Q]admin', "`id`='$this->adminid' and `status`=1",'`face`,`id`,`name`,`ranking`,`deptname`,`deptallname`,`type`,`style`,`user`');
if(!$my)return '登录用户不存在了,<a href="?m=login&a=exit">重新登录</a>';
$allmenuid = m('sjoin')->getuserext($this->adminid, $my['type']);
m('dept')->online(1);
$mewhere = '';
$isadmin = 1;
$myext = $allmenuid;
if($myext != '-1'){
$isadmin = 0;
$mewhere = ' and `id` in('.str_replace(array('[',']'), array('',''), $myext).')';
}
if($this->adminid!=1)$mewhere.=' and `type`=0';
$this->rock->savesession(array(
'adminallmenuid' => $allmenuid,
'isadmin' => $isadmin,
'homestyle' => 'rock',
'adminuser' => $my['user']
));
$this->smartydata['adminuser'] = $my['user'];
$this->smartydata['topmenu'] = m('menu')->getall("`pid`=0 and `status`=1 $mewhere order by `sort`");
$homeurl = $this->jm->base64decode($this->get('homeurl'));
$homename = $this->jm->base64decode($this->get('homename'));
$menuid = (int)$this->jm->base64decode($this->get('menuid'));
$showkey = $this->jm->base64encode($this->jm->getkeyshow());
if($menuid<1)$menuid = '';
if($homeurl=='')$showkey = '';
if(!isempt($homeurl) && isempt($menuid))return '无权限打开['.$homename.']的页面1';
if(!isempt($menuid) && $isadmin==0){
if(!contain($myext,'['.$menuid.']'))return '无权限打开['.$homename.']的页面2';
}
$this->smartydata['showkey'] = $showkey;
后面还有 272 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
