module/flk/source/admin/flk_admin.ctrl.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class flk_adminControl extends skymvc{
public function __construct(){
parent::__construct();
}
public function onDefault(){
$shopid=get("shopid","i");
$shop=M("mod_flk_shop")->selectRow("shopid=".$shopid);
if(empty($shop)){
$this->goAll("商家不能为空",1);
}
$where=" shopid=".$shopid;
$url="/moduleadmin.php?m=flk_admin&a=default";
$limit=24;
$start=get("per_page","i");
$option=array(
"start"=>$start,
"limit"=>$limit,
"order"=>" adminid DESC",
"where"=>$where
);
$rscount=true;
$data=M("mod_flk_admin")->select($option,$rscount);
$per_page=$start+$limit;
$per_page=$per_page>$rscount?0:$per_page;
$pagelist=$this->pagelist($rscount,$limit,$url);
$this->smarty->goassign(
array(
"list"=>$data,
"shop"=>$shop,
"per_page"=>$per_page,
"pagelist"=>$pagelist,
"rscount"=>$rscount,
"url"=>$url
)
);
$this->smarty->display("flk_admin/index.html");
}
public function onAdd(){
$this->smarty->display("flk_admin/add.html");
}
public function onSave(){
$shopid=get_post("shopid","i");
$shop=M("mod_flk_shop")->selectRow("shopid=".$shopid);
if(empty($shop)){
$this->goAll("商家不能为空",1);
}
$adminname=post("adminname","h");
if(empty($adminname)){
$this->goAll("请填写用户名",1);
}
//判断是否已有
$row=M("mod_flk_admin")->selectRow("adminname='".$adminname."'");
if($row){
$this->goAll("账号已经存在了",1,$row);
}
$password=post("password","h");
$salt=rand(1000,9999);
$data=array(
"password"=>umd5($password.$salt),
后面还有 30 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。