Refill Balance with Custom Amount Requested by Javi Tech

This commit is contained in:
iBNu Maksum
2024-10-23 14:04:11 +07:00
parent bdda199523
commit dc55957a53
6 changed files with 152 additions and 70 deletions

View File

@ -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);