Application/Admin/Controller/LoginController.class.php
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/*******************************************************************\
| |
| 房佳(新房报备ERP管理系统) |
| |
| © 2020-2023 http://www.kaidandashi.com/ All rights reserved. |
| |
| 本系统由淮南市银泰软件科技有限公司提供技术支持 |
| |
| QQ号:984784483 |
| |
\*******************************************************************/
namespace Admin\Controller;
use Think\Controller;
use Common\Controller\BaseController;
class LoginController extends BaseController {
Public function _initialize(){
parent::_initialize();
if (ismobile()) {
//设置默认默认主题为 Mobile
$mobile = get_img_url("/mobile");
redirect($mobile);die;
}
/* 读取数据库中的配置 */
$config = S('DB_CONFIG_DATA');
if(!$config){
$config = lists();
S('DB_CONFIG_DATA',$config);
}
C($config); //添加配置
}
public function index(){
$this->display();
}
//自动提交检测加密锁是否已注册
public function regist(){
//设置默认主题为 Mobile
if (ismobile()) {
C('DEFAULT_THEME','Mobile');
$this->redirect('Login/index');
}else{
if (IS_POST) {
$Yh = M('Yonghu');
$k = $Yh->where(array('keyid' =>I('KeyID'),'gongsiid'=>I('gongsiid')))->field('keyid')->find();
if ($k) {
$Mac = M('Mac');
$m = $Mac->where(array('macid'=>I('MacID')))->field('macid,shenhe')->find();
if ($m['shenhe']==1) {
$this->redirect('Login/index');
}elseif(!is_null($m['macid']) && is_null($m['shenhe'])){
$this->redirect('Login/setmac?sh=1');
}else{
//申请mac地址注册
$this->redirect('Login/setmac');
}
}else{
//当前加密key未注册
$this->redirect('Login/setmac');
后面还有 253 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
