Update version + cleaning up

This commit is contained in:
danpros 2024-06-02 19:08:31 +07:00
commit 5226e9c01c
33 changed files with 56 additions and 38 deletions

View file

@ -1,6 +1,13 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2><?php echo i18n('General_Settings')?></h2>
<br>
<?php
if (config('show.version') == 'false') {
if(file_exists('cache/installedVersion.json')) {
unlink('cache/installedVersion.json');
}
}
?>
<?php if (!extension_loaded('intl')) { ?>
<div class="callout callout-info">
<h5><i class="fa fa-info"></i> Note:</h5>
@ -157,7 +164,7 @@ Please install and enable the INTL extension to format the date format to your l
</label>
</div>
</div>
<small><em><?php echo i18n('explain_version');?></em></small>
<small><em><?php echo i18n('explain_version');?></em></small>
</div>
</div>
<hr />

View file

@ -54,5 +54,10 @@ if (empty($updater->getNewestInfo())) {
echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
echo '</div>';
echo '<p><a class="btn btn-primary" target="_blank" href="' . $info['html_url'] . '">Read on Github</a></p>';
if (config('show.version') == 'false') {
if(file_exists('cache/installedVersion.json')) {
unlink('cache/installedVersion.json');
}
}
}
}

View file

@ -5,4 +5,9 @@
if (file_exists('install.php')) {
unlink('install.php');
}
?>
if (config('show.version') == 'false') {
if(file_exists('cache/installedVersion.json')) {
unlink('cache/installedVersion.json');
}
}
?>