source/admin/gold_log.ctrl.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
if(!defined("ROOT_PATH")) exit("die Access ");
class gold_logControl extends skymvc{
public function __construct(){
parent::__construct();
}
public function onDefault(){
$where=" isdelete=0 ";
$url=APPADMIN."?m=gold_log&a=default";
$limit=20;
$start=get("per_page","i");
$userid=get('userid','i');
if($userid){
$where.=" AND userid=".$userid;
}
$stime= get("stime",'h');
if($stime){
$stime=strtotime($stime." 00:00:01");
$where.=" AND dateline>='{$stime}' ";
}
$etime=get('etime','h');
if($etime){
$etime=strtotime($etime." 00:00:01");
$where.=" AND dateline<='{$etime}'";
}
$option=array(
"start"=>intval(get_post('per_page')),
"limit"=>$limit,
"order"=>" id DESC",
"where"=>$where
);
$rscount=true;
$data=M("gold_log")->select($option,$rscount);
if($data){
foreach($data as $v){
$uids[]=$v['userid'];
}
$us=M("user")->getUserByids($uids);
foreach($data as $k=>$v){
$v['nickname']=$us[$v['userid']]['nickname'];
$data[$k]=$v;
}
}
$pagelist=$this->pagelist($rscount,$limit,$url);
$this->smarty->assign(
array(
"data"=>$data,
"pagelist"=>$pagelist,
"rscount"=>$rscount,
"url"=>$url
)
);
$this->smarty->display("gold_log/index.html");
}
public function onShow(){
$id=get_post("id","i");
后面还有 43 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。