phpnuxbill/system/autoload/User.php

17 lines
454 B
PHP
Raw Normal View History

2017-03-11 03:51:06 +08:00
<?php
/**
2022-10-16 15:50:24 +08:00
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
2017-03-11 03:51:06 +08:00
**/
Class User{
public static function _info(){
$id = $_SESSION['uid'];
$d = ORM::for_table('tbl_customers')->find_one($id);
return $d;
}
public static function _billing(){
$id = $_SESSION['uid'];
$d = ORM::for_table('tbl_user_recharges')->where('customer_id',$id)->find_one();
return $d;
}
}