mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
Merge branch 'Development' of https://github.com/Focuslinkstech/phpnuxbill into Development
This commit is contained in:
commit
d00d04994d
12 changed files with 216 additions and 106 deletions
|
@ -148,6 +148,9 @@ switch ($action) {
|
|||
r2(U . "voucher/invoice/");
|
||||
die();
|
||||
}
|
||||
if($user['status'] != 'Active'){
|
||||
_alert(Lang::T('This account status').' : '.Lang::T($user['status']),'danger', "");
|
||||
}
|
||||
$plan = ORM::for_table('tbl_plans')->where('enabled', '1')->find_one($routes['3']);
|
||||
if (empty($plan)) {
|
||||
r2(U . "order/package", 'e', Lang::T("Plan Not found"));
|
||||
|
@ -181,6 +184,9 @@ switch ($action) {
|
|||
if ($config['enable_balance'] != 'yes') {
|
||||
r2(U . "order/package", 'e', Lang::T("Balance not enabled"));
|
||||
}
|
||||
if($user['status'] != 'Active'){
|
||||
_alert(Lang::T('This account status').' : '.Lang::T($user['status']),'danger', "");
|
||||
}
|
||||
$ui->assign('_title', Lang::T('Buy for friend'));
|
||||
$ui->assign('_system_menu', 'package');
|
||||
$plan = ORM::for_table('tbl_plans')->find_one($routes['3']);
|
||||
|
@ -322,6 +328,9 @@ switch ($action) {
|
|||
} else if (!empty($gateway)) {
|
||||
$_SESSION['gateway'] = $gateway;
|
||||
}
|
||||
if($user['status'] != 'Active'){
|
||||
_alert(Lang::T('This account status').' : '.Lang::T($user['status']),'danger', "");
|
||||
}
|
||||
if (empty($gateway)) {
|
||||
r2(U . 'order/gateway/' . $routes[2] . '/' . $routes[3], 'w', Lang::T("Please select Payment Gateway"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue