"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/forumdisplay.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

forumdisplay.php  (mybb_1822):forumdisplay.php  (mybb_1823)
skipping to change at line 884 skipping to change at line 884
else else
{ {
$tids[$thread['tid']] = $thread['tid']; $tids[$thread['tid']] = $thread['tid'];
if(isset($moved_threads[$thread['tid']])) if(isset($moved_threads[$thread['tid']]))
{ {
unset($moved_threads[$thread['tid']]); unset($moved_threads[$thread['tid']]);
} }
} }
} }
$args = array(
'threadcache' => &$threadcache,
'tids' => &$tids
);
$plugins->run_hooks("forumdisplay_before_thread", $args);
if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtrating s'] != 0 && $mybb->user['uid'] && !empty($threadcache) && $ratings == true) if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtrating s'] != 0 && $mybb->user['uid'] && !empty($threadcache) && $ratings == true)
{ {
// Check if we've rated threads on this page // Check if we've rated threads on this page
// Guests get the pleasure of not being ID'd, but will be checked when they try and rate // Guests get the pleasure of not being ID'd, but will be checked when they try and rate
$imp = implode(",", array_keys($threadcache)); $imp = implode(",", array_keys($threadcache));
$query = $db->simple_select("threadratings", "tid, uid", "tid IN ({$imp}) AND uid = '{$mybb->user['uid']}'"); $query = $db->simple_select("threadratings", "tid, uid", "tid IN ({$imp}) AND uid = '{$mybb->user['uid']}'");
while($rating = $db->fetch_array($query)) while($rating = $db->fetch_array($query))
{ {
$threadcache[$rating['tid']]['rated'] = 1; $threadcache[$rating['tid']]['rated'] = 1;
skipping to change at line 1333 skipping to change at line 1340
} }
$plugins->run_hooks("forumdisplay_thread_end"); $plugins->run_hooks("forumdisplay_thread_end");
if($fpermissions['canviewdeletionnotice'] != 0 && $thread['visibl e'] == -1 && !is_moderator($fid, "canviewdeleted")) if($fpermissions['canviewdeletionnotice'] != 0 && $thread['visibl e'] == -1 && !is_moderator($fid, "canviewdeleted"))
{ {
eval("\$threads .= \"".$templates->get("forumdisplay_thre ad_deleted")."\";"); eval("\$threads .= \"".$templates->get("forumdisplay_thre ad_deleted")."\";");
} }
else else
{ {
$thread['start_datetime'] = my_date('relative', $thread[' dateline']);
eval("\$threads .= \"".$templates->get("forumdisplay_thre ad")."\";"); eval("\$threads .= \"".$templates->get("forumdisplay_thre ad")."\";");
} }
} }
$customthreadtools = $standardthreadtools = ''; $customthreadtools = $standardthreadtools = '';
if($ismod) if($ismod)
{ {
if(is_moderator($fid, "canusecustomtools") && $has_modtools == tr ue) if(is_moderator($fid, "canusecustomtools") && $has_modtools == tr ue)
{ {
$gids = explode(',', $mybb->user['additionalgroups']); $gids = explode(',', $mybb->user['additionalgroups']);
 End of changes. 2 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)