# PHP News Reader # Copyright (C) 2001-2003 Shen Chang-Da # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. include('utils.inc.php'); $title .= " - $$strForwardDetail"; # ------------------------------------------------------------------- $artnum = $_GET['artnum']; if( $_POST['content'] != '' ) { $server = $_POST['server']; $group = $_POST['group']; if( $post_restriction ) readonly_error( $server, $group ); if( verifying( $server, $group ) == -1 ) session_error( $server, $group ); $receiver = $_POST['receiver']; $refid = $_POST['refid']; if( $auto_slash ) { $content = stripslashes($_POST['content']); $subject = stripslashes($_POST['subject']); } else { $content = $_POST['content']; $subject = $_POST['subject']; } html_head( "$group - $subject" ); $time = strftime($CFG['time_format']); echo "
| $strArticleIsForwarded | \n"; echo "
| $strReceiver: | $receiver |
| $strTime: | $time |
| $strSubject: | " . htmlspecialchars( $subject ) . " |
' . htmlspecialchars($content, ENT_NOQUOTES ) . "\n"; echo "
$strConnectServerError - " . $server . "
\n";
html_foot();
html_tail();
exit;
}
list( $code, $count, $lowmark, $highmark ) = nnrp_group( $nhd, $group );
$artinfo = nnrp_head( $nhd, $artnum, $news_charset[$curr_catalog] );
if( !$artinfo )
kill_myself();
$artconv = get_conversion( $artinfo['charset'], $curr_charset );
if( $artconv['to'] ) {
$from = $artconv['to']( $artinfo['name'] );
$email = $artconv['to']( $artinfo['mail'] );
$subject = $artconv['to']( $artinfo['subject'] );
$org = $artconv['to']( $artinfo['org'] );
}
else {
$from = $artinfo['name'];
$email = $artinfo['mail'];
$subject = $artinfo['subject'];
$org = $artinfo['org'];
}
$date = $artinfo['date'];
$msgid = $artinfo['msgid'];
$subject = 'FW: ' . preg_replace( '/^Re: /i', '', $subject ) ;
html_head( "$group - $subject" );
?>
echo "