} } } } else { if ($_GET['action'] == remove && $_SESSION['access'] >= 50) { //remove the port if it is a port if (isset($_GET['portID'])) { $ports = new ControlPort($_GET['portID']); removePort($ports); } else { $devices = new Device($_GET['ID']); removeDevice($devices); } } else { if ($_GET['action'] == ipReport) { displayIP(); } else { if ($_GET['action'] == showArchived) { displayAllArchived($devices); } else { if ($_GET['action'] == changeControlledPort && $_SESSION['access'] >= 50) { //give power controls a grouping value echo "<td class='info'>GROUP "; if ($_GET['mode'] == 'power_control') { echo "<input type='text' name='group' value='' />"; } else { echo "NOT APPLICABLE"; } echo "</td>"; $types = $devices->get_devices_by_class($_GET['mode']); echo "<select name='controlledDevice'>";
echo displayIP($entry['srcip'], 'srcip'); ?> </td> <td class="listr"><?php echo $entry['srcport']; ?> </td> <td class="listr"><img src="/themes/<?php echo $g['theme']; ?> /images/icons/icon_<?php echo $entry['dir']; ?> .gif" width="11" height="11" style="margin-top: 2px" alt="" /></td> <td class="listr"><?php echo displayIP($entry['dstip'], 'dstip'); ?> </td> <td class="listr"><?php echo $entry['dstport']; ?> </td> <td class="listr"><?php echo $entry['protocol']; ?> </td> <td class="listr" align="right"><?php echo $entry['packets']; ?> </td> <td class="listr" align="right"><?php