phpnuxbill/system/devices
2024-07-03 09:27:30 +07:00
..
MikrotikHotspot.php fix variable when move customer to expired plan 2024-06-23 12:01:08 +07:00
MikrotikPppoe.php fix variable when move customer to expired plan 2024-06-23 12:01:08 +07:00
Radius.php Fix Radius limiting speed 2024-07-03 09:27:30 +07:00
readme.md Fix edit customer plan 2024-06-20 14:02:36 +07:00

How To add new Devices

just follow the template

<?php

class FileName {

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

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

    // 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)
    {
    }

}