/[suikacvs]/messaging/newsportal/newsportal.php
Suika

Diff of /messaging/newsportal/newsportal.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by wakaba, Sun Dec 2 02:37:48 2001 UTC revision 1.32 by wakaba, Sun Dec 2 02:55:25 2001 UTC
# Line 44  class headerType { Line 44  class headerType {
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;
# Line 56  class headerType { Line 55  class headerType {
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  }  }
# Line 504  function parse_header($hdr,$number="") { Line 502  function parse_header($hdr,$number="") {
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;
# Line 1509  function show_header($head,$group) { Line 1504  function show_header($head,$group) {
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"])
# Line 1527  function show_header($head,$group) { Line 1518  function show_header($head,$group) {
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",
# Line 1552  function show_header($head,$group) { Line 1533  function show_header($head,$group) {
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]])) {
# Line 1735  function quoted_printable_encode($line) Line 1716  function quoted_printable_encode($line)
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);

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24