44 |
var $newsgroups; // the Newsgroups where the article belongs to |
var $newsgroups; // the Newsgroups where the article belongs to |
45 |
var $followup; |
var $followup; |
46 |
var $date; |
var $date; |
|
var $organization; |
|
47 |
var $references; |
var $references; |
48 |
var $content_transfer_encoding; |
var $content_transfer_encoding; |
49 |
var $mime_version; |
var $mime_version; |
55 |
var $answers; |
var $answers; |
56 |
var $isAnswer; |
var $isAnswer; |
57 |
var $username; |
var $username; |
|
// var $user_agent; |
|
58 |
var $field; |
var $field; |
59 |
var $isReply; |
var $isReply; |
60 |
} |
} |
502 |
case "newsgroups": |
case "newsgroups": |
503 |
$header->newsgroups=$value; |
$header->newsgroups=$value; |
504 |
break; |
break; |
|
case "organization": |
|
|
$header->organization = decode_unstructured_body($value); |
|
|
break; |
|
505 |
case "content-transfer-encoding": |
case "content-transfer-encoding": |
506 |
$header->content_transfer_encoding=trim(strtolower($value)); |
$header->content_transfer_encoding=trim(strtolower($value)); |
507 |
break; |
break; |
1504 |
echo $text_header["newsgroups"].htmlspecialchars(str_replace(',',', ',$head->newsgroups))."<br>\n"; |
echo $text_header["newsgroups"].htmlspecialchars(str_replace(',',', ',$head->newsgroups))."<br>\n"; |
1505 |
if (isset($head->followup) && ($article_show["Followup"]) && ($head->followup != "")) |
if (isset($head->followup) && ($article_show["Followup"]) && ($head->followup != "")) |
1506 |
echo $text_header["followup"].htmlspecialchars($head->followup)."<br>\n"; |
echo $text_header["followup"].htmlspecialchars($head->followup)."<br>\n"; |
|
if ((isset($head->organization)) && ($article_show["Organization"]) && |
|
|
($head->organization != "")) |
|
|
echo $text_header["organization"]. |
|
|
html_parse(htmlspecialchars($head->organization))."<br>\n"; |
|
1507 |
if ($article_show["Date"]) |
if ($article_show["Date"]) |
1508 |
echo $text_header["date"].date($text_header["date_format"],$head->date)."<br>\n"; |
echo $text_header["date"].date($text_header["date_format"],$head->date)."<br>\n"; |
1509 |
if ($article_show["Message-ID"]) |
if ($article_show["Message-ID"]) |
1518 |
} |
} |
1519 |
echo "<br>"; |
echo "<br>"; |
1520 |
} |
} |
|
/* |
|
|
if (isset($head->user_agent)) { |
|
|
if ((isset($article_show["User-Agent"])) && |
|
|
($article_show["User-Agent"])) { |
|
|
echo $text_header["user-agent"].htmlspecialchars($head->user_agent)."<br>\n"; |
|
|
} else { |
|
|
echo "<!-- User-Agent: ".htmlspecialchars($head->user_agent)." -->\n"; |
|
|
} |
|
|
} |
|
|
*/ |
|
1521 |
$fields = array ("x-moe", "x-brother", "x-syster", "x-wife", |
$fields = array ("x-moe", "x-brother", "x-syster", "x-wife", |
1522 |
"x-daughter", "x-respect", |
"x-daughter", "x-respect", |
1523 |
"user-agent", "x-mailer", "x-newsreader", |
"user-agent", "x-mailer", "x-newsreader", |
1533 |
} |
} |
1534 |
} |
} |
1535 |
} |
} |
1536 |
$fields = array ("x-weather", "x-copyright", "comments"); |
$fields = array ("x-weather", "x-copyright", "comments", "organization"); |
1537 |
for ($i = 0; $i < count($fields); $i++) { |
for ($i = 0; $i < count($fields); $i++) { |
1538 |
if (count($head->field[$fields[$i]])) { |
if (count($head->field[$fields[$i]])) { |
1539 |
if ((isset($article_show[$fields[$i]])) && ($article_show[$fields[$i]])) { |
if ((isset($article_show[$fields[$i]])) && ($article_show[$fields[$i]])) { |
1716 |
* $body: The article itself |
* $body: The article itself |
1717 |
*/ |
*/ |
1718 |
function verschicken($subject,$from,$newsgroups,$ref,$body) { |
function verschicken($subject,$from,$newsgroups,$ref,$body) { |
1719 |
global $server,$port,$send_poster_host,$organization,$text_error; |
global $server,$port,$send_poster_host,$organization,$text_error,$text_ua; |
1720 |
global $file_footer; |
global $file_footer; |
1721 |
flush(); |
flush(); |
1722 |
$ns=OpenNNTPconnection($server,$port); |
$ns=OpenNNTPconnection($server,$port); |