mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
.. | ||
MikrotikHotspot.php | ||
MikrotikPppoe.php | ||
radius.php | ||
readme.md |
How To add new Devices
just follow the template
<?php
class FileName {
function connect_customer($customer, $plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function disconnect_customer($customer, $plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function change_customer($tur, $customer, $plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function add_plan($plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function update_plan($old_name, $plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function remove_plan($plan)
{
global $_app_stage;
if ($_app_stage == 'demo') {
return;
}
}
function add_pool($pool){
global $_app_stage;
if ($_app_stage == 'demo') {
return null;
}
}
function update_pool($old_pool, $new_pool){
global $_app_stage;
if ($_app_stage == 'demo') {
return null;
}
}
function remove_pool($pool){
global $_app_stage;
if ($_app_stage == 'demo') {
return null;
}
}
}