예제 #1
0
    $tabsClass['comment'] = true;
    $visibilityText = _t('댓글');
    $midfix = 'Comment';
}
$deleteCommentsFromSameIP = intval(Setting::getBlogSettingGlobal('delete' . $midfix . 'sFromSameIP', 0));
if (isset($_POST['deleteItemsFromSameIP'])) {
    if ($_POST['deleteItemsFromSameIP'] == '1') {
        Setting::setBlogSettingGlobal('delete' . $midfix . 'sFromSameIP', 1);
        $deleteCommentsFromSameIP = 1;
    } else {
        Setting::setBlogSettingGlobal('delete' . $midfix . 'sFromSameIP', 0);
        $deleteCommentsFromSameIP = 0;
    }
}
if (isset($tabsClass['comment']) && $tabsClass['comment'] == true) {
    list($comments, $paging) = getCommentsWithPagingForOwner($blogid, $categoryId, $name, $ip, $search, $suri['page'], $perPage);
} else {
    list($comments, $paging) = getGuestbookWithPagingForOwner($blogid, $name, $ip, $search, $suri['page'], $perPage);
}
require ROOT . '/interface/common/owner/header.php';
?>
						<script type="text/javascript">
							//<![CDATA[
							(function($) {
								deleteCommentNow = function(id) {
									if (!confirm("<?php 
echo isset($tabsClass['guestbook']) ? _t('선택된 방명록 글을 삭제합니다. 계속 하시겠습니까?') : _t('선택된 댓글을 삭제합니다. 계속 하시겠습니까?');
?>
"))
										return false;
									var request = new HTTPRequest("GET", "<?php 
예제 #2
0
function getTrashCommentsWithPagingForOwner($blogid, $category, $name, $ip, $search, $page, $count)
{
    return getCommentsWithPagingForOwner($blogid, $category, $name, $ip, $search, $page, $count, true, 0);
}