Files
SRCMS/Application/Admin/Controller/BaseController.class.php
Martin Zhou 684da35950 SRCMS V2 开发版
唯一的改变就是万变,重新定义安全应急响应中心。
2017-02-03 12:34:39 +08:00

23 lines
457 B
PHP

<?php
namespace Admin\Controller;
use Think\Controller;
/**
* @Author: Zhou Yuyang <1009465756@qq.com> 10:28 2017/02/02
* @Copyright 2015-2020 SISMO
* @Project homepage https://github.com/CNSISMO
* @Version 2.0
*/
class BaseController extends Controller {
public function _initialize(){
$sid = session('adminId');
//判断用户是否登陆
if(!isset($sid ) ) {
redirect(U('Login/index'));
}
}
}