diff --git a/index.php b/index.php index 408a7935..141c7269 100644 --- a/index.php +++ b/index.php @@ -1228,23 +1228,21 @@ function print_add_ticket() + + +
+ - - -
- - -
 
diff --git a/submit_ticket.php b/submit_ticket.php index 234d1858..f2b15a90 100644 --- a/submit_ticket.php +++ b/submit_ticket.php @@ -91,7 +91,7 @@ if ($hesk_settings['secimg_use'] && !isset($_SESSION['img_verified'])) { // Was there a reCAPTCHA response? if (isset($_POST["g-recaptcha-response"])) { - $resp = $reCaptcha->verifyResponse($_SERVER["REMOTE_ADDR"], hesk_POST("g-recaptcha-response")); + $resp = $reCaptcha->verifyResponse(hesk_getClientIP(), hesk_POST("g-recaptcha-response")); } if ($resp != null && $resp->success) {