$new = !$a || $lppostid > (int) $a[0]; $topicpic = $locked ? $new ? "lockednew" : "locked" : ($new ? "unlockednew" : "unlocked"); $subject = ($sticky ? STICKY . ": " : "") . "<a href='?action=viewtopic&topicid=" . $topicid . "'><b>" . security::html_safe(unesc($topicarr["subject"])) . "</b></a>" . $topicpages; print "<tr><td align='left' class='lista'><table border='0' cellspacing='0' cellpadding='0'><tr>" . "<td class='embedded' style='padding-right: 5px'>" . image_or_link($STYLEPATH . "/" . $topicpic . ".png", "", $topicpic) . "</td><td class='embedded' align='left'>\n" . "" . $subject . "</td></tr></table></td><td class='lista' align='center'>" . $replies . "</td>\n" . "<td class='lista' align='center'>" . $views . "</td><td class='lista' align='center'>" . $lpauthor . "</td>\n" . "<td class='lista' align='center'>" . $lpadded . "<br />by " . $lpusername . "</td>\n"; print "</tr>\n"; } print "</table>\n"; print $menu; } else { print "<p align='center'>" . NO_TOPIC . "</p>\n"; } print "<p><table class='main' border='0' cellspacing='5' cellpadding='5'><tr valing='center'>\n"; print "<td class='embedded'>" . image_or_link($STYLEPATH . "/unlockednew.png", "style='margin-right: 5px'", "unlockednew:") . " </td><td class='embedded'>" . WORD_NEW . " " . POST . "</td>\n"; print "<td class='embedded'>" . image_or_link($STYLEPATH . "/locked.png", "style='margin-left: 10px; margin-right: 5px'", "locked:") . " </td><td class='embedded'>" . LOCKED . " " . TOPIC . "</td>\n"; print "</tr></table></p>\n"; $arr = Cached::get_forum_access_levels($forumid) or die; $maypost = user::$current["id_level"] >= $arr["write"] && user::$current["id_level"] >= $arr["create"]; if (!$maypost) { print "<p><i>" . ERR_CANT_START_TOPICS . "</i></p>\n"; } print "<p align='center'><table border='0' class='main' cellspacing='0' cellpadding='0'><tr>\n"; print "<td class='embedded'><form method='get' action='?'><input type='hidden' " . "name='action' value='viewunread'><input type='submit' value='" . VIEW_UNREAD . "' class='btn'></form></td>\n"; if ($maypost) { print "<td class='embedded'><form method='get' action='?'><input type='hidden' " . "name='action' value='newtopic'><input type='hidden' name='forumid' " . "value='" . $forumid . "'><input type='submit' value='" . WORD_NEW . " " . TOPIC . "' class='btn' style='margin-left: 10px'></form></td>\n"; } print "</tr></table></p>\n"; insert_quick_jump_menu($forumid); block_end(); stdfoot(); die; }