|
<?php
class islogin{
private $CI;
public function __construct(){
$this->CI =& get_instance();
}
public function check(){
$this->CI->load->model('madmin');
$this->CI->load->helper('url');
$this->CI->load->library('session');
if(!$this->CI->madmin->is_login()){
echo "<script>window.location.href='".site_url('public/login')."'</script>";
}
}
}
版本 3.0.6 这是验证登录的 各路大神 求助 |
|