mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-06-25 19:18:33 +02:00
Refill Balance with Custom Amount Requested by Javi Tech
This commit is contained in:
parent
bdda199523
commit
dc55957a53
6 changed files with 152 additions and 70 deletions
|
@ -32,6 +32,14 @@ switch ($action) {
|
|||
$bw = ORM::for_table('tbl_bandwidth')->select("name_bw")->find_one($routes['2']);
|
||||
echo $bw['name_bw'];
|
||||
die();
|
||||
case 'balance':
|
||||
$balance = ORM::for_table('tbl_customers')->select("balance")->find_one($routes['2'])['balance'];
|
||||
if($routes['3']=='1'){
|
||||
echo Lang::moneyFormat($balance);
|
||||
}else{
|
||||
echo $balance;
|
||||
}
|
||||
die();
|
||||
case 'server':
|
||||
$d = ORM::for_table('tbl_routers')->where('enabled', '1')->find_many();
|
||||
$ui->assign('d', $d);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue