phpnuxbill/system/devices
2024-08-08 14:44:42 +07:00
..
Dummy.php add change_username function 2024-07-18 09:48:22 +07:00
MikrotikHotspot.php if expired plan deleted, go delete customer when expired 2024-08-06 10:26:46 +07:00
MikrotikPppoe.php removePpoeActive based pppoe_username 2024-08-08 14:44:42 +07:00
Radius.php fix radius change username 2024-08-07 10:52:31 +07:00
RadiusRest.php fix radius change username 2024-08-07 10:52:31 +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)
    {
    }

}