<input type="checkbox" name="rid[]" value="<?php 
        echo $row['replyID'];
        ?>
"/></td>
                                <td>
                                    <a href="/forum/topic.php?id=<?php 
        echo $trow['topicID'];
        ?>
"><?php 
        echo $trow['topicTitle'];
        ?>
</a>
                                </td>
                                <td>
                                    <?php 
        $bbcodeParser = new BuckysBBCodeNodeContainerDocument();
        echo $bbcodeParser->parse($row['replyContent'])->detect_links()->detect_emails()->detect_emoticons()->get_html();
        ?>
                                </td>
                                <td>
                                    <a href="/profile.php?user=<?php 
        echo $row['creatorID'];
        ?>
"
                                        style="font-weight:bold;"><?php 
        echo $row['creatorName'];
        ?>
</a>
                                </td>
                                <td><?php 
        echo buckys_format_date($row['createdDate']);
Esempio n. 2
0
        echo $row['creatorID'];
        ?>
'><?php 
        echo $row['creatorName'];
        ?>
</a>
                                &middot;
                                <span class="post-date"><?php 
        echo buckys_format_date($row['createdDate']);
        ?>
</span>

                                <div class="clear"></div>
                                <div class="buckys-bbcode-content" style="padding-top:5px;">
                                    <?php 
        $bbcodeParser = new BuckysBBCodeNodeContainerDocument();
        $t_content = utf8_decode($row['replyContent']);
        $html = $bbcodeParser->parse($t_content)->detect_links()->detect_emails()->detect_emoticons()->get_html();
        echo $html;
        ?>
                                </div>
                            <span class="actions-span">
                                <?php 
        if ($can_block_user && $currentUserID != $row['creatorID']) {
            ?>
                                    <a href="/forum/moderator.php?action=block-user&id=<?php 
            echo $topic['categoryID'];
            ?>
&userID=<?php 
            echo $row['creatorID'];
            ?>
/**
 * @param $matches
 * @return string
 * @throws Exception
 */
function _buckys_remove_html_tags($matches)
{
    //Convert HTML Codes
    $bbcodeParser = new BuckysBBCodeNodeContainerDocument();
    $string = $matches[1];
    $html = $bbcodeParser->parse($string)->detect_links()->detect_emails()->detect_emoticons()->get_html();
    $string = _escape_brackets($string);
    return strip_tags('[code]' . $string . '[/code]');
}