Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* $Id: showthread.php 3053 2007-05-12 19:07:18Z Tikitiki $
| * $Id: showthread.php 3595 2008-01-09 00:10:57Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 89 | Zeile 89 |
---|
error_no_permission(); }
|
error_no_permission(); }
|
// Check that this forum is not password protected. check_forum_password($forum['fid'], $forum['password']);
| // Check if this forum is password protected and we have a valid password check_forum_password($forum['fid']);
|
// If there is no specific action, we must be looking at the thread. if(!$mybb->input['action'])
| // If there is no specific action, we must be looking at the thread. if(!$mybb->input['action'])
|
Zeile 245 | Zeile 245 |
---|
{ header("Location:showthread.php?action=lastpost&tid={$tid}"); }
|
{ header("Location:showthread.php?action=lastpost&tid={$tid}"); }
|
| }
if($mybb->input['pid']) { $pid = $mybb->input['pid'];
|
}
$plugins->run_hooks("showthread_start");
| }
$plugins->run_hooks("showthread_start");
|
Zeile 267 | Zeile 272 |
---|
$poll['timeout'] = $poll['timeout']*60*60*24; $expiretime = $poll['dateline'] + $poll['timeout']; $now = time();
|
$poll['timeout'] = $poll['timeout']*60*60*24; $expiretime = $poll['dateline'] + $poll['timeout']; $now = time();
|
|
|
// If the poll or the thread is closed or if the poll is expired, show the results. if($poll['closed'] == "yes" || $thread['closed'] == "yes" || ($expiretime < $now && $poll['timeout'] > 0))
|
// If the poll or the thread is closed or if the poll is expired, show the results. if($poll['closed'] == "yes" || $thread['closed'] == "yes" || ($expiretime < $now && $poll['timeout'] > 0))
|
{
| {
|
$showresults = 1;
|
$showresults = 1;
|
}
| }
|
// If the user is not a guest, check if he already voted. if($mybb->user['uid'] != 0)
| // If the user is not a guest, check if he already voted. if($mybb->user['uid'] != 0)
|
Zeile 287 | Zeile 292 |
---|
else { if($_COOKIE['pollvotes'][$poll['pid']])
|
else { if($_COOKIE['pollvotes'][$poll['pid']])
|
{
| {
|
$alreadyvoted = 1; } }
| $alreadyvoted = 1; } }
|
Zeile 328 | Zeile 333 |
---|
{ $optionbg = "trow1"; $votestar = "";
|
{ $optionbg = "trow1"; $votestar = "";
|
}
| }
|
// If the user already voted or if the results need to be shown, do so; else show voting screen. if($alreadyvoted || $showresults)
| // If the user already voted or if the results need to be shown, do so; else show voting screen. if($alreadyvoted || $showresults)
|
Zeile 369 | Zeile 374 |
---|
// Check if user is allowed to edit posts; if so, show "edit poll" link. if(is_moderator($fid, 'caneditposts') != 'yes')
|
// Check if user is allowed to edit posts; if so, show "edit poll" link. if(is_moderator($fid, 'caneditposts') != 'yes')
|
{
| {
|
$edit_poll = ''; } else
| $edit_poll = ''; } else
|
Zeile 410 | Zeile 415 |
---|
}
// Create the forum jump dropdown box.
|
}
// Create the forum jump dropdown box.
|
$forumjump = build_forum_jump("", $fid, 1);
| if($mybb->settings['enableforumjump'] != "no") { $forumjump = build_forum_jump("", $fid, 1); }
|
// Mark this thread read for the currently logged in user. if($mybb->settings['threadreadcut'] && ($mybb->user['uid'] != 0))
| // Mark this thread read for the currently logged in user. if($mybb->settings['threadreadcut'] && ($mybb->user['uid'] != 0))
|