mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-06-28 20:30:02 +02:00
Radius demo mode
This commit is contained in:
parent
9c5e3007a2
commit
4b596d91bd
1 changed files with 4 additions and 0 deletions
|
@ -297,6 +297,10 @@ class Radius
|
||||||
|
|
||||||
public static function disconnectCustomer($username)
|
public static function disconnectCustomer($username)
|
||||||
{
|
{
|
||||||
|
global $_app_stage;
|
||||||
|
if ($_app_stage == 'demo') {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
$nas = Radius::getTableNas()->findMany();
|
$nas = Radius::getTableNas()->findMany();
|
||||||
$count = count($nas) * 15;
|
$count = count($nas) * 15;
|
||||||
set_time_limit($count);
|
set_time_limit($count);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue