Event IP Information'; $ans = eventCmd($user, array('action' => 'ips')); $pg .= "\n"; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= "\n"; if ($ans['STATUS'] == 'ok') { $now = $ans['STAMP']; $pg .= ''; $count = $ans['rows']; for ($i = 0; $i < $count; $i++) { if (($i % 2) == 0) $row = 'even'; else $row = 'odd'; $j = $i+1; $pg .= ""; $pg .= ""; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $exp = $ans['lifetime:'.$i]; if ($exp == 0) $dxp = '∞'; else { $exp += $ans['createdate:'.$i]; if ($exp <= $now) $dxp = 'Exp'; else { $exp -= $now; $dxp = $exp . 's'; } } $pg .= ''; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= "\n"; } $pg .= ''; } $pg .= "
#GroupIPNameIs?LifetimeLeftLogDescUTC
$j'.$ans['group:'.$i].''.$ans['ip:'.$i].''.$ans['eventname:'.$i].''.$ans['is_event:'.$i].''.$ans['lifetime:'.$i].''.$dxp.''.$ans['log:'.$i].''.$ans['description:'.$i].''.gmdate('j/M H:i:s',$ans['createdate:'.$i]).'
\n"; return $pg; } # function show_ips($info, $page, $menu, $name, $user) { gopage($info, NULL, 'doips', $page, $menu, $name, $user); } # ?>