Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: functions_online.php 5016 2010-06-12 00:24:02Z RyanGordon $
| * $Id: functions_online.php 5380 2011-02-21 12:04:43Z Tomm $
|
*/
$uid_list = $aid_list = $pid_list = $tid_list = $fid_list = $eid_list = array();
| */
$uid_list = $aid_list = $pid_list = $tid_list = $fid_list = $eid_list = array();
|
Zeile 498 | Zeile 498 |
---|
// Fetch any threads if(!is_array($threads) && count($tid_list) > 0) {
|
// Fetch any threads if(!is_array($threads) && count($tid_list) > 0) {
|
| $perms = array();
|
$tid_sql = implode(",", $tid_list); $query = $db->query(" SELECT t.fid, t.tid, t.subject, t.visible, p.displaystyle AS threadprefix
| $tid_sql = implode(",", $tid_list); $query = $db->query(" SELECT t.fid, t.tid, t.subject, t.visible, p.displaystyle AS threadprefix
|
Zeile 505 | Zeile 506 |
---|
LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix) WHERE tid IN({$tid_sql}) {$fidnot} {$visible} ");
|
LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix) WHERE tid IN({$tid_sql}) {$fidnot} {$visible} ");
|
|
|
while($thread = $db->fetch_array($query)) {
|
while($thread = $db->fetch_array($query)) {
|
| if(!$perms[$thread['fid']]) { $perms[$thread['fid']] = forum_permissions($thread['fid']); }
if($perms[$thread['fid']]['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid']) { continue; }
|
if(is_moderator($thread['fid']) || $thread['visible'] != '0') { $thread_title = '';
| if(is_moderator($thread['fid']) || $thread['visible'] != '0') { $thread_title = '';
|