以下是:_initialize函数代码:
function _initialize(){
if(isset($_SESSION['UID'])){
$this->LoginUid=$_SESSION['UID'];
}else{
$this->LoginUid=null;
}
$this->isLogined();//验证是否登录,未登录,跳转至登录页
}
以下是:redirect相关比分代码:if($_POST['aotuLogin']>0){
$save_time=$_POST['aotuLogin']*24*3600;
$save_u=$login['uid'].'-'.$_POST['uname'].'-'.PublicOperate::createMd5Data($_POST['upwd']).'-'.(time()+$save_time);
Cookie::set("LOGIN_USERS", $save_u,$save_time);
}
$this->redirect("/Index/index");return;
最佳答案
