Zeile 36 | Zeile 36 |
---|
$plugins->run_hooks("forumdisplay_start");
|
$plugins->run_hooks("forumdisplay_start");
|
$fid = $mybb->get_input('fid', 1);
| $fid = $mybb->get_input('fid', MyBB::INPUT_INT);
|
if($fid < 0) { switch($fid)
| if($fid < 0) { switch($fid)
|
Zeile 456 | Zeile 456 |
---|
// If there was a manual date cut override, use it. else {
|
// If there was a manual date cut override, use it. else {
|
$datecut = $mybb->get_input('datecut', 1);
| $datecut = $mybb->get_input('datecut', MyBB::INPUT_INT);
|
}
$datecutsel[(int)$datecut] = ' selected="selected"';
| }
$datecutsel[(int)$datecut] = ' selected="selected"';
|
Zeile 473 | Zeile 473 |
---|
}
// Sort by thread prefix
|
}
// Sort by thread prefix
|
$tprefix = $mybb->get_input('prefix', 1);
| $tprefix = $mybb->get_input('prefix', MyBB::INPUT_INT);
|
if($tprefix > 0) { $prefixsql = "AND prefix = {$tprefix}";
| if($tprefix > 0) { $prefixsql = "AND prefix = {$tprefix}";
|
Zeile 580 | Zeile 580 |
---|
}
// Are we viewing a specific page?
|
}
// Are we viewing a specific page?
|
$mybb->input['page'] = $mybb->get_input('page', 1);
| $mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);
|
if($mybb->input['page'] > 1) { $sorturl = get_forum_link($fid, $mybb->input['page']).$string."datecut=$datecut&prefix=$tprefix";
| if($mybb->input['page'] > 1) { $sorturl = get_forum_link($fid, $mybb->input['page']).$string."datecut=$datecut&prefix=$tprefix";
|
Zeile 603 | Zeile 603 |
---|
if($fpermissions['canviewthreads'] != 0) { // How many posts are there?
|
if($fpermissions['canviewthreads'] != 0) { // How many posts are there?
|
if($datecut > 0 || isset($fpermissions['canonlyviewownthreads']) && $fpermissions['canonlyviewownthreads'] == 1)
| if(($datecut > 0 && $datecut != 9999) || isset($fpermissions['canonlyviewownthreads']) && $fpermissions['canonlyviewownthreads'] == 1)
|
{ $query = $db->simple_select("threads", "COUNT(tid) AS threads", "fid = '$fid' $useronly $visibleonly $datecutsql $prefixsql"); $threadcount = $db->fetch_field($query, "threads");
| { $query = $db->simple_select("threads", "COUNT(tid) AS threads", "fid = '$fid' $useronly $visibleonly $datecutsql $prefixsql"); $threadcount = $db->fetch_field($query, "threads");
|
Zeile 692 | Zeile 692 |
---|
$and = "&"; }
|
$and = "&"; }
|
if($datecut > 0)
| if($datecut > 0 && $datecut != 9999)
|
{ $page_url .= "{$q}{$and}datecut={$datecut}"; $q = '';
| { $page_url .= "{$q}{$and}datecut={$datecut}"; $q = '';
|
Zeile 838 | Zeile 838 |
---|
} else if(!empty($cookie)) {
|
} else if(!empty($cookie)) {
|
my_setcookie("mybb[announcements]", addslashes(serialize($cookie)), -1);
| my_setcookie("mybb[announcements]", addslashes(my_serialize($cookie)), -1);
|
} } else
| } } else
|
Zeile 1053 | Zeile 1053 |
---|
{ $icon = $icon_cache[$thread['icon']]; $icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);
|
{ $icon = $icon_cache[$thread['icon']]; $icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);
|
| $icon['path'] = htmlspecialchars_uni($icon['path']); $icon['name'] = htmlspecialchars_uni($icon['name']);
|
eval("\$icon = \"".$templates->get("forumdisplay_thread_icon")."\";"); } else
| eval("\$icon = \"".$templates->get("forumdisplay_thread_icon")."\";"); } else
|
Zeile 1334 | Zeile 1336 |
---|
$gid = (int)$gid; $gidswhere .= " OR ','||groups||',' LIKE '%,{$gid},%'"; }
|
$gid = (int)$gid; $gidswhere .= " OR ','||groups||',' LIKE '%,{$gid},%'"; }
|
$query = $db->simple_select("modtools", 'tid, name', "(','||forums||',' LIKE '%,$fid,%' OR ','||forums||',' LIKE '%,-1,%' OR forums='') AND (groups=''{$gidswhere}) AND type = 't'");
| $query = $db->simple_select("modtools", 'tid, name', "(','||forums||',' LIKE '%,$fid,%' OR ','||forums||',' LIKE '%,-1,%' OR forums='') AND (groups='' OR ','||groups||',' LIKE '%,-1,%'{$gidswhere}) AND type = 't'");
|
break; default: foreach($gids as $gid)
| break; default: foreach($gids as $gid)
|
Zeile 1342 | Zeile 1344 |
---|
$gid = (int)$gid; $gidswhere .= " OR CONCAT(',',groups,',') LIKE '%,{$gid},%'"; }
|
$gid = (int)$gid; $gidswhere .= " OR CONCAT(',',groups,',') LIKE '%,{$gid},%'"; }
|
$query = $db->simple_select("modtools", 'tid, name', "(CONCAT(',',forums,',') LIKE '%,$fid,%' OR CONCAT(',',forums,',') LIKE '%,-1,%' OR forums='') AND (groups=''{$gidswhere}) AND type = 't'");
| $query = $db->simple_select("modtools", 'tid, name', "(CONCAT(',',forums,',') LIKE '%,$fid,%' OR CONCAT(',',forums,',') LIKE '%,-1,%' OR forums='') AND (groups='' OR CONCAT(',',groups,',') LIKE '%,-1,%'{$gidswhere}) AND type = 't'");
|
break; }
| break; }
|