Add login Internet from User account

This commit is contained in:
Ibnu Maksum
2023-06-15 15:26:38 +07:00
parent a256e1eb42
commit c1c3ce08cd
6 changed files with 144 additions and 10 deletions

View File

@ -1,17 +1,22 @@
<?php
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
**/
Class User{
public static function _info(){
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
**/
class User
{
public static function _info()
{
$id = $_SESSION['uid'];
$d = ORM::for_table('tbl_customers')->find_one($id);
return $d;
}
public static function _billing(){
public static function _billing()
{
$id = $_SESSION['uid'];
$d = ORM::for_table('tbl_user_recharges')->where('customer_id',$id)->find_one();
$d = ORM::for_table('tbl_user_recharges')->where('customer_id', $id)->find_one();
return $d;
}
}
}