From: Dylan Lloyd Date: Thu, 10 Mar 2011 09:39:44 +0000 (-0500) Subject: More cleanup & formatting X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=c30849c73508b5a0168b6559b9935115186a20c7;p=dylansserver.git More cleanup & formatting --- diff --git a/includes/ajax.js b/includes/ajax.js index 10d532d..bc51be3 100644 --- a/includes/ajax.js +++ b/includes/ajax.js @@ -15,6 +15,7 @@ $(document).ready(function() { var name = $("#comment_name").val(); var email = $("#comment_email").val(); var text = $("#comment_text").val(); + if (name == '') { name = "anon" } var comment_data = { "captcha" : "passed", "name" : name, "email" : email, diff --git a/includes/style.css b/includes/style.css index f076221..2dc36e6 100644 --- a/includes/style.css +++ b/includes/style.css @@ -174,6 +174,10 @@ pre { padding-right:15px; } +.comment { + margin-bottom:30px; +} + #comment { padding-right:15px; border-right:1px solid black; diff --git a/index.php b/index.php index 56b216a..5598679 100644 --- a/index.php +++ b/index.php @@ -436,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 ""; @@ -463,34 +468,38 @@ END_CAPTCHA_STYLE; $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, - - + reCAPTCHA said you're not human, + +
END_OF_FORM; } else {