Files
SRCMS/Application/Admin/Controller/BaseController.class.php

23 lines
439 B
PHP
Raw Normal View History

<?php
namespace Admin\Controller;
use Think\Controller;
/**
* @author Zhou Yuyang <1009465756@qq.com> 12:28 2016/1/23
* @copyright 2105-2018 SRCMS
* @homepage http://www.src.pw
* @version 1.5
*/
class BaseController extends Controller {
public function _initialize(){
$sid = session('adminId');
//判断用户是否登陆
if(!isset($sid ) ) {
redirect(U('Login/index'));
}
}
}