session_start

Start a session if not using the command line and no_session is empty.
This commit is contained in:
FusionPBX
2025-08-26 14:11:29 -06:00
committed by GitHub
parent bacef6f892
commit 68188df936

View File

@@ -88,10 +88,10 @@
global $database; global $database;
$database = database::new(['config' => $config]); $database = database::new(['config' => $config]);
//if not using the command line required files //start the session if not using the command line
global $no_session; global $no_session;
if (!defined('STDIN') && empty($no_session)) { if (!defined('STDIN') && empty($no_session)) {
require_once __DIR__ . '/php.php'; session_start();
} }
//load settings //load settings