$val"; else return $val; } function show_attributes( $line ) { $ret=""; foreach ($line as $name=>$value) { if ($name!='event_id' and $name!='starttime' and $name!='stoptime' and $name!='updatetime' and $name!='level' and $name!='type' and $name!='profile') { if (is_array($value)) { $curline="".$name."="; foreach($value as $val) { $curline.=markup_attribute($name,$val).", "; } $ret .= $curline."
"; # $ret .= markup_attribute($name, $value)."
"; } else $ret .= "".$name."=".markup_attribute($name, $value)."
"; } } return $ret; } function show_actions( $line ) { $ret=""; if (array_key_exists('Graph',$line) and array_key_exists('Channel',$line)) { if (isset($line['stoptime'])) { $endTime=$line['stoptime']; } else { $endTime=time()-300; $endTime-=$endTime % 300; } $vars=array( 'tab'=>2, 'sub_tab'=>'-', 'profileswitch'=>$line['profile'], 'channellist'=>$line['Channel'], 'detail_opts/proto'=>$line['Proto'], 'detail_opts/type'=>$line['Graph'], 'detail_opts/wsize'=>1, 'detail_opts/cursor_mode'=>1, 'tend'=>$endTime, 'tleft'=>$line['starttime'], #-300, 'tright'=>$endTime, #-300, 'detail_opts/logscale'=>'-', 'detail_opts/ratescale'=>'-', 'detail_opts/linegraph'=>'-', ); $bookmark = urlencode(base64_encode(implode('|', $vars))); #print(implode('|',$vars)); $ret .= "show details"; } return $ret; } function DisplayTable( $count, $Offset, $Limit, $filter ) { ?> $Limit,'Offset'=>$Offset),$filter)); foreach ($output['Lines'] as $serline) { $line = unserialize($serline); ?>
ID Starttime Stoptime Updatetime Level Profile Type Attributes Actions
Thu Jan 1 01:00:00 1970 active Thu Jan 1 01:00:00 1970