diff --git a/pool/db.php b/pool/db.php index 97af40d2..4b84f4e3 100644 --- a/pool/db.php +++ b/pool/db.php @@ -496,4 +496,16 @@ function getOpts($user, $optlist) return repDecode($rep); } # +function eventIPs($user) +{ + if ($user == false) + showIndex(); + $flds = array('action' => 'ips'); + $msg = msgEncode('events', 'events', $flds, $user); + $rep = sendsockreply('eventIPs', $msg); + if (!$rep) + dbdown(); + return repDecode($rep); +} +# ?> diff --git a/pool/page_ips.php b/pool/page_ips.php new file mode 100644 index 00000000..7124fc16 --- /dev/null +++ b/pool/page_ips.php @@ -0,0 +1,54 @@ +Event IP Information'; + + $ans = eventIPs($user); + + $pg .= "
Group | '; + $pg .= 'IP | '; + $pg .= 'Name | '; + $pg .= 'Is? | '; + $pg .= 'Lifetime | '; + $pg .= 'Log | '; + $pg .= 'Desc | '; + $pg .= 'CreateDate | '; + $pg .= "
'.$ans['group:'.$i].' | '; + $pg .= ''.$ans['ip:'.$i].' | '; + $pg .= ''.$ans['eventname:'.$i].' | '; + $pg .= ''.$ans['is_event:'.$i].' | '; + $pg .= ''.$ans['lifetime:'.$i].' | '; + $pg .= ''.$ans['log:'.$i].' | '; + $pg .= ''.$ans['description:'.$i].' | '; + $pg .= ''.gmdate('j/M H:i:s',$ans['createdate:'.$i]).' | '; + $pg .= "