hotspotbilling.phpnuxbill/system/devices
2024-10-08 09:50:23 +07:00
..
Dummy.php add change_username function 2024-07-18 09:48:22 +07:00
MikrotikHotspot.php Show is Customer Online in the customer list 2024-10-07 15:05:22 +07:00
MikrotikPppoe.php change variable user to name to check pppoe online customer 2024-10-08 09:50:23 +07:00
MikrotikVpn.php Add Public Header and Footer in user-ui folder, and use it for public page 2024-09-20 10:23:01 +07:00
Radius.php Update Radius.php 2024-08-21 21:31:27 +07:00
RadiusRest.php Zero datausage if expired 2024-08-09 14:41:06 +07:00
readme.md fix radius change username 2024-08-07 10:52:31 +07:00

How To add new Devices

just follow the template

<?php

class FileName {

    // show Description
    function description()
    {
        return [
            'title' => 'Device',
            'description' => '',
            'author' => 'ibnu maksum',
            'url' => [
                'Github' => 'https://github.com/hotspotbilling/phpnuxbill/',
                'Telegram' => 'https://t.me/ibnux',
                'Donate' => 'https://paypal.me/ibnux',
                'any text' => 'Any Url'
            ]
        ];
    }

    // Add Customer to Mikrotik/Device
    function add_customer($customer, $plan)
    {
    }

    // Remove Customer to Mikrotik/Device
    function remove_customer($customer, $plan)
    {
    }

    // customer change username
    public function change_username($plan, $from, $to)
    {
    }

    // Add Plan to Mikrotik/Device
    function add_plan($plan)
    {
    }

    // Update Plan to Mikrotik/Device
    function update_plan($old_name, $plan)
    {
    }

    // Remove Plan from Mikrotik/Device
    function remove_plan($plan)
    {
    }

    // check if customer is online
    function online_customer($customer, $router_name)
    {
    }

    // make customer online
    function connect_customer($customer, $ip, $mac_address, $router_name)
    {
    }

    // make customer disconnect
    function disconnect_customer($customer, $router_name)
    {
    }

}