From 9e86bb3ef81be6a137cc5502be21c207ed56f54c Mon Sep 17 00:00:00 2001 From: saiujwal chelamkuri <69893826+chsaiujwal@users.noreply.github.com> Date: Wed, 25 May 2022 17:23:52 +0530 Subject: [PATCH] Update action_page.php --- action_page.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/action_page.php b/action_page.php index bc2f799..f2fbf85 100644 --- a/action_page.php +++ b/action_page.php @@ -22,8 +22,6 @@ $email=$_POST["email"]; $memail = $_ENV["EML"]; $mpass = $_ENV['PWDD']; function reCaptcha($recaptcha, $secret){ - //echo $secret; - //$postvars = array("secret"=>$secret, "response"=>$recaptcha); $postvars="secret={$secret}&response={$recaptcha}"; $url = "https://hcaptcha.com/siteverify"; $ch = curl_init(); @@ -33,7 +31,6 @@ function reCaptcha($recaptcha, $secret){ curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars); $data = curl_exec($ch); curl_close($ch); - // echo $data; return json_decode($data, true); } @@ -55,21 +52,12 @@ if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } curl_close($ch); -//echo $result; if (strcmp($result,"User already exists.")==0){ echo "Dude, User already exists"; }else{ echo "Email Successfully Created."; echo " click here to go to login page "; -//$filename=$_SERVER['DOCUMENT_ROOT']."/r_users.text"; -//$myfile = fopen($filename, "a+"); -//if ($myfile === false) { -// echo "opening '$myfile' failed"; -//} -//fwrite($myfile, $email . " ". strval($ip)."\n"); -//fclose($myfile); -//header("Location: https://salvusmail.com/mail"); -} + ?>