function interpretOverviewLine($zeile, $overviewformat, $groupname) { $return = ""; $overviewfmt = explode("\t", $overviewformat); echo " "; // keep the connection to the webbrowser alive flush(); // while generating the message-tree $over = split("\t", $zeile, count($overviewfmt) - 1); $article = new headerType(); for ($i = 0; $i < count($overviewfmt) - 1; $i++) { if ($overviewfmt[$i] == "Subject:") { $subject = headerDecode($over[$i + 1]); $article->isReply = splitSubject($subject); $article->subject = $subject; } if ($overviewfmt[$i] == "Date:") { $article->date = getTimestamp($over[$i + 1]); } if ($overviewfmt[$i] == "From:") { $fromline = address_decode(headerDecode($over[$i + 1]), "nirgendwo"); $article->from = $fromline[0]["mailbox"] . "@" . $fromline[0]["host"]; $article->username = $fromline[0]["mailbox"]; if (!isset($fromline[0]["personal"])) { $article->name = $fromline[0]["mailbox"]; if (strpos($article->name, '%')) { $article->name = substr($article->name, 0, strpos($article->name, '%')); } $article->name = strtr($article->name, '_', ' '); } else { $article->name = $fromline[0]["personal"]; } } if ($overviewfmt[$i] == "Message-ID:") { $article->id = $over[$i + 1]; } if ($overviewfmt[$i] == "References:" && $over[$i + 1] != "") { $article->references = explode(" ", $over[$i + 1]); } } $article->number = $over[0]; $article->isAnswer = false; return $article; }
$header[$k] = $v; } if (!isset($header['show'])) { $header['show'] = 'index'; } return $header; } if ($request == '' || substr($request, 0, 9) == 'index.php' || substr($request, 0, 1) == '?') { $header['show'] = 'index'; return $header; } $vars = explode("/", $request); if ($vars[0] == 'category') { $header['show'] = 'category'; return $header; } $header['show'] = 'page'; return $header; } $header = headerDecode(); switch ($header['show']) { case 'category': require 'catego.php'; break; case 'page': require 'page.php'; break; case 'index': require 'home.php'; break; }