Panel/modules/litefm/SessionCheck.php
copilot-swe-agent[bot] 0ea24764e3 Phase 4: Update documentation and remaining user-facing content
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2025-09-08 15:57:33 +00:00

26 lines
497 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("gameserver-panel_web");
session_start();
}
if (isset($_SESSION['users_login']))
$json['valid'] = true;
else
$json['valid'] = false;
echo json_encode($json);
?>