X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=56b216aa9662175963849d9a22da89950c9fe611;hb=9412c7a558398a5a990691eb74cc61ae24d85031;hp=8f8baaeb8471e9ba19f55b0beeed73b102b5b21b;hpb=32b53fe9b8a5903e32e0552c097b3035dc39c5d5;p=dylansserver.git diff --git a/index.php b/index.php index 8f8baae..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(); } @@ -456,7 +450,6 @@ END_OF_COMMENT; $publickey = $this->recaptcha_publickey; echo << -function showRecaptcha() { Recaptcha.create("$publickey", "recaptcha_div", { @@ -464,16 +457,13 @@ Recaptcha.create("$publickey", custom_theme_widget: 'recaptcha_widget', callback: Recaptcha.focus_response_field }); -} END_CAPTCHA_STYLE; require_once('includes/recaptchalib.php'); - // Trailing slash is necessary for reloads to work $url = $this->url . "verify"; echo "
"; - echo << -

comment?


@@ -494,11 +484,22 @@ 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; + } } }