X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=55986790efb50816b95c9912f18cd767a11a46a2;hb=c30849c73508b5a0168b6559b9935115186a20c7;hp=ef5eddf388fb0248a138e4d8ae8059b1929e0286;hpb=becd62fb957da0c16c4432c40cd818ea36e71828;p=dylansserver.git diff --git a/index.php b/index.php index ef5eddf..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 "
"; @@ -466,39 +465,50 @@ 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 << - -
-
-

comment:

- -

name:

- -

email:

-
- - -
-

what's this say?

-

enter the numbers you hear:

(another/audio/Get an image CAPTCHAhelp)

- -

-
-



-
+
+

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