Files
kabano/views/d.admin.logs.html
copilot-swe-agent[bot] 9728aefc07 Replace PHP short tags
Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
2026-01-24 12:42:17 +00:00

41 lines
848 B
HTML
Executable File

<!DOCTYPE html>
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
<body>
<?php include('blocks/d.nav.html'); ?>
<section>
<h1><?=$head['title']?></h1>
<span class="subtitle">
<select id="logfile">
<?php $i = 0;
foreach ($files_list as $row) {
if ($row != "." && $row != "..") { ?>
<option <?=$i==$filenb?'selected':''?> value="<?=$i?>"><?php echo $row; ?></option>
<?php $i++;
} ?>
<?php } ?>
</select>
</span>
<br>
<br>
<pre><?php
foreach($output as $line) {
echo $line."<br>";
}
?></pre>
</section>
<script type="text/javascript">
$( "#logfile" ).change(function() {
window.location.href = "<?=$config['rel_root_folder']?>admin/logs/"+$( this ).val();
});
</script>
<?php include('blocks/d.footer.html'); ?>
</body>
</html>