. */ session_start(); // hide all error error_reporting(0); if (!isset($_SESSION["mikhmon"])) { header("Location:../admin.php?id=login"); } else { if ($hotspot == "hostp") { $gethosts = $API->comm("/ip/hotspot/host/print", array( "?bypassed" => "yes", )); $TotalReg = count($gethosts); $counthosts = $API->comm("/ip/hotspot/host/print", array( "?bypassed" => "yes", "count-only" => "", )); } elseif ($hotspot == "hosta") { $gethosts = $API->comm("/ip/hotspot/host/print", array( "?authorized" => "yes", )); $TotalReg = count($gethosts); $counthosts = $API->comm("/ip/hotspot/host/print", array( "?authorized" => "yes", "count-only" => "", )); } else { $gethosts = $API->comm("/ip/hotspot/host/print"); $TotalReg = count($gethosts); $counthosts = $API->comm("/ip/hotspot/host/print", array( "count-only" => "", )); } } ?>

Hosts 1) { echo "$counthosts items "; }; ?>  |   All   |   A   |   P   |   

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } ?>
MAC Address Address To Address Server
"; if ($hosts['authorized'] == "true" && $hosts['DHCP'] == "true") { echo "A H"; } elseif ($hosts['authorized'] == "true" && $hosts['dynamic'] == "true") { echo "A D"; } elseif ($hosts['authorized'] == "true") { echo "A"; } elseif ($hosts['DHCP'] == "true") { echo "H"; } elseif ($hosts['dynamic'] == "true") { echo "D"; } elseif ($hosts['bypassed'] == "true") { echo "P"; } else { } echo "" . $maca . "" . $addr . "" . $toaddr . "" . $server . "" . $commt . "