'$eid'$mid_sql order by Id asc limit 0,1" );
if ( !$result )
die( mysql_error() );
$next_event = mysql_fetch_assoc( $result );
if ( !isset( $rate ) )
$rate = RATE_SCALE;
if ( !isset( $scale ) )
$scale = SCALE_SCALE;
$frames_per_page = EVENT_FRAMES_PER_LINE * EVENT_FRAME_LINES;
$paged = $event['Frames'] > $frames_per_page;
?>
|
|
|
= $zmSlangReplay ?> |
= $zmSlangAll ?> |
= $zmSlangPaged ?> |
|
= $zmSlangDelete ?> |
= $zmSlangUnarchive ?> |
= $zmSlangArchive ?> |
= $zmSlangStills ?> |
= $zmSlangStream ?> |
|
= $zmSlangVideo ?> |
|
= $zmSlangClose ?> |
$pages )
$page = $pages;
if ( $page > 1 )
{
$new_pages = array();
$pages_used = array();
$lo_exp = max(2,log($page-1)/log($max_shortcuts));
for ( $i = 0; $i < $max_shortcuts; $i++ )
{
$new_page = round($page-pow($lo_exp,$i));
if ( isset($pages_used[$new_page]) )
continue;
if ( $new_page <= 1 )
break;
$pages_used[$new_page] = true;
array_unshift( $new_pages, $new_page );
}
if ( !isset($pages_used[1]) )
array_unshift( $new_pages, 1 );
foreach ( $new_pages as $new_page )
{
?>
= $new_page ?>
- = $page ?> -
$pages )
break;
$pages_used[$new_page] = true;
array_push( $new_pages, $new_page );
}
if ( !isset($pages_used[$pages]) )
array_push( $new_pages, $pages );
foreach ( $new_pages as $new_page )
{
?>
= $new_page ?>
|
|
$thumb_image";
else
$command = ZM_PATH_NETPBM."/jpegtopnm -dct fast $capt_image | ".ZM_PATH_NETPBM."/pnmscalefixed $fraction | ".ZM_PATH_NETPBM."/ppmtojpeg --dct=fast > $thumb_image";
#exec( escapeshellcmd( $command ) );
exec( $command );
}
}
$alarm_frame = $alarm_frames[$frame_id];
$img_class = $alarm_frame?"alarm":"normal";
?>
|
|
|