if(empty($dopost)) { |
//检查用户 $username = $cfg_ml->M_UserName; $l_jifen=$dsql->GetOne("Select scores from `js_member` where uname='$username'"); if($l_jifen['scores']>=200) { $dsql->ExecuteNoneQuery("Update `js_member` set logintime='".time()."',loginip='".GetIP()."' where mid='{$cfg_ml->M_ID}'; "); } else { ResetVdValue(); ShowMsg("对不起,需要200以上积分才能在发布文档!","-1","0",3000); exit(); } |
//检查用户 $username = empty($username) ? '游客' : $username; if(empty($notuser)) $notuser = 0; if($notuser==1) { $username = $cfg_ml->M_ID > 0 ? '匿名' : '游客'; } else if($cfg_ml->M_ID > 0) { $username = $cfg_ml->M_UserName; } else if($username!='' && $pwd!='') { $rs = $cfg_ml->CheckUser($username, $pwd); if($rs==1) { $dsql->ExecuteNoneQuery("Update `js_member` set logintime='".time()."',loginip='".GetIP()."' where mid='{$cfg_ml->M_ID}'; "); } $cfg_ml = new MemberLogin(); } |
//检查用户 $username = empty($username) ? '游客' : $username; if(empty($notuser)) $notuser = 0; if($notuser==1) { $username = $cfg_ml->M_ID > 0 ? '匿名' : '游客'; } else if($cfg_ml->M_ID > 0) { $username = $cfg_ml->M_UserName; } else if($username!='' && $pwd!='') { $rs = $cfg_ml->CheckUser($username, $pwd); if($rs==1) { $dsql->ExecuteNoneQuery("Update `js_member` set logintime='".time()."',loginip='".GetIP()."' where mid='{$cfg_ml->M_ID}'; "); } $cfg_ml = new MemberLogin(); } |
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!