. */ session_start(); error_reporting(0); ob_start("ob_gzhandler"); if (!isset($_SESSION["mikhmon"])) { header("Location:../admin.php?id=login"); } else { // load session MikroTik $session = $_GET['session']; // load config include('../include/config.php'); include('../include/readcfg.php'); include('../lib/formatbytesbites.php'); $id = $_GET['id']; $qr = $_GET['qr']; $usermode = $_GET['usermode']; $small = $_GET['small']; $userp = $_GET['user']; $logo = "../img/logo-" . $session . ".png"; if (file_exists($logo)) { $logo = "../img/logo-" . $session . ".png"; } else { $logo = "../img/logo.png"; } $username = "mikhmon"; $password = "1234"; $timelimit = "6h"; $getdatalimit = "1073741824"; $comment = "test"; $validity = "1d"; $profile = "6Jam"; if ($currency == in_array($currency, $cekindo['indo'])) { $getprice = "5000"; $price = $currency . " " . number_format((float)$getprice, 0, ",", "."); } else { $getprice = "10"; $price = $currency . " " . number_format((float)$getprice, 2); } if ($getdatalimit == 0) { $datalimit = ""; } else { $datalimit = formatBytes($getdatalimit, 2); } $urilogin = "http://$dnsname/login?username=$username&password=$password"; $qrcode = " "; $num = 1; } ?>