mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 02:04:53 +02:00
Update init.php
- add Boolean function isMysqlRadius() to check if the system is using Radius mysql or not.
This commit is contained in:
parent
d138e1b36f
commit
810c5ae827
1 changed files with 10 additions and 0 deletions
10
init.php
10
init.php
|
@ -348,3 +348,13 @@ function displayMaintenanceMessage(): void
|
|||
$ui->display('maintenance.tpl');
|
||||
die();
|
||||
}
|
||||
|
||||
function isMysqlRadius()
|
||||
{
|
||||
try {
|
||||
$record = ORM::forTable('radacct', 'radius')->find_one();
|
||||
return $record !== false;
|
||||
} catch (Exception $e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue