mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Centralize includes and initialization (#4991)
This commit is contained in:
committed by
Neil Lathwood
parent
bbf05feb90
commit
9a33464c52
@ -12,12 +12,6 @@
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
|
||||
require_once '../includes/functions.php';
|
||||
require_once '../includes/device-groups.inc.php';
|
||||
if (file_exists('../html/includes/authentication/'.$config['auth_mechanism'].'.inc.php')) {
|
||||
include '../html/includes/authentication/'.$config['auth_mechanism'].'.inc.php';
|
||||
}
|
||||
|
||||
function authToken(\Slim\Route $route)
|
||||
{
|
||||
$app = \Slim\Slim::getInstance();
|
||||
|
Reference in New Issue
Block a user