2017-03-11 03:51:06 +08:00
|
|
|
<?php
|
2022-09-11 12:02:30 +08:00
|
|
|
|
2017-03-11 03:51:06 +08:00
|
|
|
/**
|
2022-10-16 15:48:21 +08:00
|
|
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpnuxbill/)
|
2022-09-11 12:02:30 +08:00
|
|
|
**/
|
2017-03-11 03:51:06 +08:00
|
|
|
_auth();
|
2022-10-13 15:00:54 +08:00
|
|
|
$ui->assign('_title', $_L['Dashboard']);
|
2017-03-11 03:51:06 +08:00
|
|
|
|
|
|
|
$user = User::_info();
|
|
|
|
$ui->assign('_user', $user);
|
|
|
|
|
|
|
|
//Client Page
|
|
|
|
$bill = User::_billing();
|
|
|
|
$ui->assign('_bill', $bill);
|
|
|
|
|
2022-09-11 12:02:30 +08:00
|
|
|
|
|
|
|
$ui->assign('unpaid', ORM::for_table('tbl_payment_gateway')
|
|
|
|
->where('username', $user['username'])
|
|
|
|
->where('status', 1)
|
|
|
|
->find_one());
|
2022-09-18 01:00:40 +08:00
|
|
|
run_hook('view_customer_dashboard'); #HOOK
|
2022-09-11 12:02:30 +08:00
|
|
|
$ui->display('user-dashboard.tpl');
|