This commit is contained in:
2026-05-13 23:16:10 +02:00
parent d177dc3298
commit 98c037f040
2 changed files with 54 additions and 66 deletions

View File

@@ -52,15 +52,6 @@
</div>
<? endif; ?>
<div class="panel">
<div class="panel-heading">
<span class="panel-title">Changelog</span>
</div>
<div class="panel-body">
<?= @file_get_contents( 'https://shoppro.project-dc.pl/updates/changelog.php?ver=' . $this->ver ); ?>
</div>
</div>
<script type="text/javascript">
$(function() {
var version_current = <?= $this->ver; ?>;
@@ -138,3 +129,19 @@ $(function() {
}
});
</script>
<div class="panel">
<div class="panel-heading">
<span class="panel-title">Changelog</span>
</div>
<div class="panel-body">
<?php
$changelog = (string) @file_get_contents( 'https://shoppro.project-dc.pl/updates/changelog.php?ver=' . $this->ver );
// Usuń komentarze HTML i wszystkie tagi poza bezpieczną listą formatującą,
// żeby zdalny serwis nie mógł popsuć struktury strony (psuło to footer-script i przycisk "Wyczyść cache").
$changelog = preg_replace( '/<!--.*?-->/s', '', $changelog );
$changelog = strip_tags( $changelog, '<p><br><b><strong><i><em><u><ul><ol><li><h1><h2><h3><h4><h5><h6><span><div><a><pre><code><hr>' );
echo $changelog;
?>
</div>
</div>