"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/global.php" between
mybb_1821.zip and mybb_1822.zip

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

global.php  (mybb_1821):global.php  (mybb_1822)
skipping to change at line 209 skipping to change at line 209
if($fid) if($fid)
{ {
$style = $forum_cache[$fid]; $style = $forum_cache[$fid];
$load_from_forum = 1; $load_from_forum = 1;
} }
} }
// If we're accessing poll results, fetch the forum theme for it and if w e're overriding it // If we're accessing poll results, fetch the forum theme for it and if w e're overriding it
else if(isset($mybb->input['pid']) && THIS_SCRIPT == "polls.php") else if(isset($mybb->input['pid']) && THIS_SCRIPT == "polls.php")
{ {
$query = $db->simple_select('threads', 'fid', "poll = '{$mybb->in put['pid']}'", array('limit' => 1)); $query = $db->query("SELECT t.fid FROM ".TABLE_PREFIX."polls p IN NER JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) WHERE p.pid = '{$mybb->input ['pid']}' LIMIT 1");
$fid = $db->fetch_field($query, 'fid'); $fid = $db->fetch_field($query, 'fid');
if($fid) if($fid)
{ {
$style = $forum_cache[$fid]; $style = $forum_cache[$fid];
$load_from_forum = 1; $load_from_forum = 1;
} }
} }
// We have a forum id - simply load the theme from it // We have a forum id - simply load the theme from it
else if(isset($mybb->input['fid']) && isset($forum_cache[$mybb->input['fi d']])) else if(isset($mybb->input['fid']) && isset($forum_cache[$mybb->input['fi d']]))
skipping to change at line 633 skipping to change at line 633
$gids = "'0'"; $gids = "'0'";
foreach($groupleader as $user) foreach($groupleader as $user)
{ {
if($user['canmanagerequests'] != 1) if($user['canmanagerequests'] != 1)
{ {
continue; continue;
} }
$user['gid'] = (int)$user['gid']; $user['gid'] = (int)$user['gid'];
if(!empty($groupscache[$user['gid']]['joinable']) && $groupscache [$user['gid']]['joinable'] == 1) if(!empty($groupscache[$user['gid']]['type']) && $groupscache[$us er['gid']]['type'] == 4)
{ {
$showjoinnotice = true; $showjoinnotice = true;
$gids .= ",'{$user['gid']}'"; $gids .= ",'{$user['gid']}'";
} }
} }
if($showjoinnotice) if($showjoinnotice)
{ {
$query = $db->simple_select('joinrequests', 'COUNT(uid) as total' , "gid IN ({$gids}) AND invite='0'"); $query = $db->simple_select('joinrequests', 'COUNT(uid) as total' , "gid IN ({$gids}) AND invite='0'");
$total_joinrequests = $db->fetch_field($query, 'total'); $total_joinrequests = $db->fetch_field($query, 'total');
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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