vakarj

Untitled

Dec 20th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. $captcha = $_POST['g-recaptcha-response'];
  2. $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=IDEJONASECRETKULCS&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']);
  3. $data = json_decode($response);
  4.  
  5. if(isset($data->success) and $data->success == 1){
  6. //SIKER
  7. }else{
  8. //A captcha nem lett kitöltve
  9. }
Advertisement
Add Comment
Please, Sign In to add comment