Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Poortvliet <jospoortvliet@gmail.com>2018-05-25 01:48:44 +0300
committerJos Poortvliet <jos@opensuse.org>2018-05-25 01:59:47 +0300
commit179c9aac909234efbf31f805708272b7a62b3a47 (patch)
tree98c5824eb52bc974ce0c81968b3796197cf25867 /page-providersubmit.php
parent62a58feadeff7a71f708f0f7e6e98614ce4a8f9c (diff)
disable reCaptcha
Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
Diffstat (limited to 'page-providersubmit.php')
-rw-r--r--page-providersubmit.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/page-providersubmit.php b/page-providersubmit.php
index 62efa89a..bac9e7e3 100644
--- a/page-providersubmit.php
+++ b/page-providersubmit.php
@@ -90,22 +90,22 @@ if(isset($_POST['email'])) {
if(!filter_var($image, FILTER_VALIDATE_URL)) {
$error_message .= 'The link to an image you entered does not appear to be valid.<br />';
}
- if(RECAPTCHA_SECRET !== '' && isset($_POST['g-recaptcha-response'])) {
- $url = 'https://www.google.com/recaptcha/api/siteverify';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('secret' => RECAPTCHA_SECRET, 'response' => $_POST['g-recaptcha-response'])));
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $server_output = curl_exec($ch);
- $server_output = json_decode($server_output, true);
- curl_close($ch);
- if (!isset($server_output['success']) || $server_output['success'] !== true) {
- $error_message .= 'The captcha result was invalid.<br />';
- }
- } else {
- $error_message .= 'Captcha code is missing.<br />';
- }
+// if(RECAPTCHA_SECRET !== '' && isset($_POST['g-recaptcha-response'])) {
+// $url = 'https://www.google.com/recaptcha/api/siteverify';
+// $ch = curl_init();
+// curl_setopt($ch, CURLOPT_URL, $url);
+// curl_setopt($ch, CURLOPT_POST, 1);
+// curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('secret' => RECAPTCHA_SECRET, 'response' => $_POST['g-recaptcha-response'])));
+// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+// $server_output = curl_exec($ch);
+// $server_output = json_decode($server_output, true);
+// curl_close($ch);
+// if (!isset($server_output['success']) || $server_output['success'] !== true) {
+// $error_message .= 'The captcha result was invalid.<br />';
+// }
+// } else {
+// $error_message .= 'Captcha code is missing.<br />';
+// }
if(strlen($error_message) > 0) {
died($error_message);
} else {