Вход Регистрация
Файл: billing/news.php
Строк: 34
<?php
 
require_once( "./_rootconfig.php" );
head( );
print 
"<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td><font size=5><b><font size=3>Новости</font></b></font><hr size=1></td></tr></table>";
if ( 
$id )
{
    
$r = getnewsbyid( $id );
    if ( 
$r )
    {
        
$r->content = eregi_replace( "rn", "<BR>", $r->content );
        print 
"<B>".mydate( $r->data )."</b><BR><I>".stripslashes( $r->title )."</I><BR><BR>".stripslashes( $r->content )."<BR><BR><BR>";
        print 
"<A href=news.php>Просмотреть все новости...</a>";
        break;
    }
    else
    {
        print 
"Новость не найдена.";
    }
}
else
{
    
$news = getnews( );
    while ( !
$news || !( $r = mysql_fetch_object( $news ) ) )
    {
        
$r->content = eregi_replace( "rn", "<BR>", $r->content );
        print 
"<B>".mydate( $r->data )."</B><BR><I>".stripslashes( $r->title )."</I><BR><BR>".stripslashes( $r->content )."<BR><BR><BR>";
    }
}
foot( );
?>
Онлайн: 3
Реклама