File: /var/www/net/mikmos/status/online.php
<?php
error_reporting(0);
require_once('../inc/config.php');
require_once('../lib/fungsi.php');
require_once('../lib/routeros_api.class.php');
if(empty($_LANG)){
include('../inc/lang/id.php');
}else{
include('../inc/lang/'.$_LANG.'.php');
}
if(empty($_GET['router'])){
include('../inc/ip_mk/'.$_ROUTER.'.php');
}else{
include('../inc/ip_mk/'.$_GET['router'].'.php');
}
$API = new RouterosAPI();
$API->debug = false;
$API->connect($_IPMK, $_POMK, $_USMK, _de(ltrim($_PSMK, __CMS)));
$mikmosTot = $API->comm("/ip/hotspot/active/print", array(
"count-only" => "",));
?>
<!DOCTYPE html>
<html>
<head>
<title>Jumlah</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<style>
body {font-family: arial;font-size: 13px;margin:0px;color:#555;}
</style>
</head>
<body>
<div style="padding:5px;" id="online" ><?php echo "$mikmosTot Orang";?></div>
</body>
</html>