mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-11 04:43:11 +00:00
Moved both sanity check and fix into one file
This commit is contained in:
parent
45b79c9c33
commit
fa7b2e2eb6
9 changed files with 312 additions and 428 deletions
12
index.php
12
index.php
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue