mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-06-26 19:48:35 +02:00
send package to friend
This commit is contained in:
parent
28fcabd1fd
commit
f292da9d8d
8 changed files with 199 additions and 33 deletions
|
@ -72,7 +72,17 @@ if (_post('send') == 'balance') {
|
|||
r2(U . 'home', 's', Lang::T('Sending balance success'));
|
||||
}
|
||||
} else {
|
||||
r2(U . 'home', 'd', 'Failed, balance is not available');
|
||||
r2(U . 'home', 'd', Lang::T('Failed, balance is not available'));
|
||||
}
|
||||
}else if (_post('send') == 'plan') {
|
||||
$active = ORM::for_table('tbl_user_recharges')
|
||||
->where('username', _post('username'))
|
||||
->find_one();
|
||||
$router = ORM::for_table('tbl_routers') ->where('name', $active['routers'])->find_one();
|
||||
if($router){
|
||||
r2(U . "order/send/$router[id]/$active[plan_id]&u=".trim(_post('username')), 's', Lang::T('Review package before recharge'));
|
||||
}else{
|
||||
r2(U . 'package/order', 'w', Lang::T('Your friend do not have active package'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue