function pstart($title = "") { global $head, $before_container, $body, $after_container, $dbname; $head = ""; $before_container = ""; $body = ""; $after_container = ""; ob_start(); $head .= "<meta http-equiv='Content-Type' content='text/html;" . " charset=utf-8' />\n"; if ($title == "") { $title = $dbname; } $head .= sprintf("<title>%s</title>", h($title)); $head .= "<link rel='stylesheet' type='text/css'" . " href='style.css' />\n"; $before_container .= make_nav(); if (@$_SESSION['flash'] != "") { $body .= "<div class='the_flash'>\n"; $body .= $_SESSION['flash']; $body .= "</div>\n"; $_SESSION['flash'] = ""; } }
<br clear="all" /> </div> <div id="wrapper"> <div id="header_area"> <div id="header"> <div id="site_title"> <a href="<?php echo get_option('site_url'); ?> "><?php echo get_option('site_title'); ?> </a> </div> <div id="site_tagline"> <?php echo get_option('site_tagline'); ?> </div> </div> <div id="nav"> <div id="inner_nav"> <?php make_nav(); ?> </div> </div> </div>
$found = $results->found; if (!$found) { print ("Search Time: {$results->searchtime}<br>Search results:\n"); print ("<small>{$results->wordinfo}</small><HR><CENTER>Sorry, but search returned no results.<P>\n"); print ("<I>Try to produce less restrictive search query.</I></CENTER>\n"); print_bottom(); return; } $from=IntVal($np)*IntVal($ps); $to=IntVal($np+1)*IntVal($ps); if($to>$found) $to=$found; if (($from+$ps)<$found) $isnext=1; $nav=make_nav($query_orig); print("Search Time: {$results->searchtime}<br>Search results: <small>{$results->wordinfo}</small><HR>\n"); print("Displaying documents {$results->first_doc}-{$results->last_doc} of total <B>{$results->found}</B> found.\n"); $rows = $results->get_results(); foreach ($rows as $item) { print ("<DL><DT><b>$item[ndoc].</b><a href=\"$item[url]\" TARGET=\"_blank\"><b>$item[title]</b></a>\n"); print ("[<b>$item[rating]</b>]<DD>\n"); print ("<table width=\"60%\"><tbody><tr><td>\n"); print ("<small>\n"); print (($item['desc'] != '')?$item['desc']:$item['text']."...<BR>$t_DY\n"); print ("</small>\n"); print ("<UL><LI><small>\n"); print ("<A HREF=\"$item[url]\" TARGET=\"_blank\">$item[url]</A>\n");
// logseite if ($richtung == 'zur') { if (isset($_SESSION['log_seite'][0]) && $_SESSION['log_seite'][0] != $unc_filesize) { unset($_SESSION['log_seite']); } $_SESSION['log_seite'][0] = $unc_filesize; } elseif (!isset($_SESSION['log_seite'])) { $_SESSION['log_seite'][0] = 0; } if (!isset($_SESSION['log_seite'][$seite])) { $start = finde_zeiger_pos($seite); $_SESSION['log_seite'][$seite] = $start; } // Nav if (!$search) { $nav = make_nav(); // Navigation erstellen echo $nav; // Nav. ausgeben } if ($text) { echo '<div style="font-family:monospace, Courier; font-size:8pt; letter-spacing:-0.05em; white-space:nowrap">'; } else { echo '<table style="border-collapse:collapse; width:100%">' . "\n" . '<thead><tr><th>' . L_NUMBER . '</th><th>' . L_TIME . '</th><th>' . L_DATE . '</th><th>' . L_IP . '</th><th>' . L_MODULES_FILE_S . '</th><th>' . '<a href="show_log.php?' . SIDX . '&detect_agent=' . ($_SESSION['log_detect_agent'] ? 0 : 1) . ($search ? '&aktion=search' : '') . '&seite=' . $seite . '&richtung=' . $richtung . '">' . ($_SESSION['log_detect_agent'] ? L_MODULES_BROWSER_S . '/' . L_MODULES_SYSTEM_S : L_USERAGENT) . '</a></th><th>' . L_MODULES_RESOLUTION_S . '</th><th>' . L_MODULES_COLORDEPTH_S . '</th><th>' . L_MODULES_REFERER_S . '</th></tr></thead><tbody>'; } fseek($logdatei, $_SESSION['log_seite'][$seite]); // setze dateizeiger auf startposition der seite $i = 0; while ($i < $config_stat_log_rows || $search) { $i++; if ($richtung == 'zur') {
echo '<a href="' . $url . '#' . $ankor . '">Click here, if you do not want to wait longer (or if your Browser does not support automatic forwarding)</a>'; echo "</td></tr></table>"; break; // doreply // doreply case 'viewtopic': if (!$_GET['id']) { echo "Mistake!"; exit; } $f = getforum_bytopic($_GET['id']); $start = !empty($_GET['start']) ? $_GET['start'] : 0; $shownum = $replies_perpage; $num = getcount("forum_topics", "WHERE replyto = '" . $_GET['id'] . "' OR topic_id = '" . $_GET['id'] . "'"); $link = "forum.php?action=viewtopic&id=" . $_GET['id']; $nav = make_nav($link, $num, $shownum, $start, true); $p1 = mysql_query("SELECT gameid FROM forum_topics WHERE topic_id = '" . $_GET['id'] . "'"); $pg = mysql_fetch_array($p1); ?> <table> <tr> <th width="100%"> <a href="forum.php">Forum</a> > <a href="forum.php?action=viewforum&id=<?php echo $f['forum_id']; ?> "><?php echo $f['forum_title']; ?> </a> </th>