Zeile 1 | Zeile 1 |
---|
<?php /** * MyBB 1.4
|
<?php /** * MyBB 1.4
|
* Copyright � 2008 MyBB Group, All Rights Reserved
| * Copyright © 2008 MyBB Group, All Rights Reserved
|
* * Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* * Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: showthread.php 4276 2008-11-23 03:01:33Z Tikitiki $
| * $Id: showthread.php 4864 2010-04-10 09:13:19Z RyanGordon $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 407 | Zeile 407 |
---|
} else {
|
} else {
|
$edit_poll = "| <a href=\"polls.php?action=editpoll&pid={$poll['pid']}\">{$lang->edit_poll}</a>";
| $edit_poll = " | <a href=\"polls.php?action=editpoll&pid={$poll['pid']}\">{$lang->edit_poll}</a>";
|
}
// Decide what poll status to show depending on the status of the poll and whether or not the user voted already.
| }
// Decide what poll status to show depending on the status of the poll and whether or not the user voted already.
|
Zeile 531 | Zeile 531 |
---|
else { $thread['averagerating'] = floatval(round($thread['totalratings']/$thread['numratings'], 2));
|
else { $thread['averagerating'] = floatval(round($thread['totalratings']/$thread['numratings'], 2));
|
$thread['width'] = intval($thread['averagerating'])*20;
| $thread['width'] = intval(round($thread['averagerating']))*20;
|
$thread['numratings'] = intval($thread['numratings']); }
| $thread['numratings'] = intval($thread['numratings']); }
|
Zeile 575 | Zeile 575 |
---|
} }
|
} }
|
// Which thread mode is our user using?
| // Which thread mode is our user using by default? if(!empty($mybb->user['threadmode'])) { $defaultmode = $mybb->user['threadmode']; } else if($mybb->settings['threadusenetstyle'] == 1) { $defaultmode = 'threaded'; } else { $defaultmode = 'linear'; } // If mode is unset, set the default mode
|
if(!isset($mybb->input['mode'])) {
|
if(!isset($mybb->input['mode'])) {
|
if(!empty($mybb->user['threadmode'])) // Take user's default preference first (if there is one) and run with it { $mybb->input['mode'] = $mybb->user['threadmode']; } else if($mybb->settings['threadusenetstyle'] == 1) { $mybb->input['mode'] = 'threaded'; } else { $mybb->input['mode'] = 'linear'; }
| $mybb->input['mode'] = $defaultmode;
|
}
// Threaded or linear display?
| }
// Threaded or linear display?
|
Zeile 658 | Zeile 661 |
---|
} $tree[$post['replyto']][$post['pid']] = $post; $postsdone[$post['pid']] = 1;
|
} $tree[$post['replyto']][$post['pid']] = $post; $postsdone[$post['pid']] = 1;
|
}
| }
|
} $threadedbits = buildtree();
| } $threadedbits = buildtree();
|
Zeile 729 | Zeile 732 |
---|
$upper = $start+$perpage; // Work out if we have terms to highlight
|
$upper = $start+$perpage; // Work out if we have terms to highlight
|
$highlight = ""; if($mybb->input['highlight']) { if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && $_SERVER['SEO_SUPPORT'] == 1))
| $highlight = ""; $threadmode = ""; if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && $_SERVER['SEO_SUPPORT'] == 1)) { if($mybb->input['highlight']) { $highlight = "?highlight=".urlencode($mybb->input['highlight']); } if($defaultmode != "linear")
|
{
|
{
|
$highlight = "?highlight=".urlencode($mybb->input['highlight']);
| if($mybb->input['highlight']) { $threadmode = "&mode=linear"; } else { $threadmode = "?mode=linear"; }
|
}
|
}
|
else { $highlight = "&highlight=".urlencode($mybb->input['highlight']); } }
| } else { if($mybb->input['highlight']) { $highlight = "&highlight=".urlencode($mybb->input['highlight']); } if($defaultmode != "linear") { $threadmode = "&mode=linear"; } }
|
|
|
$multipage = multipage($postcount, $perpage, $page, str_replace("{tid}", $tid, THREAD_URL_PAGED.$highlight));
| $multipage = multipage($postcount, $perpage, $page, str_replace("{tid}", $tid, THREAD_URL_PAGED.$highlight.$threadmode));
|
if($postcount > $perpage) { eval("\$threadpages = \"".$templates->get("showthread_multipage")."\";");
| if($postcount > $perpage) { eval("\$threadpages = \"".$templates->get("showthread_multipage")."\";");
|
Zeile 912 | Zeile 936 |
---|
{ $postoptionschecked['emailnotify'] = 'checked="checked"'; }
|
{ $postoptionschecked['emailnotify'] = 'checked="checked"'; }
|
mt_srand((double) microtime() * 1000000); $posthash = md5($mybb->user['uid'].mt_rand());
| $posthash = md5($mybb->user['uid'].random_str());
|
eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";"); }
| eval("\$quickreply = \"".$templates->get("showthread_quickreply")."\";"); }
|