function userInfo() { $userInfo = unserialize(stripcslashes($_COOKIE['userinfo'])); //var_dump($userInfo); $uid = $userInfo['uid']; $mOb = new MemberModel(); $arr = $mOb->getMember("id={$uid}"); if ($arr == null) { header("location:?m=Member&a=login"); } else { //var_dump($arr[0]); $this->assign("userInfo", $arr[0]); $this->display(); } }
function loginAjax(){ $email=$_GET['email']; $mOb=new MemberModel; $arr=$mOb -> getMember("email='".$email."'"); if(isset($arr) && !empty($arr)){ echo $arr[0]['password'].",".$arr[0]['id']; }else{ echo "0"; } }