Automated loading of more logs

Fixed other random bugs
This commit is contained in:
Michał Gdula 2022-11-08 15:37:19 +00:00
parent 517d0b7071
commit 2d7d359cde
11 changed files with 151 additions and 95 deletions

View file

@ -39,6 +39,11 @@ if (defined('ROOT') && $_SESSION['id'] == 1) {
'link'=>'https://github.com/Fluffy-Bean/image-gallery',
'fix'=>'manual'
);
} else {
$results[] = array(
'type'=>'success',
'message'=>'You are running the latest version of the app v'.$app_repo['version']
);
}
if (PHP_VERSION_ID < 80000) {

View file

@ -54,8 +54,10 @@ if (isset($_POST['check'])) {
foreach ($results as $result) {
if ($result['type'] == 'critical') {
echo "<p class='alert alert-bad'><span class='badge badge-critical'>Critical</span> ";
} else {
} elseif ($result['type'] == 'warning') {
echo "<p class='alert alert-warning'><span class='badge badge-warning'>Warning</span> ";
} elseif ($result['type'] == 'success') {
echo "<p class='alert alert-good'><span class='badge badge-primary'>Success</span> ";
}
if ($result['fix'] == 'auto') {