<commit_before><?php
if ( !isset($_SESSION["user"])) { echo '<span>Aucune session active !!</span>'; return; }

require_once('list_themes.php');
$now = time();
$dixMinutes = $now - (60 * 10);
$l = new Liste();
$list_Users_connected = $l->getListe(TABLE_USERS, 'prenom, level, date_last_action', 'date_last_action', 'DESC', 'date_last_action', '>', $dixMinutes);

?>

<script src="./js/modifInfosUser.js"></script>

<?php
echo 'Hello <b>'.$_SESSION['user']->getUserInfos('prenom').'</b> !

	<span class="boutonMenu"><a href="index.php?action=deconx">déconnexion</a></span>

	<p><select id="themeSel">
		<option disabled selected value="">Thème...</option>';
		$themesDispo = list_themes();
		foreach ($themesDispo as $theme)
			echo "<option value='$theme'>$theme</option>";
		echo '</select>
	</p>';
?>

<button class="bouton" id="modifInfoUserActif" idUser="<?php echo $_SESSION['user']->getUserInfos('id'); ?>">Mes infos</button>

<br />
<br />--------------------------<br />
<br />

<div id="rightMenuSection">
	<div class="ui-state-default ui-corner-all">
		Qui était là aussi<br /><i class="mini">ces 10 dernières min. ?</i>
		<p class="padV10 leftText gros"><commit_msg>Pas de modif possible des infos utilisateur en mode démo<commit_after><?php
if ( !isset($_SESSION["user"])) { echo '<span>Aucune session active !!</span>'; return; }

require_once('list_themes.php');
$now = time();
$dixMinutes = $now - (60 * 10);
$l = new Liste();
$list_Users_connected = $l->getListe(TABLE_USERS, 'prenom, level, date_last_action', 'date_last_action', 'DESC', 'date_last_action', '>', $dixMinutes);

?>

<script src="./js/modifInfosUser.js"></script>

<?php
echo 'Hello <b>'.$_SESSION['user']->getUserInfos('prenom').'</b> !

	<span class="boutonMenu"><a href="index.php?action=deconx">déconnexion</a></span>

	<p><select id="themeSel">
		<option disabled selected value="">Thème...</option>';
		$themesDispo = list_themes();
		foreach ($themesDispo as $theme)
			echo "<option value='$theme'>$theme</option>";
		echo '</select>
	</p>';

if ($_SESSION['user']->getUserInfos('prenom' != "Demo")) : ?>
	<button class="bouton" id="modifInfoUserActif" idUser="<?php echo $_SESSION['user']->getUserInfos('id'); ?>">Mes infos</button>
<?php endif; ?>

<br />
<br />--------------------------<br />
<br />

<div id="rightMenuSection">
	<div class="ui-state-default ui-corner-all">
		Qui était là aussi<br /><i class="mini">ces 10 dernières min. ?</i>
		<p class="padV10 leftText gros">
{'fraction_non_alphanumeric': 0.2438334007278609, 'fraction_numerical': 0.00646987464617873, 'mean_word_length': 5.123762376237623, 'pattern_counts': {'":': 0, '<': 70, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5768660', 'n_tokens_mistral': 947, 'n_tokens_neox': 906, 'n_words': 185}