Changeset 30 for dev/common/comments.php

Show
Ignore:
Timestamp:
10/22/06 21:12:01 (14 years ago)
Author:
exi
Message:

Added base killmail importer, it takes killmails from a specified directory, 1 mail per file.
Changed session interface to php, that reduces siteload by one mysql query and offers room for page variables.
Removed the need to enter a password to post comments if you're logged in as admin.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/comments.php

    r16 r30  
    2121 
    2222    $pw = false; 
    23     if (!$config->getConfig('comments_pw')) 
     23    if (!$config->getConfig('comments_pw') || $page->isAdmin()) 
    2424    { 
    2525        $pw = true; 
     
    2727    if ($_POST['password'] == $config->getPostPassword() || $pw) 
    2828    { 
    29         if ($_POST['comment'] == null) 
     29        if ($_POST['comment'] == '') 
    3030        { 
    3131            $html .= "Error: Sillent type hey? good for you, bad for a comment."; 
     
    8181$html .= "<b>Name:</b>"; 
    8282$html .= "<input style=\"position:relative; right:-3px;\" class=\"comment-button\" name=\"name\" type=\"text\" size=\"24\" maxlength=\"24\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; 
    83 if ($config->getConfig('comments_pw')) 
     83if ($config->getConfig('comments_pw') && !$page->isAdmin()) 
    8484{ 
    8585    $html .= "<br><b>Password:</b>";