refactor: Centralize includes and initialization (#4991)

This commit is contained in:
Tony Murray
2016-11-21 14:12:59 -06:00
committed by Neil Lathwood
parent bbf05feb90
commit 9a33464c52
61 changed files with 326 additions and 578 deletions

View File

@ -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();