Changeset 2788952
- Timestamp:
- 09/22/2022 07:44:44 PM (4 years ago)
- File:
-
- 1 edited
-
ldd-directory-lite/trunk/includes/ajax.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ldd-directory-lite/trunk/includes/ajax.php
r2359247 r2788952 22 22 */ 23 23 function ldl_ajax_contact_form() { 24 24 25 $response = ''; 25 26 … … 27 28 die( __('You shall not pass!', 'ldd-directory-lite') ); 28 29 29 $hpt_field = ' last_name';30 $hpt_field = 'senders_name'; 30 31 31 32 if (!empty($_POST[ $hpt_field ])) { … … 63 64 ); 64 65 65 $verify = curl_init(); 66 curl_setopt($verify, CURLOPT_URL, "https://www.google.com/recaptcha/api/siteverify"); 67 curl_setopt($verify, CURLOPT_POST, true); 68 curl_setopt($verify, CURLOPT_POSTFIELDS, http_build_query($data)); 69 curl_setopt($verify, CURLOPT_SSL_VERIFYPEER, false); 70 curl_setopt($verify, CURLOPT_RETURNTRANSFER, true); 71 $response = json_decode(curl_exec($verify)); 66 72 67 73 68
Note: See TracChangeset
for help on using the changeset viewer.