X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=55986790efb50816b95c9912f18cd767a11a46a2;hb=c30849c73508b5a0168b6559b9935115186a20c7;hp=8f8baaeb8471e9ba19f55b0beeed73b102b5b21b;hpb=32b53fe9b8a5903e32e0552c097b3035dc39c5d5;p=dylansserver.git diff --git a/index.php b/index.php index 8f8baae..5598679 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(); } @@ -442,11 +436,16 @@ END_OF_NAVIGATION; $author = $entry['author']; $email = $entry['email']; $text = htmlspecialchars($entry['text']); + if ($email == '') { + $head = "

$author

"; + } else { + $head = "

$author

"; + } echo <<$author +
+ $head $text -
-
+
END_OF_COMMENT; } echo "
"; @@ -456,7 +455,6 @@ END_OF_COMMENT; $publickey = $this->recaptcha_publickey; echo << -function showRecaptcha() { Recaptcha.create("$publickey", "recaptcha_div", { @@ -464,41 +462,53 @@ 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?

- -
-
-

comment:

- -

name:

- -

email:

-
- - -
-

what's this say?

-

enter the numbers you hear:

(another/audio/Get an image CAPTCHAhelp)

- -

-
-



-
-
- - - - + echo << +

comment:

+ +

name:

+ +

email:

+
+ + +
+

what's this say?

+

enter the numbers you hear:

+ + ( another / + audio / + Get an image CAPTCHAhelp ) + +

+ +

+
+
+
+



+
+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; + } } }