cvs: pear /Net_NNTP/examples/news.php.net read.php
| From: | Heino H. Gehlsen | Date: | Fri, 26 Sep 2003 10:33:02 +0000 |
| Subject: | cvs: pear /Net_NNTP/examples/news.php.net read.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13101@lists.php.net to get a copy of this message | ||
heino Fri Sep 26 06:33:02 2003 EDT
Modified files:
/pear/Net_NNTP/examples/news.php.net read.php
Log:
stop using deprecated methods.
Index: pear/Net_NNTP/examples/news.php.net/read.php
diff -u pear/Net_NNTP/examples/news.php.net/read.php:1.5
pear/Net_NNTP/examples/news.php.net/read.php:1.6
--- pear/Net_NNTP/examples/news.php.net/read.php:1.5 Fri Aug 29 04:19:11 2003
+++ pear/Net_NNTP/examples/news.php.net/read.php Fri Sep 26 06:33:02 2003
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: read.php,v 1.5 2003/08/29 08:19:11 heino Exp $
+// $Id: read.php,v 1.6 2003/09/26 10:33:02 heino Exp $
?>
<html>
<head>
@@ -40,15 +40,15 @@
if(PEAR::isError($msgdata)) {
echo '<font
color="red">'.$msgdata->getMessage().'</font><br>' ;
} else {
- $msgheader = $nntp->splitHeaders($_GET['msgid']);
+ $msgheader = $nntp->getHeader($_GET['msgid']);
echo '<h2>Headers:</h2>';
- foreach( $msgheader as $headername => $headercontent) {
+ foreach( $msgheader->getFields() as $headername => $headercontent) {
echo
'<b>'.$headername.'</b>: '.$headercontent."<br>";
}
echo "<hr>";
echo '<h2>Body</h2>';
echo '<form><textarea wrap="off" cols="79",
rows="25">'.
- $nntp->getBody($_GET['msgid']).
+ $nntp->getBodyRaw($_GET['msgid']).
'</textarea></form>';
}
} else {