Changeset 30 for dev/common/comments.php
- Timestamp:
- 10/22/06 21:12:01 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/comments.php
r16 r30 21 21 22 22 $pw = false; 23 if (!$config->getConfig('comments_pw') )23 if (!$config->getConfig('comments_pw') || $page->isAdmin()) 24 24 { 25 25 $pw = true; … … 27 27 if ($_POST['password'] == $config->getPostPassword() || $pw) 28 28 { 29 if ($_POST['comment'] == null)29 if ($_POST['comment'] == '') 30 30 { 31 31 $html .= "Error: Sillent type hey? good for you, bad for a comment."; … … 81 81 $html .= "<b>Name:</b>"; 82 82 $html .= "<input style=\"position:relative; right:-3px;\" class=\"comment-button\" name=\"name\" type=\"text\" size=\"24\" maxlength=\"24\"> "; 83 if ($config->getConfig('comments_pw') )83 if ($config->getConfig('comments_pw') && !$page->isAdmin()) 84 84 { 85 85 $html .= "<br><b>Password:</b>";