. */ 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" => "", )); } } ?>
| MAC Address | Address | To Address | Server | = $_comment ?> | "; echo " | "; 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 " | "; echo "" . $maca . " | "; echo "" . $addr . " | "; echo "" . $toaddr . " | "; echo "" . $server . " | "; echo "" . $commt . " | "; echo ""; } ?>
|---|