";
if (!$param[tema]) $v.="
".$row[tema]."
";
if (!$param[datum]) $v.="
".$row[datum]."
";
$v.="
";
$text=$row[popis];
if ($strip_tags) $text=strip_tags($text);
$delka=$param[zkratit];
if ($delka>0) {$text=substr($text,0,$delka)."...
>>>
";$w=" akt2";}
if (!$param[content]) $v.="
".$text."
";
$v.="
";
}
return $v;
}
function get_time_difference( $start, $end )
{
$uts['start'] = strtotime( $start );
$uts['end'] = strtotime( $end );
if( $uts['start']!==-1 && $uts['end']!==-1 )
{
if( $uts['end'] >= $uts['start'] )
{
$diff = $uts['end'] - $uts['start'];
if( $days=intval((floor($diff/86400))) )
$diff = $diff % 86400;
if( $hours=intval((floor($diff/3600))) )
$diff = $diff % 3600;
if( $minutes=intval((floor($diff/60))) )
$diff = $diff % 60;
$diff = intval( $diff );
return( array('days'=>$days, 'hours'=>$hours, 'minutes'=>$minutes, 'seconds'=>$diff) );
}
else
{
//trigger_error( "Ending date/time is earlier than the start date/time", E_USER_WARNING );
}
}
else
{
//trigger_error( "Invalid date/time data detected", E_USER_WARNING );
}
return( false );
}
?>