mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2024-12-28 02:16:17 +00:00
Guess what, even more bugs!
This commit is contained in:
parent
9212267777
commit
956758fa25
|
@ -387,13 +387,6 @@
|
||||||
|
|
||||||
if (empty($check_sanity) || !isset($check_sanity)) {
|
if (empty($check_sanity) || !isset($check_sanity)) {
|
||||||
echo "<p class='btn btn-good' style='outline: none;'>No errors! Lookin' good</p>";
|
echo "<p class='btn btn-good' style='outline: none;'>No errors! Lookin' good</p>";
|
||||||
?>
|
|
||||||
<style>
|
|
||||||
.sanity-check {
|
|
||||||
border-color: var(--page-accent);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<?php
|
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
if ($user_info->is_admin($conn, $_SESSION['id'])) {
|
if ($user_info->is_admin($conn, $_SESSION['id'])) {
|
||||||
$check_sanity = $sanity->get_results();
|
$check_sanity = $sanity->get_results();
|
||||||
if (!empty($check_sanity) || isset($check_sanity)) {
|
if (!empty($check_sanity)) {
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
sniffleAdd('Uh oh', 'Website has not passed some Sanity checks, please check your settings for more information', 'var(--warning)', 'assets/icons/warning.svg');
|
sniffleAdd('Uh oh', 'Website has not passed some Sanity checks, please check your settings for more information', 'var(--warning)', 'assets/icons/warning.svg');
|
||||||
|
|
|
@ -74,7 +74,6 @@
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="gallery" class="gallery-root defaultDecoration">
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Reading images from table
|
// Reading images from table
|
||||||
|
@ -89,6 +88,9 @@
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$query = $stmt->get_result();
|
$query = $stmt->get_result();
|
||||||
|
|
||||||
|
if (mysqli_num_rows($query) != 0) {
|
||||||
|
echo "<div id='gallery' class='gallery-root defaultDecoration'>";
|
||||||
|
|
||||||
while ($image = mysqli_fetch_array($query)) {
|
while ($image = mysqli_fetch_array($query)) {
|
||||||
// Getting thumbnail
|
// Getting thumbnail
|
||||||
if (file_exists("images/thumbnails/".$image['imagename'])) {
|
if (file_exists("images/thumbnails/".$image['imagename'])) {
|
||||||
|
@ -109,9 +111,11 @@
|
||||||
</div>";
|
</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "</div>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var postCount = $("#gallery").children().length;
|
var postCount = $("#gallery").children().length;
|
||||||
|
|
Loading…
Reference in a new issue