webmain/home/index/indexAction.php

(开头部分) 3KB

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

<?php 
class indexClassAction extends Action{
	
	private function homeicons()
	{
		$myext	= $this->getsession('adminallmenuid');
		$where	= '';
		if($myext != '-1'){	
			$caids  = str_replace(array('[',']'), array('',''), $myext);
			if(isempt($caids))$caids='0';
			$where	= ' and `id` in('.$caids.')';
		}
		$mrows = m('menu')->getrows("`ishs`=1 and `status`=1 $where ", "`id`,`num`,`name`,`url`,`color`,`icons`",'`sort`');
		if(LANG!='zh-CN')foreach($mrows as $k=>$rs)$mrows[$k]['name'] = lang($rs['name'],'menu');
		return $mrows;
	}
	
	public function gettotalAjax()
	{
		$loadci	= (int)$this->get('loadci','0');
		$optdta	= $this->get('optdt');
		$optdt 	= $this->now;
		$uid 	= $this->adminid;
		$urs	= m('admin')->getone("`id`='$uid' and `status`=1");
		if(!$urs)exit('用户不存在');
		
		$arr['optdt']	= $optdt;
		$todo			= m('todo')->rows("uid='$uid' and `status`=0 and `tododt`<='$optdt'");
		$arr['todo']	= $todo;
		
		$arr['reimstotal']	= 0;
		if(getconfig('reim_show',true))$arr['reimstotal'] = m('reim')->getreimwd($uid);
		
		if($loadci==0){
			$arr['showkey'] = $this->jm->base64encode($this->jm->getkeyshow());
			$arr['menuarr'] = $this->homeicons();
			$arr['token']	= $this->admintoken;
			$arr['authkey'] = $this->option->getval('auther_authkey');
			$_key 			= substr(md5(URL.getconfig('randkey')),0,20);
			$usedt 			= $this->option->getval($_key);
			if(isempt($usedt)){
				$usedt	= $this->jm->base64encode(date('Y-m-d', time()+7*24*3600));
				$this->option->setval($_key.'@-102', $usedt);
			}
			$arr['usedt']	= $usedt;
			if(!isempt($arr['authkey'])){
				$ybarr	 = $this->option->authercheck();
				if(is_string($ybarr))$arr['authmsg'] = $this->jm->base64encode($ybarr);
			}
			
			if(DB_USER=='root'){
				$sqld = $this->db->getall('select @@global.sql_mode as total');
				if($sqld){
					$sqlmodel = $sqld[0]['total'];
					$arr['sqlmodel']	= $sqlmodel;
					$sqlsr	= explode(',', $sqlmodel);
					$kes 	= 'ONLY_FULL_GROUP_BY';
					$nstr	= array();
					if(in_array($kes, $sqlsr))foreach($sqlsr as $_kt)if($_kt!=$kes)$nstr[]=$_kt;
					if($nstr)$this->db->query("set @@global.sql_mode ='".join(',', $nstr)."'",false);
后面还有 62 行代码,购买后查看完整代码

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

AI 解读 AI

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

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