Moved both sanity check and fix into one file

This commit is contained in:
Michał Gdula 2022-11-05 18:02:54 +00:00
parent 45b79c9c33
commit fa7b2e2eb6
9 changed files with 312 additions and 428 deletions

View file

@ -5,7 +5,6 @@
use App\Sanity;
$user_info = new Account();
$sanity = new Sanity();
?>
<!DOCTYPE html>
@ -41,17 +40,6 @@
</script>
<?php
}
if ($user_info->is_admin($conn, $_SESSION['id'])) {
$check_sanity = $sanity->get_results();
if (!empty($check_sanity)) {
?>
<script>
sniffleAdd('Uh oh', 'Website has not passed some Sanity checks, please check your settings for more information', 'var(--warning)', 'assets/icons/warning.svg');
</script>
<?php
}
}
unset($_SESSION['welc']);
}