From aeb1a6a87053c6da662125ac8c7e7d7a62c09525 Mon Sep 17 00:00:00 2001
From: Retro_Guy
";
- if ($article_show["From"]) {
- echo $text_header["from"];
- if ($head->from == $anonym_address) {
- // this is the anonymous address, so only show the name
- echo htmlspecialchars($head->name);
+ if ($article_show["From"]) {
+ echo $text_header["from"];
+ if ($head->from == $anonym_address) {
+ // this is the anonymous address, so only show the name
+ echo htmlspecialchars($head->name);
+ } else {
+ if ($article_show["From_link"])
+ echo '';
+ if (isset($article_show["From_rewrite"]))
+ echo preg_replace('/{$article_show["From_rewrite"][0]}/', $article_show["From_rewrite"][1], htmlspecialchars($head->from));
+ $before_at = explode('@', $head->from);
+ $namelen = strlen($before_at[0]);
+ if ($namelen > 3) {
+ $endname = $namelen - 3;
+ if ($endname > 8)
+ $endname = 8;
+ if ($endname < 3)
+ $endname ++;
+ if ($endname < 3)
+ $endname ++;
} else {
- if ($article_show["From_link"])
- echo '';
- if (isset($article_show["From_rewrite"]))
- echo preg_replace('/{$article_show["From_rewrite"][0]}/', $article_show["From_rewrite"][1], htmlspecialchars($head->from));
- $before_at = explode('@', $head->from);
- $namelen = strlen($before_at[0]);
- if ($namelen > 3) {
- $endname = $namelen - 3;
- if ($endname > 8)
- $endname = 8;
- if ($endname < 3)
- $endname ++;
- if ($endname < 3)
- $endname ++;
- } else {
- $endname = $namelen;
- }
- if ($article_show["From_link"])
- echo '';
- echo '';
- if ($local_poster) {
- echo '';
- }
- if ($head->name != "") {
- echo create_name_link($head->name, $head->from);
- } else {
- if (isset($CONFIG['hide_email']) && $CONFIG['hide_email'] == true) {
- echo truncate_email($head->from);
- } else {
- echo htmlspecialchars($head->from);
- }
- }
- if ($local_poster) {
- echo '';
- }
- echo '';
+ $endname = $namelen;
}
- echo "
";
+ if ($article_show["From_link"])
+ echo '';
+ echo '';
+ if ($local_poster) {
+ echo '';
+ }
+ if ($head->name != "") {
+ echo create_name_link($head->name, $head->from);
+ } else {
+ if (isset($CONFIG['hide_email']) && $CONFIG['hide_email'] == true) {
+ echo truncate_email($head->from);
+ } else {
+ echo htmlspecialchars($head->from);
+ }
+ }
+ if ($local_poster) {
+ echo '';
+ }
+ echo '';
}
- if ($article_show["Newsgroups"])
- echo $text_header["newsgroups"] . htmlspecialchars(str_replace(',', ', ', $head->newsgroups)) . "
\n";
- if (isset($head->followup) && ($article_show["Followup"]) && ($head->followup != ""))
- echo $text_header["followup"] . htmlspecialchars($head->followup) . "
\n";
- if ((isset($head->organization)) && ($article_show["Organization"]) && ($head->organization != ""))
- echo $text_header["organization"] . html_parse(htmlspecialchars($head->organization)) . "
\n";
- if ($article_show["Date"]) {
- $ts = new DateTime(date($text_header["date_format"], $head->date), new DateTimeZone('UTC'));
- $ts->add(DateInterval::createFromDateString($offset . ' minutes'));
- if ($offset != 0) {
- echo $text_header["date"] . $ts->format('D, j M Y H:i') . "
\n";
- } else {
- echo $text_header["date"] . $ts->format($text_header["date_format"]) . "
\n";
- }
- unset($ts);
- }
-
- // echo $text_header["date"].date($text_header["date_format"],$head->date)."
\n";
- if ($article_show["Message-ID"]) {
- echo ' ' . $text_header["message-id"] . htmlspecialchars($head->id) . "
\n";
- }
- if (($article_show["References"]) && (isset($head->references[0]))) {
- echo $text_header["references"];
- for ($i = 0; $i <= count($head->references) - 1; $i ++) {
- $ref = $head->references[$i];
- echo ' ' . '' . ($i + 1) . '';
- }
- echo "
";
- }
- if (isset($head->user_agent)) {
- if ((isset($article_show["User-Agent"])) && ($article_show["User-Agent"])) {
- echo $text_header["user-agent"] . htmlspecialchars($head->user_agent) . "
\n";
- } else {
- echo "\n";
- }
- }
- if ((isset($attachment_show)) && ($attachment_show == true) && (isset($head->content_type[1]))) {
- echo $text_header["attachments"];
- for ($i = 1; $i < count($head->content_type); $i ++) {
- if (! strcmp($head->content_type[$i], "text/html")) {
- $contype = "HTML Version";
- } else {
- $contype = $head->content_type_name[$i];
- }
- echo '' . $contype . ' (' . $head->content_type[$i] . ')';
- if ($i < count($head->content_type) - 1)
- echo ', ';
- }
- }
- if ($article_show["trigger_headers"]) {
- echo '
\n";
- echo '
";
+ }
+ if ($article_show["Newsgroups"])
+ echo $text_header["newsgroups"] . htmlspecialchars(str_replace(',', ', ', $head->newsgroups)) . "
\n";
+ if (isset($head->followup) && ($article_show["Followup"]) && ($head->followup != ""))
+ echo $text_header["followup"] . htmlspecialchars($head->followup) . "
\n";
+ if ((isset($head->organization)) && ($article_show["Organization"]) && ($head->organization != ""))
+ echo $text_header["organization"] . html_parse(htmlspecialchars($head->organization)) . "
\n";
+ if ($article_show["Date"]) {
+ $ts = new DateTime(date($text_header["date_format"], $head->date), new DateTimeZone('UTC'));
+ $ts->add(DateInterval::createFromDateString($offset . ' minutes'));
+ if ($offset != 0) {
+ echo $text_header["date"] . $ts->format('D, j M Y H:i') . "
\n";
+ } else {
+ echo $text_header["date"] . $ts->format($text_header["date_format"]) . "
\n";
+ }
+ unset($ts);
+ }
+
+ // echo $text_header["date"].date($text_header["date_format"],$head->date)."
\n";
+ if ($article_show["Message-ID"]) {
+ echo ' ' . $text_header["message-id"] . htmlspecialchars($head->id) . "
\n";
+ }
+ if (($article_show["References"]) && (isset($head->references[0]))) {
+ echo $text_header["references"];
+ for ($i = 0; $i <= count($head->references) - 1; $i ++) {
+ $ref = $head->references[$i];
+ echo ' ' . '' . ($i + 1) . '';
+ }
+ echo "
";
+ }
+ if (isset($head->user_agent)) {
+ if ((isset($article_show["User-Agent"])) && ($article_show["User-Agent"])) {
+ echo $text_header["user-agent"] . htmlspecialchars($head->user_agent) . "
\n";
+ } else {
+ echo "\n";
+ }
+ }
+ if ((isset($attachment_show)) && ($attachment_show == true) && (isset($head->content_type[1]))) {
+ echo $text_header["attachments"];
+ for ($i = 1; $i < count($head->content_type); $i ++) {
+ if (! strcmp($head->content_type[$i], "text/html")) {
+ $contype = "HTML Version";
+ } else {
+ $contype = $head->content_type_name[$i];
+ }
+ echo '' . $contype . ' (' . $head->content_type[$i] . ')';
+ if ($i < count($head->content_type) - 1)
+ echo ', ';
+ }
+ }
+ if ($article_show["trigger_headers"]) {
+ echo '
\n";
+ echo '
\n";
}
unset($ts);
+ if ($article_show["trigger_headers"]) {
+ echo '
", "
\n",
'$1
$2'
- ),
- trim($string)) . '