Make sure to start the PHP SESSION

This commit is contained in:
FusionPBX 2023-09-25 13:01:40 -06:00 committed by GitHub
parent 09dd09305c
commit 8f0c11fa6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,11 @@
//includes files
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/pdo.php";
//start the session
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
//check the domain cidr range
if (isset($_SESSION['cdr']["cidr"]) && !defined('STDIN')) {