Changeset 5959

Show
Ignore:
Timestamp:
05/17/08 08:54:51 (8 months ago)
Author:
creorix
Message:

#754

  • 백업 시 삭제된 방명록 댓글은 백업하지 않도록 수정
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/data/export/index.php

    r5557 r5959  
    337337    $writer->write('<guestbook>'); 
    338338    do { 
    339         $writer->write('<comment>' . '<commenter' . ' id="' . $comment->commenter . '">' . '<name>' . htmlspecialchars(UTF8::correct($comment->name)) . '</name>' . '<homepage>' . htmlspecialchars(UTF8::correct($comment->homepage)) . '</homepage>' . '<ip>' . $comment->ip . '</ip>' . '<openid>' . $comment->openid . '</openid>' . '</commenter>' . '<content>' . htmlspecialchars(UTF8::correct($comment->content)) . '</content>' . '<password>' . htmlspecialchars($comment->password) . '</password>' . '<secret>' . htmlspecialchars($comment->secret) . '</secret>' . '<written>' . $comment->written . '</written>'); 
    340         $writer->write(CRLF); 
    341         if ($childComment = $comment->getChildren()) { 
    342             do { 
    343                 $writer->write('<comment>' . '<commenter' . ' id="' . $childComment->commenter . '">' . '<name>' . htmlspecialchars(UTF8::correct($childComment->name)) . '</name>' . '<homepage>' . htmlspecialchars(UTF8::correct($childComment->homepage)) . '</homepage>' . '<ip>' . $childComment->ip . '</ip>' . '<openid>' . $comment->openid . '</openid>' . '</commenter>' . '<content>' . htmlspecialchars(UTF8::correct($childComment->content)) . '</content>' . '<password>' . htmlspecialchars($childComment->password) . '</password>' . '<secret>' . htmlspecialchars($childComment->secret) . '</secret>' . '<written>' . $childComment->written . '</written>' . '</comment>'); 
    344                 $writer->write(CRLF); 
    345             } while ($childComment->shift()); 
    346             $childComment->close(); 
    347         } 
    348         $writer->write('</comment>'); 
    349         $writer->write(CRLF); 
     339        if ($comment->isFiltered == 0) { 
     340            $writer->write('<comment>' . '<commenter' . ' id="' . $comment->commenter . '">' . '<name>' . htmlspecialchars(UTF8::correct($comment->name)) . '</name>' . '<homepage>' . htmlspecialchars(UTF8::correct($comment->homepage)) . '</homepage>' . '<ip>' . $comment->ip . '</ip>' . '<openid>' . $comment->openid . '</openid>' . '</commenter>' . '<content>' . htmlspecialchars(UTF8::correct($comment->content)) . '</content>' . '<password>' . htmlspecialchars($comment->password) . '</password>' . '<secret>' . htmlspecialchars($comment->secret) . '</secret>' . '<written>' . $comment->written . '</written>'); 
     341            $writer->write(CRLF); 
     342            if ($childComment = $comment->getChildren()) { 
     343                do { 
     344                    if ($childComment->isFiltered == 0) { 
     345                        $writer->write('<comment>' . '<commenter' . ' id="' . $childComment->commenter . '">' . '<name>' . htmlspecialchars(UTF8::correct($childComment->name)) . '</name>' . '<homepage>' . htmlspecialchars(UTF8::correct($childComment->homepage)) . '</homepage>' . '<ip>' . $childComment->ip . '</ip>' . '<openid>' . $comment->openid . '</openid>' . '</commenter>' . '<content>' . htmlspecialchars(UTF8::correct($childComment->content)) . '</content>' . '<password>' . htmlspecialchars($childComment->password) . '</password>' . '<secret>' . htmlspecialchars($childComment->secret) . '</secret>' . '<written>' . $childComment->written . '</written>' . '</comment>'); 
     346                        $writer->write(CRLF); 
     347                    } 
     348                } while ($childComment->shift()); 
     349                $childComment->close(); 
     350            } 
     351            $writer->write('</comment>'); 
     352            $writer->write(CRLF); 
     353        } 
    350354    } while ($comment->shift()); 
    351355    $writer->write('</guestbook>');