/[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.2 by wakaba, Sat Dec 1 11:51:33 2001 UTC revision 1.3 by wakaba, Sat Dec 1 12:06:09 2001 UTC
# Line 1178  function formatTreeGraphic($newtree) { Line 1178  function formatTreeGraphic($newtree) {
1178          break;          break;
1179        }        }
1180      $return .= '" alt="'.$alt.'"';      $return .= '" alt="'.$alt.'"';
1181      if (strcmp($k,".") == 0) $return .=(' width="12" height="9"');      if (strcmp($k,".") == 0) $return .=(' style="width: 12px; height: 9px"');
1182      $return .= ' />';      $return .= '>';
1183    }    }
1184    return($return);    return($return);
1185  }  }
# Line 1257  function showThread(&$headers,&$liste,$d Line 1257  function showThread(&$headers,&$liste,$d
1257            echo "<br>\n";            echo "<br>\n";
1258            break;            break;
1259          case 1: // html-auflistung, kein baum          case 1: // html-auflistung, kein baum
1260            echo "<li><nobr>".$thread_fontPre;            echo "<li>".$thread_fontPre;
1261            if ($thread_showDate)            if ($thread_showDate)
1262              echo formatDate($c)." ";              echo formatDate($c)." ";
1263            if ($thread_showSubject)            if ($thread_showSubject)
1264              echo formatSubject($c,$group)." ";              echo formatSubject($c,$group)." ";
1265            if ($thread_showAuthor)            if ($thread_showAuthor)
1266              echo "<i>(".formatAuthor($c).")</i>";              echo "<em>(".formatAuthor($c).")</em>";
1267            echo $thread_fontPost."</nobr></li>";            echo $thread_fontPost."</li>";
1268            break;            break;
1269          case 2:   // table          case 2:   // table
1270            echo "<tr>";            echo "<tr>";
# Line 1276  function showThread(&$headers,&$liste,$d Line 1276  function showThread(&$headers,&$liste,$d
1276            }            }
1277            if ($thread_showAuthor) {            if ($thread_showAuthor) {
1278              echo "<td></td>";              echo "<td></td>";
1279              echo '<td nowrap="nowrap">'.$thread_fontPre.formatAuthor($c);              echo '<td>'.$thread_fontPre.formatAuthor($c);
1280              echo $thread_fontPost."</td>";              echo $thread_fontPost."</td>";
1281            }            }
1282            echo "</tr>\n";            echo "</tr>\n";
1283            break;            break;
1284          case 3: // html-tree          case 3: // html-tree
1285            echo "<li><nobr>".$thread_fontPre;            echo "<li>".$thread_fontPre;
1286            if ($thread_showDate)            if ($thread_showDate)
1287              echo formatDate($c)." ";              echo formatDate($c)." ";
1288            if ($thread_showSubject)            if ($thread_showSubject)
1289              echo formatSubject($c,$group)." ";              echo formatSubject($c,$group)." ";
1290            if ($thread_showAuthor)            if ($thread_showAuthor)
1291              echo "<i>(".formatAuthor($c).")</i>";              echo "<em>(".formatAuthor($c).")</em>";
1292            echo $thread_fontPost."</nobr>\n";            echo $thread_fontPost."\n";
1293            break;            break;
1294          case 4:  // thread          case 4:  // thread
1295            echo "<nobr><tt>".$thread_fontPre;            echo "".$thread_fontPre;
1296            if ($thread_showDate)            if ($thread_showDate)
1297              echo formatDate($c)." ";              echo formatDate($c)." ";
1298            echo formatTreeText($newtree)." ";            echo formatTreeText($newtree)." ";
1299            if ($thread_showSubject)            if ($thread_showSubject)
1300              echo formatSubject($c,$group)." ";              echo formatSubject($c,$group)." ";
1301            if ($thread_showAuthor)            if ($thread_showAuthor)
1302              echo "<i>(".formatAuthor($c).")</i>";              echo "<em>(".formatAuthor($c).")</em>";
1303            echo $thread_fontPost."</tt></nobr><br>";            echo $thread_fontPost."<br>";
1304            break;            break;
1305          case 5:  // thread, graphic          case 5:  // thread, graphic
1306            echo "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr>\n";            echo "<table><tr>\n";
1307            if ($thread_showDate)            if ($thread_showDate)
1308              echo '<td nowrap="nowrap">'.$thread_fontPre.formatDate($c)." ".$thread_fontPost."</td>";              echo '<td>'.$thread_fontPre.formatDate($c)." ".$thread_fontPost."</td>";
1309            echo "<td>".$thread_fontPre.formatTreeGraphic($newtree).$thread_fontPost."</td>";            echo "<td>".$thread_fontPre.formatTreeGraphic($newtree).$thread_fontPost."</td>";
1310            if ($thread_showSubject)            if ($thread_showSubject)
1311              echo '<td nowrap="nowrap">'.$thread_fontPre."&nbsp;".formatSubject($c,$group)." ";              echo '<td>'.$thread_fontPre."&nbsp;".formatSubject($c,$group)." ";
1312            if ($thread_showAuthor)            if ($thread_showAuthor)
1313              echo "(".formatAuthor($c).")".$thread_fontPost."</td>";              echo "(".formatAuthor($c).")".$thread_fontPost."</td>";
1314            echo "</tr></table>";            echo "</tr></table>";
# Line 1316  function showThread(&$headers,&$liste,$d Line 1316  function showThread(&$headers,&$liste,$d
1316          case 6:  // thread, table          case 6:  // thread, table
1317            echo "<tr>";            echo "<tr>";
1318            if ($thread_showDate)            if ($thread_showDate)
1319              echo '<td nowrap="nowrap"><tt>'.$thread_fontPre.formatDate($c)." ".$thread_fontPost."</tt></td>";              echo '<td>'.$thread_fontPre.formatDate($c)." ".$thread_fontPost."</td>";
1320            echo '<td nowrap="nowrap"><tt>'.$thread_fontPre.formatTreeText($newtree)." ";            echo '<td>'.$thread_fontPre.formatTreeText($newtree)." ";
1321            if ($thread_showSubject) {            if ($thread_showSubject) {
1322              echo formatSubject($c,$group).$thread_fontPost."</tt></td>";              echo formatSubject($c,$group).$thread_fontPost."</td>";
1323              echo "<td></td>";              echo "<td></td>";
1324            }            }
1325            if ($thread_showAuthor)            if ($thread_showAuthor)
1326              echo '<td nowrap="nowrap"><tt>'.$thread_fontPre.formatAuthor($c).$thread_fontPost."</tt></td>";              echo '<td>'.$thread_fontPre.formatAuthor($c).$thread_fontPost."</td>";
1327            echo "</tr>";            echo "</tr>";
1328            break;            break;
1329          case 7:  // thread, table, graphic          case 7:  // thread, table, graphic
1330            echo "<tr>";            echo "<tr>";
1331            if ($thread_showDate)            if ($thread_showDate)
1332              echo '<td nowrap="nowrap">'.$thread_fontPre.formatDate($c)." ".$thread_fontPost."</td>";              echo '<td>'.$thread_fontPre.formatDate($c)." ".$thread_fontPost."</td>";
1333            echo "<td><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n";            echo "<td><table>\n";
1334            echo "<td>".formatTreeGraphic($newtree)."</td>";            echo "<td>".formatTreeGraphic($newtree)."</td>";
1335            if ($thread_showSubject)            if ($thread_showSubject)
1336              echo '<td nowrap="nowrap">'.$thread_fontPre."&nbsp;".formatSubject($c,$group).$thread_fontPost."</td>";              echo '<td>'.$thread_fontPre."&nbsp;".formatSubject($c,$group).$thread_fontPost."</td>";
1337            echo "</table></td>";            echo "</table></td>";
1338            if ($thread_showSubject) echo "<td></td>";            if ($thread_showSubject) echo "<td></td>";
1339            if ($thread_showAuthor)            if ($thread_showAuthor)
1340              echo '<td nowrap="nowrap">'.$thread_fontPre.formatAuthor($c).$thread_fontPost."</td>";              echo '<td>'.$thread_fontPre.formatAuthor($c).$thread_fontPost."</td>";
1341            echo "</tr>";            echo "</tr>";
1342            break;            break;
1343        }        }
# Line 1676  function verschicken($subject,$from,$new Line 1676  function verschicken($subject,$from,$new
1676      fputs($ns,"post\r\n");      fputs($ns,"post\r\n");
1677      $weg=lieszeile($ns);      $weg=lieszeile($ns);
1678  //    fputs($ns,'Subject: '.quoted_printable_encode($subject)."\r\n");  //    fputs($ns,'Subject: '.quoted_printable_encode($subject)."\r\n");
1679  //    fputs($ns,'Subject: '.mb_convert_encoding($subject, "ISO-2022-JP", "EUC-JP")."\r\n");      fputs($ns,'Subject: '.mb_convert_encoding($subject, "ISO-2022-JP", "EUC-JP")."\r\n");
1680      fputs($ns,'Subject: '.mb_encode_mimeheader($subject)."\r\n");  //    fputs($ns,'Subject: '.mb_encode_mimeheader($subject)."\r\n");
1681      fputs($ns,'From: '.$from."\r\n");      fputs($ns,'From: '.$from."\r\n");
1682      fputs($ns,'Newsgroups: '.$newsgroups."\r\n");      fputs($ns,'Newsgroups: '.$newsgroups."\r\n");
1683  //    fputs($ns,"Mime-Version: 1.0\r\n");  //    fputs($ns,"Mime-Version: 1.0\r\n");
1684  //    fputs($ns,"Content-Type: text/plain; charset=ISO-8859-1\r\n");  //    fputs($ns,"Content-Type: text/plain; charset=ISO-8859-1\r\n");
1685  //    fputs($ns,"Content-Transfer-Encoding: 8bit\r\n");  //    fputs($ns,"Content-Transfer-Encoding: 8bit\r\n");
1686      fputs($ns,"User-Agent: NewsPortal 0.24pre3\r\n");      fputs($ns,"User-Agent: $text_ua["user_agent"]\r\n");
1687      if ($send_poster_host)      if ($send_poster_host)
1688        fputs($ns,'X-HTTP-Posting-Host: '.gethostbyaddr(getenv("REMOTE_ADDR"))."\r\n");        fputs($ns,'X-HTTP-Posting-Host: '.gethostbyaddr(getenv("REMOTE_ADDR"))."\r\n");
1689      if ($ref!=false) fputs($ns,'References: '.$ref."\r\n");      if ($ref!=false) fputs($ns,'References: '.$ref."\r\n");

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24