# 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'); # ------------------------------------------------------------------- $artnum = $_GET['artnum']; $confirm = $_POST['confirm']; if( $confirm == 1 ) { $server = $_POST['server']; $group = $_POST['group']; if( $post_restriction ) readonly_error( $server, $group ); $msgid = $_POST['msgid']; if( $auto_slash ) $content = stripslashes($_POST['content']); else $subject = $_POST['subject']; $artconv = get_conversion( $_POST['charset'], $curr_charset ); $nhd = nnrp_open( $server ); if( ! ( $nhd && nnrp_authenticate( $nhd ) ) ) { html_head('ERROR'); echo "
$strConnectServerError - " . $server . " $strConnectServerError - " . $server . "
\n";
html_foot();
html_tail();
exit;
}
if( $artconv['back'] )
nnrp_cancel( $nhd, $artconv['back']($auth_user), $auth_email, $msgid, $group, $artconv['back']($subject) );
else
nnrp_cancel( $nhd, $auth_user, $auth_email, $msgid, $group, $subject );
nnrp_close($nhd);
html_head( $strDeleteDetail );
$subject = htmlspecialchars( $subject );
echo <<$strArticleIsDeleted
$strAuthor: $auth_user ($auth_email) $strSubject: $subject $strGroup: $group
EOT;
html_delay_close( 2000 );
html_tail();
}
elseif( $artnum != '' ) {
$server = $_GET['server'];
$group = $_GET['group'];
if( $post_restriction )
readonly_error( $server, $group );
$nhd = nnrp_open( $server );
if( ! ( $nhd && nnrp_authenticate( $nhd ) ) ) {
html_head('ERROR');
echo "
\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'];
html_head( "$strDeleteDetail - $subject" );
echo $strRealyDelete ;
echo "
";
echo "\n";
html_tail();
}
?>