|
发表于 2011-7-26 16:19:24
|
显示全部楼层
function is_logged_in()
{
$CI=&get_instance();
$is_logged_in = $CI->session->userdata('is_logged_in');
if(!isset($is_logged_in) || $is_logged_in != true)
{
echo 'You don't have permission to access this page. ';
echo anchor('member/index','Login');
die();
}
} |
|