$limit = strpos($agent, 'iPad') ? 7 : (strpos($agent, 'iPhone') || strpos($agent, 'like Mac OS') ? 5 : 200); $result = get_threads_ex($limit); $content = array(); $last_thread = -1; $msgs = print_threads_ex($result, $content, $last_thread, $limit); print_msgs($content, $msgs); print '</div>'; print_pages($max_page, $page, 'contents', $cur_page); print '<BR><a href="#up" target="contents">Up</a>'; print ' <a href="javascript:load_threads(document.getElementById(\'threads\'), ' . $last_thread . ',' . $limit . ');" target="contents">More</a>'; $end_timestamp = time(); $duration = $end_timestamp - $start_timestamp; print '<!-- ' . $duration . ' milliseconds -->'; // print($show_hidden . "|"); // print_r($ignored); autoload_threads($last_thread, $limit); ?> <table cellpadding=1 cellspacing=0 width="90%"> <tr> <td align="left"> <h4></h4> </td> <td align="right"> <h4></h4> </td> </tr> </table> </body> </html> <?php
$min_thread_id = 1; } $limit = 1000; $min_thread = $max_thread_id - $limit; $result = get_thread_starts($min_thread_id, $max_thread_id); print "<P>"; print '<div id="threads">'; $content = array(); $last_thread = -1; $msgs = print_threads_ex($result, $content, $last_thread, $limit); print_msgs($content, $msgs); print '</div>'; print_pages($max_page, $page, 'contents', $cur_page); print '<BR><a href="#up" target="contents">Up</a>'; print ' <a href="javascript:load_threads(document.getElementById(\'threads\'), ' . $last_thread . ',\'yes\');" target="contents">More</a>'; autoload_threads($last_thread, "yes"); ?> <table cellpadding=1 cellspacing=0 width="90%"> <tr> <td align="left"> <h4></h4> </td> <td align="right"> <h4></h4> </td> </tr> </table> </body> </html> <?php