function show_left() { global $user, $count; output_block_start($user['username']); echo 'Member since ' . date('Y-m-d', $user['regdate']) . '<br/>' . number_format($count) . ' sequences'; output_block_end(); }
function output_message($title, $msg) { clear_buffer(); output_header($title); output_block_start($title); echo $msg; output_block_end(); output_footer(); exit; }
function show_left() { global $searchform; output_block_start('Search Titles'); form_display($searchform); output_block_end(); output_block_start('Sort by'); echo '<ul>'; showSortLink(1, "Newest"); showSortLink(2, "Popular"); showSortLink(3, "Longest"); echo '</ul><ul>'; showDateLink(1, "Today"); showDateLink(2, "This week"); showDateLink(3, "This month"); showDateLink(4, "All time"); echo '</ul>'; output_block_end(); }
} $upper = $start + $perpage; $query = "SELECT * FROM mybb_ajaxchat{$where} LIMIT {$start},{$perpage}"; $result = db_query($query); while ($row = mysqli_fetch_array($result)) { $date = date('n/j/y G:i', $row["date"]); $name = $row['username'] ? $row['username'] : '******' . $row['uid']; $msg = $parser->parse_message($row["message"], array('filter_badwords' => 1, 'allow_mycode' => 1, 'allow_smilies' => 0, 'me_username' => 1, 'nl2br' => 0)); echo '<table id="m' . $row['id'] . '"><tr><td class="left">' . $name . '<br/><a href="logs?page=' . (floor(($row['id'] - 12) / $perpage) + 1) . '#m' . $row['id'] . '" target="_blank">→ ' . $date . '</a></td><td>' . $msg . '</td></tr></table>'; } ?> </div> <form action="logs" style="width: 250px; float: left;"> <input type="text" name="search" value="<?php echo $search; ?> " /> <input type="submit" value="Search" /> </form> <?php $multipage = multipage($count, $perpage, $page, $url); if ($count > $perpage) { echo $multipage; } ?> </td> </tr> </tbody></table> <?php output_block_end(); output_footer();