mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-27 11:56:17 +00:00
Automated loading of more logs
Fixed other random bugs
This commit is contained in:
parent
517d0b7071
commit
2d7d359cde
11 changed files with 151 additions and 95 deletions
|
@ -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) {
|
||||
|
|
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue