. */ // hide all error error_reporting(0); ini_set('max_execution_time', 300); if (!isset($_SESSION["mikhmon"])) { header("Location:../admin.php?id=login"); } else { if ($prof == "all") { $getuser = $API->comm("/ip/hotspot/user/print"); $TotalReg = count($getuser); $counttuser = $API->comm("/ip/hotspot/user/print", array( "count-only" => "" )); } elseif ($prof != "all") { $getuser = $API->comm("/ip/hotspot/user/print", array( "?profile" => "$prof", )); $TotalReg = count($getuser); $counttuser = $API->comm("/ip/hotspot/user/print", array( "count-only" => "", "?profile" => "$prof", )); } if ($comm != "") { $getuser = $API->comm("/ip/hotspot/user/print", array( "?comment" => "$comm", //"?uptime" => "00:00:00" )); $TotalReg = count($getuser); $counttuser = $API->comm("/ip/hotspot/user/print", array( "count-only" => "", "?comment" => "$comm", )); } $exp = $_GET['exp']; if ($exp != "") { $getuser = $API->comm("/ip/hotspot/user/print", array( "?limit-uptime" => "1s", )); $counttuser = $API->comm("/ip/hotspot/user/print", array( "count-only" => "", "?limit-uptime" => "1s", )); } $getprofile = $API->comm("/ip/hotspot/user/profile/print"); $TotalReg2 = count($getprofile); } ?>
| = $counttuser; ?> | Server | = $_name ?> | = $_profile ?> | Mac Address | = $_uptime_user ?> | Bytes In | Bytes Out | = $_comment ?> |        | '; } else { $uriprocess = "'./?disable-hotspot-user=" . $uid . "&session=" . $session."'"; echo ''; } echo "" . $userver . " | "; if ($uname == $upass) { $usermode = "vc"; } else { $usermode = "up"; } $popup = "javascript:window.open('./voucher/print.php?user=" . $usermode . "-" . $uname . "&qr=no&session=" . $session . "','_blank','width=320,height=550').print();"; $popupQR = "javascript:window.open('./voucher/print.php?user=" . $usermode . "-" . $uname . "&qr=yes&session=" . $session . "','_blank','width=320,height=550').print();"; echo "" . $uname . " "; echo ' |   | '; echo "" . $uprofile . " | "; echo "" . $umacadd . " | "; echo "" . $uuptime . " | "; echo "" . $ubytesi . " | "; echo "" . $ubyteso . " | "; echo ""; if ($uname == "default-trial") { } else if (substr($ucomment,0,3) == "vc-" || substr($ucomment,0,3) == "up-") { echo " ". $ucomment." ". $udatalimit ." ".$utimelimit . ""; } else if ($utimelimit == ' expired') { echo " " . $ucomment." ". $udatalimit ." ".$utimelimit . ""; }else{ echo $ucomment.' '; } echo " | "; } ?>
|---|