$strConnectServerError - " . $server . "
\n"; html_foot(); html_tail(); exit; } list( $code, $count, $lowmark, $highmark ) = nnrp_group( $nhd, $group ); if( isset( $_GET['next'] ) || isset( $_GET['last'] ) ) { if( isset( $_GET['next'] ) ) $artnum = nnrp_next( $nhd, $artnum ); else $artnum = nnrp_last( $nhd, $artnum ); if( $artnum < 0 ) { if( $CFG['show_article_popup'] ) kill_myself(); else header( "Location: $idxurl" ); } elseif( $CFG['url_rewrite'] ) header( "Location: $urlbase/article/$reserver/$group/$artnum/" ); else header( "Location: read-art.php?server=$server&group=$group&artnum=$artnum" ); exit; } #list( $from, $email, $subject, $date, $msgid, $org ) $artinfo = nnrp_head( $nhd, $artnum, $news_charset[$curr_catalog] ); if( !$artinfo ) { if( $CFG['show_article_popup'] ) kill_myself(); else header( "Location: $idxurl" ); exit; } $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']; if( $CFG['show_article_popup'] ) html_head( "$subject ($group)", null, 'topmargin=0 leftmargin=0' ); else html_head( "$subject ($group)" ); #if( strlen( $subject ) > $subject_limit + 6 ) # $subject = substr( $subject, 0, $subject_limit + 6 ) . ' ..'; #else # $subject = $subject; $subject = htmlspecialchars( $subject ); #$date = str_replace( ' ', '
', $date ); if( strlen( $org ) > $org_limit ) $org = substr( $org, 0, $org_limit ) . ' ..'; echo "
\n"; #if( !$CFG['show_article_popup'] ) { echo ""; if( $CFG['show_article_popup'] ) { echo ""; echo "\n"; echo "\n"; echo "
\n"; echo "$group"; } else { echo "
\n"; if( $CFG['url_rewrite'] ) echo "$group"; else echo "$group"; } echo ""; echo "$strLastArticle"; echo ""; echo "$strNextArticle"; echo "
\n"; #} echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; #toolbar( $server, $group, $artnum, $subject ); echo ""; echo "
$subject$date
$from ($email)$org
"; echo "
"; if( $artconv['to'] ) nnrp_body( $nhd, $artnum, "", "
\n", true, false, $artconv['to'] ); else nnrp_body( $nhd, $artnum, "", "
\n" ); nnrp_close($nhd); echo "
\n"; echo "
"; toolbar( $server, $group, $artnum, $subject ); echo "
"; html_foot(false); html_tail(); function toolbar( $server, $group, $artnum, $title ) { global $post_restriction, $email, $auth_email; global $strCloseWindow, $strReplyDetail, $strReplyQuoteDetail; global $strCrossPostDetail, $strForwardDetail, $strDeleteDetail; global $strMyFavor, $strReturnToIndexing, $strNextArticle, $strLastArticle; global $CFG, $nexturl, $lasturl, $idxurl; echo "\n"; if( !$post_restriction ) { echo ""; if( ! $CFG['show_article_popup'] ) { echo "\n"; echo "\n"; echo "\n"; } echo "\n"; # echo "\n"; echo "\n"; echo "\n"; echo "\n"; } $host = $_SERVER['HTTP_HOST']; echo "\n"; if( $CFG['show_article_popup'] ) { echo ""; } echo "
"; echo "$strNextArticle"; echo ""; echo "$strLastArticle"; echo ""; echo "$strReturnToIndexing"; echo ""; echo reply_article( $server, $group, $artnum, $strReplyDetail, false, $CFG['show_article_popup'] ); echo ""; # echo reply_article( $server, $group, $artnum, $strReplyQuoteDetail, true, true ); # echo ""; echo xpost_article( $server, $group, $artnum, $strCrossPostDetail, $CFG['show_article_popup'] ); echo ""; echo forward_article( $server, $group, $artnum, $strForwardDetail, $CFG['show_article_popup'] ); echo ""; if( $email == $auth_email ) echo delete_article( $server, $group, $artnum, $strDeleteDetail, $CFG['show_article_popup'] ); else echo " "; echo ""; if( strstr( $_SERVER["HTTP_USER_AGENT"], 'MSIE' ) ) echo "$strMyFavor\n"; else echo " "; echo ""; echo "$strCloseWindow"; echo ""; # echo "Language: "; show_language_switch(); echo "
\n"; } ?>