Panel/modules/litefm/SessionCheck.php
copilot-swe-agent[bot] 898018d204 Complete license header replacement with file purpose descriptions (675 files)
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2025-09-05 22:46:27 +00:00

26 lines
494 B
PHP

<?php
/*
* Component of the litefm module
*/
if(file_exists("includes/helpers.php")){
require_once("includes/helpers.php");
}else{
if(file_exists(__DIR__ . "/../../includes/helpers.php")){
require_once(__DIR__ . '/../../includes/helpers.php');
}
}
if(function_exists("startSession")){
startSession();
}else{
session_name("opengamepanel_web");
session_start();
}
if (isset($_SESSION['users_login']))
$json['valid'] = true;
else
$json['valid'] = false;
echo json_encode($json);
?>