Source for file read.php
Documentation is available at read.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Alexander Merz <alexmerz@php.net> |
// | Heino H. Gehlsen <heino@gehlsen.dk> |
// +----------------------------------------------------------------------+
// $Id: read.php,v 1.2.4.1 2005/01/14 17:10:17 heino Exp $
<title>NNTP news.php.net</title>
require_once "Net/NNTP/Client.php";
$ret = $nntp->connect ("news.php.net");
if( PEAR ::isError ($ret)) {
echo '<font color="red">No connection to newsserver!</font><br>' ;
if(isset ($_GET['msgid']) and isset ($_GET['group'])){
$msgdata = $nntp->selectGroup ($_GET['group']);
if(PEAR ::isError ($msgdata)) {
echo '<font color="red">'. $msgdata->getMessage (). '</font><br>' ;
$header = $nntp->getHeaderRaw ($_GET['msgid']);
foreach( $header as $line) {
echo '<form><textarea wrap="off" cols="79", rows="25">'.
$nntp->getBodyRaw ($_GET['msgid'], true ).
echo '<font color="red">No message choosed!</font><br>' ;
Documentation generated on Mon, 11 Mar 2019 14:20:53 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|