$lmt) { $theText = substr($theText, 0, $lmt); $theText = substr($theText, 0, strrpos($theText,' ')); $trimmed = TRUE; } if ($trimmed) $theText .= '...'; return $theText; } function msgBox($m, $t, $d="index.php", $s="Info") { $theMsg = "
" . $m . "
"; $theMsg .= ""; $theMsg .= "Yes"; $theMsg .= ""; $theMsg .= "No
"; $theMsg .= "Author | "; echo "Post | "; echo "
---|---|
" . $row['author']; echo $pcount; echo " | "; if (isset($_SESSION['user_id']) and ($_SESSION['last_login'] < $row['date_posted'])) { echo NEWPOST . " "; } if (isset($_GET['page'])) { $pagelink = "&page=" . $_GET['page']; } else { $pagelink = ""; } echo "".POSTLINK.""; if (isset($row['subject'])) { echo " " . $row['subject'] . ""; } echo " " . bbcode(nl2br(htmlspecialchars($body))) . " "; echo $sig; echo $lastupdate; echo " |
"; echo $pdate . " | "; echo $replylink; echo $editlink; echo $dellink; echo " |
".NEWPOST." = New Post "; echo POSTLINK." = Post link (use to bookmark)
"; } } function isParent($page) { $currentpage = $_SERVER['PHP_SELF']; if (strpos($currentpage, $page) === false) { return FALSE; } else { return TRUE; } } function topicReplyBar($topicid,$forumid,$pos="right") { $html = " "; return $html; } function userOptionList($level) { $sql = "SELECT id, name, access_lvl " . "FROM forum_users " . "WHERE access_lvl=" . $level . " " . "ORDER BY name"; $result = mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_array($result)) { echo ""; } } function paginate($limit=10) { global $admin; $sql = "SELECT FOUND_ROWS();"; $result = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_array($result); $numrows = $row[0]; $pagelinks = "