still thinking about which function need to add as default. currently customer, plan, pool

This commit is contained in:
Ibnu Maksum
2024-06-04 17:14:04 +07:00
parent 97f724c8c2
commit 0cc1ffe90f
7 changed files with 776 additions and 1061 deletions

View File

@ -1,41 +1,37 @@
<?php
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
*
* This is Core, don't modification except you want to contribute
* better create new plugin
**/
class Radius {
/**
* Establishes a connection between a MikroTik router and a customer.
*
* This function takes two parameters: $routers and $customer.
*
* @param array $routers An array containing information about the MikroTik routers.
* This can include IP addresses or connection details.
* @param mixed $customer An object or array representing a specific customer.
* This can contain relevant information about the customer,
* such as their username or account details.
* @return void
*/
function mikrotik_connect_customer($routers, $customer)
{
}
/**
* Establishes a connection between a MikroTik router and a customer.
*
* This function takes two parameters: $routers and $customer.
*
* @param array $routers An array containing information about the MikroTik routers.
* This can include IP addresses or connection details.
* @param mixed $customer An object or array representing a specific customer.
* This can contain relevant information about the customer,
* such as their username or account details.
* @return void
*/
function connect_customer($routers, $customer){
/**
* Disconnects a customer from a MikroTik router.
*
* This function takes two parameters: $routers and $customer.
*
* @param array $routers An array containing information about the MikroTik routers.
* This can include IP addresses or connection details.
* @param mixed $customer An object or array representing a specific customer.
* This can contain relevant information about the customer,
* such as their username or account details.
* @return void
*/
function mikrotik_disconnect_customer($routers, $customer)
{
}
}
/**
* Disconnects a customer from a MikroTik router.
*
* This function takes two parameters: $routers and $customer.
*
* @param array $routers An array containing information about the MikroTik routers.
* This can include IP addresses or connection details.
* @param mixed $customer An object or array representing a specific customer.
* This can contain relevant information about the customer,
* such as their username or account details.
* @return void
*/
function disconnect_customer($routers, $customer){
}
}