From ec9d9b4da39e6c74b8514bfaf623ed7ac310d128 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 10 Feb 2019 11:29:20 +0800 Subject: Disable legacy shit. --- leave-a-message/writemessage.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'leave-a-message/writemessage.php') diff --git a/leave-a-message/writemessage.php b/leave-a-message/writemessage.php index b4585fe..5308954 100644 --- a/leave-a-message/writemessage.php +++ b/leave-a-message/writemessage.php @@ -37,9 +37,10 @@ onerror($name,$mesg); exit; } - $response=json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Lf1lAcUAAAAABRj_EJ1OzhzGfiorpfYFbcGQE5r&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); - if($response['success'] == false)onerror($name,$mesg); - else + //OH SHIT I LEAKED MY OWN KEY!!! + //$response=json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=6Lf1lAcUAAAAABRj_EJ1OzhzGfiorpfYFbcGQE5r&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true); + //if($response['success'] == false)onerror($name,$mesg); + if(false) { if(strlen($mesg)+strlen($name)>16300)echo "Your message is too long!!!"; $rmesg=htmlspecialchars($mesg); -- cgit v1.2.3