. */ session_start(); // hide all error error_reporting(0); if (!isset($_SESSION["mikhmon"])) { header("Location:../admin.php?id=login"); } else { // get MikroTik system clock $getclock = $API->comm("/system/clock/print"); $clock = $getclock[0]; $timezone = $getclock[0]['time-zone-name']; $_SESSION['timezone'] = $timezone; date_default_timezone_set($timezone); // get system resource MikroTik $getresource = $API->comm("/system/resource/print"); $resource = $getresource[0]; // get routeboard info $getrouterboard = $API->comm("/system/routerboard/print"); $routerboard = $getrouterboard[0]; /* // move hotspot log to disk * $getlogging = $API->comm("/system/logging/print", array("?prefix" => "->", )); $logging = $getlogging[0]; if ($logging['prefix'] == "->") { } else { $API->comm("/system/logging/add", array("action" => "disk", "prefix" => "->", "topics" => "hotspot,info,debug", )); } // get hotspot log $getlog = $API->comm("/log/print", array("?topics" => "hotspot,info,debug", )); $log = array_reverse($getlog); $THotspotLog = count($getlog); */ // get & counting hotspot users $countallusers = $API->comm("/ip/hotspot/user/print", array("count-only" => "")); if ($countallusers < 2) { $uunit = "item"; } elseif ($countallusers > 1) { $uunit = "items"; } // get & counting hotspot active $counthotspotactive = $API->comm("/ip/hotspot/active/print", array("count-only" => "")); if ($counthotspotactive < 2) { $hunit = "item"; } elseif ($counthotspotactive > 1) { $hunit = "items"; } if ($livereport == "disable") { $logh = "457px"; $lreport = "style='display:none;'"; } else { $logh = "350px"; $lreport = "style='display:block;'"; } /* // get selling report $thisD = date("d"); $thisM = strtolower(date("M")); $thisY = date("Y"); if (strlen($thisD) == 1) { $thisD = "0" . $thisD; } else { $thisD = $thisD; } $idhr = $thisM . "/" . $thisD . "/" . $thisY; $idbl = $thisM . $thisY; $getSRHr = $API->comm("/system/script/print", array( "?source" => "$idhr", )); $TotalRHr = count($getSRHr); $getSRBl = $API->comm("/system/script/print", array( "?owner" => "$idbl", )); $TotalRBl = count($getSRBl); for ($i = 0; $i < $TotalRHr; $i++) { $tHr += explode("-|-", $getSRHr[$i]['name'])[3]; } for ($i = 0; $i < $TotalRBl; $i++) { $tBl += explode("-|-", $getSRBl[$i]['name'])[3]; } }*/ } ?>
| = $_time ?> | = $_users ?> (IP) | = $_messages ?> |
|---|---|---|
|
= $_processing ?>
|
||