Files
ms1inscription-v5/superadm/chronotrack_api.php
stephan 121186a0b9 Update version code and integrate MSIN API ChronoTrack functionality
This commit updates the version code to 4.72.725 and introduces the `fxSettingsApplyChronotrackApi` function to manage ChronoTrack API credentials based on the environment. It also adds relevant UI elements in the sidebar and form sections for ChronoTrack configuration, enhancing the integration of ChronoTrack features within the application.
2026-07-02 18:10:51 -04:00

38 lines
1.0 KiB
PHP

<?php
/**
* MSIN API ChronoTrack — page superadmin (config par eve_id + dashboard).
*/
$strLangue = 'fr';
$strPage = 'chronotrack_api.php';
require_once('php/inc_start_time.php');
require_once('php/inc_functions.php');
require_once dirname(__FILE__) . '/../php/chronotrack_api/inc_bootstrap.php';
if (empty($_SESSION['usa_id'])) {
header('Location: login.php');
exit;
}
$intEveId = isset($_GET['eve_id']) ? intval($_GET['eve_id']) : 0;
$blnDashboard = ($intEveId <= 0);
include('inc_header.php');
?>
<div class="container-fluid" id="main">
<div class="row">
<div class="col-md-9 col-lg-10 order-first order-md-last py-3">
<?php
if ($blnDashboard) {
fxChronotrackApiAdminRenderDashboard($strLangue);
} else {
fxChronotrackApiAdminRenderEventPage($intEveId, $strLangue);
}
?>
<p>&nbsp;</p>
</div>
<?php include('inc_droite.php'); ?>
</div>
</div>
<?php include('inc_footer.php'); ?>