Check user email and Desc History

This commit is contained in:
Ibnu Maksum 2022-12-14 15:08:42 +07:00
parent 376a3448b6
commit f3363856f3
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -19,6 +19,7 @@ switch ($action) {
$ui->assign('_system_menu', 'history');
$d = ORM::for_table('tbl_payment_gateway')
->where('username', $user['username'])
->order_by_desc('id')
->find_many();
$paginator = Paginator::bootstrap('tbl_payment_gateway', 'username', $user['username']);
$ui->assign('paginator', $paginator);
@ -28,6 +29,9 @@ switch ($action) {
$ui->display('user-orderHistory.tpl');
break;
case 'package':
if(empty($user['email'])){
r2(U . 'accounts/profile', 'e', Lang::T("Please enter your email address"));
}
$ui->assign('_title', 'Order Plan');
$ui->assign('_system_menu', 'package');
$routers = ORM::for_table('tbl_routers')->find_many();
@ -102,6 +106,9 @@ switch ($action) {
$ui->display('user-orderView.tpl');
break;
case 'buy':
if(empty($user['email'])){
r2(U . 'accounts/profile', 'e', Lang::T("Please enter your email address"));
}
if ($config['payment_gateway'] == 'none') {
r2(U . 'home', 'e', Lang::T("No Payment Gateway Available"));
}