예제 #1
0
파일: index.php 프로젝트: holandacz/nb4
// display thread
if ($do == 'thread') {
    if (!$vbulletin->options['archive_threadtype']) {
        // if we are not using the archive threadtype, invisibly redirect to the full thread view
        exec_header_redirect($vbulletin->options['bburl'] . "/showthread.php?" . $vbulletin->session->vars['sessionurl_js'] . "t={$threadinfo['threadid']}");
    }
    if ($vbulletin->options['wordwrap'] != 0) {
        $threadinfo['title'] = fetch_word_wrapped_string($threadinfo['title']);
    }
    $threadinfo['title'] = fetch_censored_text($threadinfo['title']);
    $output .= print_archive_navigation($foruminfo, $threadinfo);
    $output .= "<p class=\"largefont\">{$vbphrase['view_full_version']} : " . ($threadinfo['prefix_plain_html'] ? "{$threadinfo['prefix_plain_html']} " : '') . "<a href=\"" . $vbulletin->options['bburl'] . "/showthread.php?t={$threadinfo['threadid']}\">{$threadinfo['title']}</a></p>\n<hr />\n";
    if ($p == 0) {
        $p = 1;
    }
    $output .= print_archive_page_navigation($threadinfo['replycount'] + 1, $vbulletin->options['archive_postsperpage'], "t-{$threadinfo['threadid']}");
    $posts = $db->query_read_slave("\n\t\tSELECT post.postid, post.pagetext, IFNULL( user.username , post.username ) AS username, dateline\n\t\tFROM " . TABLE_PREFIX . "post AS post\n\t\tLEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = post.userid)\n\t\tWHERE threadid = {$threadinfo['threadid']}\n\t\t\tAND visible = 1\n\t\t\t{$globalignore}\n\t\tORDER BY dateline ASC\n\t\tLIMIT " . ($p - 1) * $vbulletin->options['archive_postsperpage'] . ',' . $vbulletin->options[archive_postsperpage]);
    if ($pda and false) {
        $output .= "<span id=\"posting\"><a href=\"?message=1\" rel=\"nofollow\">New Reply</a></span>";
    }
    $i = 0;
    while ($post = $db->fetch_array($posts)) {
        $i++;
        $post['pagetext_simp'] = strip_bbcode($post['pagetext']);
        $post['postdate'] = vbdate($vbulletin->options['dateformat'], $post['dateline']);
        $post['posttime'] = vbdate($vbulletin->options['timeformat'], $post['dateline']);
        if ($vbulletin->options['wordwrap'] != 0) {
            $post['pagetext_simp'] = fetch_word_wrapped_string($post['pagetext_simp']);
        }
        $post['pagetext_simp'] = fetch_censored_text($post['pagetext_simp']);
        ($hook = vBulletinHook::fetch_hook('archive_thread_post')) ? eval($hook) : false;
예제 #2
0
파일: project.php 프로젝트: holandacz/nb4
            }
            $output .= print_archive_navbar(array(!SLASH_METHOD ? 'project.php' : './' => $vbphrase['projects'], (!SLASH_METHOD ? 'project.php?' : '') . "projectid-{$project['projectid']}.html" => $project['title_clean'], '' => $issue['title']));
            $output .= "<p class=\"largefont\">{$vbphrase['view_full_version']} : <a href=\"" . $vbulletin->options['bburl'] . "/project.php?issueid={$issue['issueid']}\">{$issue['title']}</a></p>\n<hr />\n";
            $issue['pagetext_simp'] = strip_bbcode($issue['pagetext']);
            $issue['postdate'] = vbdate($vbulletin->options['dateformat'], $issue['dateline']);
            $issue['posttime'] = vbdate($vbulletin->options['timeformat'], $issue['dateline']);
            if ($vbulletin->options['wordwrap'] != 0) {
                $issue['pagetext_simp'] = fetch_word_wrapped_string($issue['pagetext_simp']);
            }
            $issue['pagetext_simp'] = fetch_censored_text($issue['pagetext_simp']);
            $output .= "\n<div class=\"post\"><div class=\"posttop\"><div class=\"username\">{$issue['username']}</div><div class=\"date\">{$issue['postdate']}, {$issue['posttime']}</div></div>";
            $output .= "<div class=\"posttext\"><div><strong>{$issue['summary']}</strong></div>" . nl2br(htmlspecialchars_uni($issue['pagetext_simp'])) . "</div></div>\n\n";
            if ($notebits) {
                $output .= "<hr style=\"display: block; visibility: visible\" />\n\n";
            }
            $output .= print_archive_page_navigation($note_count, $vbulletin->options['archive_postsperpage'], "issueid-{$issue['issueid']}", 'project.php?');
            $output .= $notebits;
        }
    }
}
// #######################################################################
($hook = vBulletinHook::fetch_hook('projectarchive_complete')) ? eval($hook) : false;
$output .= "\r\n\r\n</div>\r\n</body>\r\n</html>";
if (defined('NOSHUTDOWNFUNC')) {
    exec_shut_down();
}
echo $output;
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 17:45, Tue Nov 18th 2008
|| # RCS: $Revision: 27941 $