326 |
$result["mailbox"]=trim($mailbox); |
$result["mailbox"]=trim($mailbox); |
327 |
$result["host"]=trim($host); |
$result["host"]=trim($host); |
328 |
// $personal = mb_convert_encoding($personal, "EUC-JP", "auto"); |
// $personal = mb_convert_encoding($personal, "EUC-JP", "auto"); |
329 |
|
$personal = ereg_replace("\\(.)", "----", $personal); |
330 |
if ($personal!="") $result["personal"]=$personal; |
if ($personal!="") $result["personal"]=$personal; |
331 |
$complete[]=$result; |
$complete[]=$result; |
332 |
return ($complete); |
return ($complete); |
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 |
} |
} |
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>"; |
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." ".formatSubject($c,$group)." "; |
echo '<td>'.$thread_fontPre." ".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>"; |
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." ".formatSubject($c,$group).$thread_fontPost."</td>"; |
echo '<td>'.$thread_fontPre." ".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 |
} |
} |
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"); |