\n"; html_head( $title ); if( $CFG['html_header'] ) { if( preg_match( '/\.php$/', $CFG['html_header'] ) ) include( $CFG['html_header'] ); else readfile( $CFG['html_header'] ); } elseif( $CFG['banner'] ) echo "" . $CFG['banner'] . "
\n"; #else # echo "$title
"; $nnrp->open( $news_server[$curr_category], $news_nntps[$curr_category] ); echo "
\n"; $maxr = 100; echo "\n
\n"; echo "\n"; for( $i = 0 ; $i < $maxr ; $i++ ) { if( $i >= $category_num ) break; if( $news_hidden[$i] ) continue; echo "\n"; if( $CFG['url_rewrite'] ) $link = $i+1; else $link = "$self?category=" . ($i+1); if( $i >= $category_num ) echo ""; elseif( $i == $curr_category ) echo " \n"; elseif( $news_authperm[$i] ) echo " \n"; else echo " \n"; echo "\n"; } if( is_array($CFG['links']) ) foreach( $CFG['links'] as $text => $link ) { if( $config_convert['to'] ) { $text = $config_convert['to']($text); $link = $config_convert['to']($link); } echo "'; } if( $CFG['url_rewrite'] ) { if( $CFG['auth_type'] != 'open' && $auth_success ) echo ""; if( $CFG['auth_type'] == 'optional' && !$auth_success ) echo ""; } else { if( $CFG['auth_type'] != 'open' && $auth_success ) echo ""; if( $CFG['auth_type'] == 'optional' && !$auth_success ) echo ""; } echo "
$pnews_msg[Logout]
$pnews_msg[Logout]
\n"; echo "
\n"; echo "
"; if( ! $nnrp->connected() ) { echo "

$pnews_msg[ConnectServerError] (" . $news_server[$curr_category] . ")
\n"; html_foot(); html_tail(); exit; } nnrp_authenticate(); $active = $nnrp->list_group( $news_groups[$curr_category], $article_convert['to'] ); if( $active == null ) { echo "

$pnews_msg[ConnectServerError] <" . $news_server[$curr_category] . ">\n"; html_foot(); html_tail(); exit; } /* if( $global_readonly ) { echo "* $pnews_msg[ReadonlyNotify]\n"; echo '

'; } */ echo "\n EOH; else echo << EOH; if( $CFG['group_sorting'] ) ksort( $active ); reset( $active ); $i = 0; $server = $news_server[$curr_category]; while ( list ($group, $value) = each ($active) ) { $i++; if( $CFG['magic_tag'] ) { $magic = $value[0]; if( $CFG['url_rewrite'] ) { if( $server == $group_default_server ) $glink = "$group"; else $glink = "$group"; } else $glink = "$group"; } else { if( $CFG['url_rewrite'] ) { if( $server == $group_default_server ) $glink = "$group"; else $glink = "$group"; } else $glink = "$group"; } if( !isset($value[2]) || $value[2] == '' ) $value[2] = ' '; elseif( strlen( $value[2] ) > 50 ) $value[2] = htmlspecialchars(substr( $value[2], 0, 50 )) . ' ..'; $num = $value[0] - $value[1] + 1; if( $num < 0 ) $num = 0; if ($num > 10) { if( $CFG['show_group_description'] ) echo << EOR; else echo << EOR; } } echo "
\n"; // $row = array( $pnews_msg['Number'], $pnews_msg['PostNumber'], $pnews_msg['Group'], $pnews_msg['GroupDescription'] ); if( $CFG['show_group_description'] ) echo <<
$pnews_msg[Number] $pnews_msg[PostNumber] $pnews_msg[Group] $pnews_msg[GroupDescription]
$pnews_msg[Number] $pnews_msg[PostNumber] $pnews_msg[Group]
$i $num $glink $value[2]
$i $num $glink
\n"; echo "\n"; echo "\n"; #echo "\n"; html_foot(); $nnrp->close(); if( $CFG['html_footer'] ) { if( preg_match( '/\.php$/', $CFG['html_footer'] ) ) include( $CFG['html_footer'] ); else readfile( $CFG['html_footer'] ); } html_tail(); ?>