$ratingcounter = 0; if ($config['postrating'] == 1) { if (!isset($ratings[$row->id])) { $ratings[$row->id] = array(); } if ($my->vlogin && $my->id != $row->mid && !isset($ratings[$row->id][$my->id])) { $showrating = true; } $ratingcounter = count($ratings[$row->id]); if (count($ratings[$row->id]) > 0) { $row->rating = round(array_sum($ratings[$row->id]) / $ratingcounter * 50) + 50; } } ($code = $plugins->load('showtopic_entry_prepared')) ? eval($code) : null; $inner['index_bit'] .= $tpl->parse("showtopic/index_bit"); } if ($my->vlogin && is_id($info['id'])) { $result = $db->query("SELECT id FROM {$db->pre}abos WHERE mid = '{$my->id}' AND tid = '{$info['id']}'", __LINE__, __FILE__); $abox = $db->fetch_assoc($result); } else { $abox = array('id' => null); } ($code = $plugins->load('showtopic_prepared')) ? eval($code) : null; echo $tpl->parse("showtopic/index"); $slog->setTopicRead($info['id'], $topforums); ($code = $plugins->load('showtopic_end')) ? eval($code) : null; $slog->updatelogged(); $zeitmessung = t2(); echo $tpl->parse("footer"); $phpdoc->Out(); $db->close();