phpnuxbill/system/devices
2024-08-09 17:25:52 +07:00
..
Dummy.php add change_username function 2024-07-18 09:48:22 +07:00
MikrotikHotspot.php Mikrotik Hotspot remove active after move to expired 2024-08-09 17:25:52 +07:00
MikrotikPppoe.php disconnect customer when moving to expired 2024-08-09 16:29:26 +07:00
Radius.php fix radius change username 2024-08-07 10:52:31 +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)
    {
    }

}