Added invisible reCAPTCHA
This commit is contained in:
		@ -29,7 +29,7 @@ if($_POST) {
 | 
			
		||||
  if (!$captcha){
 | 
			
		||||
    $error['captcha'] = "Please check the CAPTCHA field.";
 | 
			
		||||
  } else {
 | 
			
		||||
    $captchaResponse = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Le1wRcTAAAAADbdnvPLKQ_hupTI4jzaGGXFQhQA&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true);
 | 
			
		||||
    $captchaResponse = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Le7VisUAAAAAKExpdr5NJy8AHGM0Y3iPI1eVZgD&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true);
 | 
			
		||||
    if($captchaResponse['success'] == false) {
 | 
			
		||||
      $error['captcha'] = "You are a robot.";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -391,8 +391,11 @@
 | 
			
		||||
            <input type="text" value="" size="35" maxlength="100" id="contactEmail" name="contactEmail" placeholder="Email (required)">
 | 
			
		||||
            <input type="text" value="" size="35" maxlength="100" id="contactSubject" name="contactSubject" placeholder="Subject">
 | 
			
		||||
            <textarea cols="50" rows="15" maxlength="1500" id="contactMessage" name="contactMessage" placeholder="Message" style="resize: vertical; font-family: inherit; font-size: inherit"></textarea>
 | 
			
		||||
            <div id="g-recaptcha" class="g-recaptcha" data-theme="dark" data-sitekey="6Le1wRcTAAAAAMOmewHOghJved-nNQOq-1ro7vtc"></div><br/>
 | 
			
		||||
            <button class="submit">Submit</button>
 | 
			
		||||
            <button
 | 
			
		||||
                class="g-recaptcha submit"
 | 
			
		||||
                data-sitekey="6Le7VisUAAAAAIn3TfNvR6srMLuVa6Xw09zojiIt">
 | 
			
		||||
              Submit
 | 
			
		||||
            </button>
 | 
			
		||||
            <span id="image-loader">
 | 
			
		||||
              <img alt="" src="images/loader.gif">
 | 
			
		||||
            </span>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user