Zeile 23 | Zeile 23 |
---|
$plugins->run_hooks("printthread_start");
|
$plugins->run_hooks("printthread_start");
|
$thread = get_thread($mybb->get_input('tid', 1));
| $thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT));
|
if(!$thread) { error($lang->error_invalidthread); }
|
if(!$thread) { error($lang->error_invalidthread); }
|
| $plugins->run_hooks("printthread_start");
|
$thread['threadprefix'] = $thread['displaystyle'] = ''; if($thread['prefix'])
| $thread['threadprefix'] = $thread['displaystyle'] = ''; if($thread['prefix'])
|
Zeile 92 | Zeile 94 |
---|
// Check if this forum is password protected and we have a valid password check_forum_password($forum['fid']);
|
// Check if this forum is password protected and we have a valid password check_forum_password($forum['fid']);
|
$page = $mybb->get_input('page', 1);
| $page = $mybb->get_input('page', MyBB::INPUT_INT);
|
// Paginate this thread if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1)
| // Paginate this thread if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1)
|
Zeile 124 | Zeile 126 |
---|
else { $multipage = '';
|
else { $multipage = '';
|
}
| }
|
$thread['threadlink'] = get_thread_link($tid);
$postrows = ''; if(is_moderator($forum['fid'], "canviewunapprove"))
|
$thread['threadlink'] = get_thread_link($tid);
$postrows = ''; if(is_moderator($forum['fid'], "canviewunapprove"))
|
{
| {
|
$visible = "AND (p.visible='0' OR p.visible='1')"; } else
| $visible = "AND (p.visible='0' OR p.visible='1')"; } else
|
Zeile 148 | Zeile 150 |
---|
while($postrow = $db->fetch_array($query)) { if($postrow['userusername'])
|
while($postrow = $db->fetch_array($query)) { if($postrow['userusername'])
|
{
| {
|
$postrow['username'] = $postrow['userusername']; } $postrow['subject'] = htmlspecialchars_uni($parser->parse_badwords($postrow['subject']));
| $postrow['username'] = $postrow['userusername']; } $postrow['subject'] = htmlspecialchars_uni($parser->parse_badwords($postrow['subject']));
|
Zeile 189 | Zeile 191 |
---|
eval("\$printable = \"".$templates->get("printthread")."\";"); output_page($printable);
|
eval("\$printable = \"".$templates->get("printthread")."\";"); output_page($printable);
|
function makeprintablenav($pid="0", $depth="--")
| /** * @param int $pid * @param string $depth * * @return string */ function makeprintablenav($pid=0, $depth="--")
|
{ global $mybb, $db, $pforumcache, $fid, $forum, $lang; if(!is_array($pforumcache))
| { global $mybb, $db, $pforumcache, $fid, $forum, $lang; if(!is_array($pforumcache))
|
Zeile 221 | Zeile 229 |
---|
/** * Output multipage navigation. *
|
/** * Output multipage navigation. *
|
* @param int The total number of items. * @param int The items per page. * @param int The current page. * @param string The URL base.
| * @param int $count The total number of items. * @param int $perpage The items per page. * @param int $current_page The current page. * @param string $url The URL base. * * @return string
|
*/ function printthread_multipage($count, $perpage, $current_page, $url) {
| */ function printthread_multipage($count, $perpage, $current_page, $url) {
|