From: Dylan Lloyd Date: Thu, 22 Mar 2012 23:45:24 +0000 (-0400) Subject: comment-form now in view/comment-form.php X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=7c68050a90dac5eec6b27f895deb9aeabf49cd47;p=dylansserver.git comment-form now in view/comment-form.php --- diff --git a/cms.php b/cms.php index 1f455a4..961a1f5 100644 --- a/cms.php +++ b/cms.php @@ -326,84 +326,17 @@ class note extends cms { $author = $entry['author']; $text = htmlspecialchars($entry['text']); $head = "

" . htmlspecialchars($author) . "

"; - echo << - $head - $text - -END_OF_COMMENT; + echo "
"; + echo $head; + echo $text; + echo "
"; } echo ""; } private function display_comment_form() { $publickey = $this->recaptcha_publickey; - echo << -Recaptcha.create("$publickey", - "recaptcha_div", - { - theme : 'custom', - custom_theme_widget: 'recaptcha_widget', - callback: Recaptcha.focus_response_field - }); - -END_CAPTCHA_STYLE; - require_once('includes/recaptchalib.php'); - $url = $this->url . "verify"; - echo "
"; - echo << -

comment:

- -

name:

- - - -
-
-

what's this say?

-
-
-


-


- -

-

enter the numbers you hear:

- - another? / - audio? / - image?help? - -
-END_OF_FORM; - echo recaptcha_get_html($this->recaptcha_publickey); - if ($this->failed_captcha) { - echo << - reCAPTCHA said you're not human,
- try again? - - - - -END_OF_ERRORS; - } else { - echo << - reCAPTCHA said you're not human,
- try again? - -
- but you didn't write anything!
-
-END_OF_ERRORS; - } - echo << - - -END_OF_FORM; + require_once("view/comment-form.php"); } } diff --git a/view/comment-form.php b/view/comment-form.php new file mode 100644 index 0000000..745226b --- /dev/null +++ b/view/comment-form.php @@ -0,0 +1,52 @@ + +url . "verify"; +?> +
+
+

comment:

+ +

name:

+ + + +
+
+

what's this say?

+
+
+


+


+ +

+

enter the numbers you hear:

+ + another? / + audio? / + image?help? + +
+ recaptcha_publickey); + if ($this->failed_captcha) { + echo "
"; + echo " reCAPTCHA said you're not human,
"; + echo " try again?"; + echo "
"; + } else { + echo "
"; + echo " but you didn't write anything!
"; + echo "
"; + } ?> + +
+
+