{% else-1 %}

                        
function VrTime ($time = null )
{
if ( $time == null )
$time = time ();
$timep = "" . date ( "j M Y в H:i" , $time ) . "" ;
$time_p [ 0 ] = date ( "j n Y" , $time );
$time_p [ 1 ] = date ( "H:i" , $time );
if ( $time_p [ 0 ] == date ("j n Y" ))
$timep = date ( "H:i:s" , $time );
if (isset( $user ))
{
if ( $time_p [ 0 ] == date ( "j n Y" , time ()))
$timep = date ( "H:i:s" , $time );
if ( $time_p [ 0 ] == date ( "j n Y" , time () - 60 * 60 * 24))
$timep = "Вчера в $time_p [ 1 ] ";
} else
{
if ( $time_p [ 0 ] == date ( "j n Y" ))
$timep = date ( "H:i:s" , $time );
if ( $time_p [ 0 ] == date ( "j n Y" , time () - 60 * 60 * 24))
$timep = "Вчера в $time_p [ 1 ] ";
}
0 46 0
Без комментариев...