/[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.30 by wakaba, Sun Dec 2 02:07:51 2001 UTC revision 1.31 by wakaba, Sun Dec 2 02:37:48 2001 UTC
# Line 56  class headerType { Line 56  class headerType {
56    var $answers;    var $answers;
57    var $isAnswer;    var $isAnswer;
58    var $username;    var $username;
59    var $user_agent;  //  var $user_agent;
60    var $field;    var $field;
61    var $isReply;    var $isReply;
62  }  }
# Line 549  function parse_header($hdr,$number="") { Line 549  function parse_header($hdr,$number="") {
549          case "followup-to":          case "followup-to":
550            $header->followup=trim($value);            $header->followup=trim($value);
551            break;            break;
552    /*
553          case "x-newsreader":          case "x-newsreader":
554          case "x-mailer":          case "x-mailer":
555          case "user-agent":          case "user-agent":
556            $header->user_agent= decode_structured_body($value);            $header->user_agent= decode_structured_body($value);
557            break;            break;
558    */
559        }        }
560    }    }
561    if (!isset($header->content_type[0]))    if (!isset($header->content_type[0]))
# Line 1525  function show_header($head,$group) { Line 1527  function show_header($head,$group) {
1527      }      }
1528      echo "<br>";      echo "<br>";
1529    }    }
1530    /*
1531    if (isset($head->user_agent)) {    if (isset($head->user_agent)) {
1532      if ((isset($article_show["User-Agent"])) &&      if ((isset($article_show["User-Agent"])) &&
1533         ($article_show["User-Agent"])) {         ($article_show["User-Agent"])) {
# Line 1533  function show_header($head,$group) { Line 1536  function show_header($head,$group) {
1536        echo "<!-- User-Agent: ".htmlspecialchars($head->user_agent)." -->\n";        echo "<!-- User-Agent: ".htmlspecialchars($head->user_agent)." -->\n";
1537      }      }
1538    }    }
1539    if (isset($head->field["x-moe"])) {  */
1540      if ((isset($article_show["X-Moe"])) && ($article_show["X-Moe"])) {    $fields = array ("x-moe", "x-brother", "x-syster", "x-wife",
1541        echo "<span class=\"field x-moe\"><span class=\"name\">".$text_header["X-Moe"]                     "x-daughter", "x-respect",
1542            ."</span> <span class=\"body\">"                     "user-agent", "x-mailer", "x-newsreader",
1543            .htmlspecialchars(decode_structured_body(                     "list-id", "x-uri", "x-mail-count", "keywords");
1544                                join(', ', $head->field["x-moe"])))    for ($i = 0; $i < count($fields); $i++) {
1545            ."</span>\n";      if (count($head->field[$fields[$i]])) {
1546          if ((isset($article_show[$fields[$i]])) && ($article_show[$fields[$i]])) {
1547            echo "<div class=\"field ".$fields[$i]."\"><span class=\"name\">"
1548                .$text_header[$fields[$i]]."</span> <span class=\"body\">"
1549                .htmlspecialchars(decode_structured_body(
1550                                    join(', ', $head->field[$fields[$i]])))
1551                ."</span></div>\n";
1552          }
1553        }
1554      }
1555      $fields = array ("x-weather", "x-copyright", "comments");
1556      for ($i = 0; $i < count($fields); $i++) {
1557        if (count($head->field[$fields[$i]])) {
1558          if ((isset($article_show[$fields[$i]])) && ($article_show[$fields[$i]])) {
1559            for ($j = 0; $j > count($head->field[$fields[$i]]); $j++) {
1560              echo "<div class=\"field ".$fields[$i]."\"><span class=\"name\">"
1561                  .$text_header[$fields[$i]]."</span> <span class=\"body\">"
1562                  .htmlspecialchars(decode_unstructured_body(
1563                                               $head->field[$fields[$i]][$j]))
1564                  ."</span></div>\n";
1565            }
1566          }
1567      }      }
1568    }    }
1569    if ((isset($attachment_show)) && ($attachment_show==true) &&    if ((isset($attachment_show)) && ($attachment_show==true) &&

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24