);
	$smarty->assign('comment_topicsmiley', $comment_info['smiley']);
} else {
	$smarty->assign('comment_title', isset($_REQUEST['comments_title']) ? $_REQUEST['comments_title'] : '');
	$smarty->assign('comment_data', isset($_REQUEST['comments_data']) ? $_REQUEST['comments_data'] : '');
	$smarty->assign('comment_topictype', isset($_REQUEST['comment_topictype']) ? $_REQUEST['comment_topictype'] : '');
	$smarty->assign('comment_topictype', 'n');
	$smarty->assign('comment_topicsummary', '');
	$smarty->assign('comment_topicsmiley', '');
}

$smarty->assign('comment_preview', 'n');
if (isset($_REQUEST['comments_previewComment'])) {
	check_ticket('view-forum');
	$smarty->assign('comments_preview_title', $_REQUEST['comments_title']);
	$smarty->assign('comments_preview_data', ($commentslib->parse_comment_data($_REQUEST['comments_data'])));
	$smarty->assign('comment_title', $_REQUEST['comments_title']);
	$smarty->assign('comment_data', $_REQUEST['comments_data']);
	$smarty->assign('comment_topictype', $_REQUEST['comment_topictype']);
	if ($forum_info['topic_summary'] == 'y') $smarty->assign('comment_topicsummary', $_REQUEST['comment_topicsummary']);
	if ($forum_info['topic_smileys'] == 'y') $smarty->assign('comment_topicsmiley', $_REQUEST['comment_topicsmiley']);
	$smarty->assign('openpost', 'y');
	$smarty->assign('comment_preview', 'y');
}

// Check for settings
if (!isset($_REQUEST['comments_per_page'])) {
	$_REQUEST['comments_per_page'] = $comments_per_page;
}

if (!isset($_REQUEST['thread_sort_mode'])) {
Esempio n. 2
0
        } else {
            $comment_info["title"] = "";
            $_REQUEST["comments_title"] = "";
        }
    }
    $smarty->assign('comment_title', ($prefs['forum_comments_no_title_prefix'] != 'y' ? tra('Re:') . ' ' : '') . $comment_info["title"]);
    $smarty->assign('comments_reply_threadId', $_REQUEST["comments_reply_threadId"]);
} else {
    $smarty->assign('comment_title', '');
    $smarty->assign('comment_rating', '');
    $smarty->assign('comment_data', '');
}
$smarty->assign('comment_preview', 'n');
if (isset($_REQUEST["comments_previewComment"]) || isset($msgError)) {
    $smarty->assign('comments_preview_title', $_REQUEST["comments_title"]);
    $smarty->assign('comments_preview_data', $commentslib->parse_comment_data(strip_tags($_REQUEST["comments_data"])));
    $smarty->assign('comment_title', $_REQUEST["comments_title"]);
    $smarty->assign('comment_rating', $_REQUEST["comment_rating"]);
    $smarty->assign('comment_data', $_REQUEST["comments_data"]);
    if (isset($_REQUEST["comments_previewComment"])) {
        $smarty->assign('comment_preview', 'y');
    }
}
// Always show comments when a display setting has been explicitely specified
if (isset($_REQUEST['comments_per_page']) || isset($_REQUEST['thread_style']) || isset($_REQUEST['thread_sort_mode'])) {
    $comments_show = 'y';
}
if (!isset($_REQUEST["comments_commentFind"])) {
    $_REQUEST["comments_commentFind"] = '';
} else {
    $comments_show = 'y';
Esempio n. 3
0
        $comment_title = tra('Re:') . ' ' . $comment_info["title"];
    } else {
        $comment_title = $comment_info["title"];
    }
    $smarty->assign('comment_title', $comment_title);
    $smarty->assign('comments_reply_threadId', $_REQUEST["comments_reply_threadId"]);
} else {
    $smarty->assign('comment_title', '');
    $smarty->assign('comment_rating', '');
    $smarty->assign('comment_data', '');
}
$smarty->assign('comment_preview', 'n');
if (isset($_REQUEST["comments_previewComment"]) || isset($_REQUEST["comments_postComment"])) {
    $comment_preview = array();
    $comment_preview['title'] = $_REQUEST["comments_title"];
    $comment_preview['parsed'] = $commentslib->parse_comment_data(strip_tags($_REQUEST["comments_data"]));
    $comment_preview['rating'] = $_REQUEST["comment_rating"];
    $comment_preview['commentDate'] = $tikilib->now;
    if (isset($_REQUEST["anonymous_name"])) {
        $comment_preview['anonymous_name'] = $_REQUEST["anonymous_name"];
    }
    if (isset($_REQUEST["anonymous_email"])) {
        $comment_preview['email'] = $_REQUEST["anonymous_email"];
    }
    if (isset($_REQUEST["anonymous_website"])) {
        $comment_preview['website'] = $_REQUEST["anonymous_website"];
    }
    $smarty->assign('comment_preview_data', $comment_preview);
    if (isset($_REQUEST["comments_previewComment"])) {
        $smarty->assign('comment_preview', 'y');
    }