From 452642831cc61cbb9a828cd1996604a7a9f2f11b Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 15 Nov 2023 11:45:29 +0700 Subject: [PATCH] fix isLogin --- system/controllers/autoload_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/controllers/autoload_user.php b/system/controllers/autoload_user.php index db48f0dc..e4e307bc 100644 --- a/system/controllers/autoload_user.php +++ b/system/controllers/autoload_user.php @@ -12,10 +12,10 @@ _auth(); $action = $routes['1']; $user = User::_info(); -$bill = User::_billing(); switch ($action) { case 'isLogin': + $bill = ORM::for_table('tbl_user_recharges')->where('id', $routes['2'])->where('username', $user['username'])->findOne(); if ($bill['type'] == 'Hotspot' && $bill['status'] == 'on') { $m = Mikrotik::info($bill['routers']); $client = Mikrotik::getClient($m['ip_address'], $m['username'], $m['password']);