X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=56b216aa9662175963849d9a22da89950c9fe611;hb=9412c7a558398a5a990691eb74cc61ae24d85031;hp=ef5eddf388fb0248a138e4d8ae8059b1929e0286;hpb=becd62fb957da0c16c4432c40cd818ea36e71828;p=dylansserver.git diff --git a/index.php b/index.php index ef5eddf..56b216a 100644 --- a/index.php +++ b/index.php @@ -361,9 +361,6 @@ class note extends cms { } private function verify() { - var_dump($_POST['captcha']); - var_dump(isset($_POST['captcha'])); - var_dump(isset($_POST['captcha']) || false); if (!isset($_POST['captcha'])) { require_once('includes/recaptchalib.php'); echo "
"; @@ -404,9 +401,6 @@ class note extends cms {

END_OF_NAVIGATION; - if ($this->failed_captcha) { - echo "sorry, reCAPTCHA said you're not human.


"; - } if (!$this->comments_enabled) { $this->display_comment_link(); } @@ -466,8 +460,7 @@ Recaptcha.create("$publickey", END_CAPTCHA_STYLE; require_once('includes/recaptchalib.php'); - // Trailing slash is necessary for reloads to work - $url = $this->url . "verify/"; + $url = $this->url . "verify"; echo "
"; echo << @@ -490,15 +483,23 @@ END_CAPTCHA_STYLE;




+ END_OF_FORM; echo recaptcha_get_html($this->recaptcha_publickey); + if ($this->failed_captcha) { echo << - - - - + reCAPTCHA said you're not human, + + + END_OF_FORM; + } else { + echo << + + +END_OF_FORM; + } } }