where('id', $routes['2'])->where('username', $user['username'])->findOne(); if ($bill['type'] == 'Hotspot' && $bill['status'] == 'on') { $p = ORM::for_table('tbl_plans')->find_one($bill['plan_id']); $dvc = Package::getDevice($p); if (file_exists($dvc) && $_app_stage != 'demo') { require_once $dvc; if ((new $p['device'])->online_customer($user, $bill['routers'])) { die(''.Lang::T('You are Online, Logout?').''); } else { if (!empty($_SESSION['nux-mac']) && !empty($_SESSION['nux-ip'])) { die(''.Lang::T('Not Online, Login now?').''); }else{ die(Lang::T('Your account not connected to internet')); } } } else { new Exception(Lang::T("Devices Not Found")); } } else { die('--'); } break; default: $ui->display('404.tpl'); }