. */ session_start(); // hide all error error_reporting(0); if (!isset($_SESSION["mikhmon"])) { header("Location:../admin.php?id=login"); } else { $getlease = $API->comm("/ip/dhcp-server/lease/print"); $TotalReg = count($getlease); $countlease = $API->comm("/ip/dhcp-server/lease/print", array( "count-only" => "", )); } ?>
| Address | MAC Address | Server | Active Address | Active MAC Address | Active Host Name | Status | "; if ($lease['dynamic'] == "true") { echo "D"; } else { echo "S"; } echo " | "; echo "" . $addr . " | "; echo "" . $maca . " | "; echo "" . $server . " | "; echo "" . $aaddr . " | "; echo "" . $amaca . " | "; echo "" . $ahostname . " | "; echo "" . $status . " | "; echo ""; } ?>
|---|