Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. elseif(isset($_POST['game_pass_do'])){//<Remind pass>
  2. //$code = isset($_POST['code']) && parb_str($_POST['code'],3,10)?$_POST['code']:null;
  3. $i_id1 = isset($_POST['game']) && parb_int($_POST['game'],1,5)?$_POST['game']:null;
  4. $i_id2 = isset($_POST['pass']) && parb_str($_POST["pass"],5,15)?$_POST["pass"]:null;
  5. $i_id3 = isset($_POST['pass2']) && parb_str($_POST["pass2"],5,15)?$_POST["pass2"]:null;
  6. $i_id4 = isset($_POST['pass3']) && parb_str($_POST["pass3"],5,15)?$_POST["pass3"]:null;
  7. if($i_id1 && $i_id2 && $i_id3 && $i_id4){
  8. if($i_id3==$i_id4){
  9. if($i_id2!=$i_id3){
  10. $res=game::change_pw($i_id1, $server, $i_id2, $i_id3);
  11.  
  12. switch($res){
  13. case 1:$err.=infs('Password changed!',2);break;
  14. case 2:$err.=infs('Failed to change Password!');break;
  15. case 3:$err.=infs('Server is not available!');break;
  16. case 4:$err.=infs('You do not have account in this server!');break;
  17. case 5:$err.=infs('Password is not correct!');break;
  18. case 6:$err.=infs('User does not exist!');break;
  19. default:$err.=infs('Password change for this game is not available!');break;
  20. }
  21. }else $err.=infs('New password cannot be the same as previous one!');
  22. }else $err.=infs('Passwords don\'t match!');
  23. }else $err.=infs(lang('reg_err1'));
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement