vers. 2.1.1
This commit is contained in:
@@ -1,19 +1,37 @@
|
||||
<h1 class="titlePage">Changelog</h1>
|
||||
<p class="subtitlePage">Visualizza tutti gli ricevuti</p>
|
||||
|
||||
<?php
|
||||
foreach($changelog->version as $version){
|
||||
echo "<hr>";
|
||||
echo "<p class=\"changelogTitle\">Versione ".$version->number."</p>";
|
||||
foreach($version->logs->log as $log_print){
|
||||
echo "<p class=\"changelogList\">• ".$log_print."</p>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<a href="<?php echo $base_path; ?>/home" data-page="home" class="linkBox mt-3">
|
||||
<div class="clickBox mt-5 mb-4">
|
||||
<svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12l4-4m-4 4 4 4"/></svg>
|
||||
Torna alla Home
|
||||
</div>
|
||||
<?php header('Content-Type: text/html; charset=UTF-8'); ?>
|
||||
|
||||
<h1 class="titlePage">Changelog</h1>
|
||||
<p class="subtitlePage">Visualizza tutti gli aggiornamenti ricevuti</p>
|
||||
|
||||
<?php
|
||||
// Verifica che $changelog sia stato caricato correttamente in getStation.inc.php
|
||||
if (isset($changelog) && $changelog !== false && isset($changelog->version)) {
|
||||
// Itera attraverso le versioni
|
||||
foreach($changelog->version as $version) {
|
||||
echo "<hr>";
|
||||
echo "<p class=\"changelogTitle\">Versione " . htmlspecialchars((string)$version->number) . "</p>";
|
||||
|
||||
// Verifica che esistano i log prima di iterare
|
||||
if (isset($version->logs) && isset($version->logs->log)) {
|
||||
foreach($version->logs->log as $log_print) {
|
||||
echo "<p class=\"changelogList\">• " . htmlspecialchars((string)$log_print) . "</p>";
|
||||
}
|
||||
} else {
|
||||
echo "<p class=\"changelogList\" style=\"font-style: italic; color: #999;\">Nessun dettaglio disponibile per questa versione.</p>";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Messaggio di errore se il changelog non è disponibile
|
||||
echo "<hr>";
|
||||
echo "<div style=\"padding: 20px; background: #fff3cd; border: 1px solid #ffc107; border-radius: 5px; margin: 20px 0;\">";
|
||||
echo "<p style=\"margin: 0; color: #856404;\"><strong>Attenzione:</strong> Impossibile caricare il changelog. Il file potrebbe essere mancante o corrotto.</p>";
|
||||
echo "</div>";
|
||||
}
|
||||
?>
|
||||
|
||||
<a href="<?php echo $base_path; ?>/home" data-page="home" class="linkBox mt-3">
|
||||
<div class="clickBox mt-5 mb-4">
|
||||
<svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12l4-4m-4 4 4 4"/></svg>
|
||||
Torna alla Home
|
||||
</div>
|
||||
</a>
|
||||
Reference in New Issue
Block a user