2017-03-11 03:51:06 +08:00
|
|
|
<?php
|
|
|
|
/**
|
2017-03-24 14:26:14 +08:00
|
|
|
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
|
|
|
|
|
|
|
|
|
2017-03-11 03:51:06 +08:00
|
|
|
* @copyright Copyright (C) 2014-2015 PHP Mikrotik Billing
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
2017-03-24 14:26:14 +08:00
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|