Finalising changes and checks

This commit is contained in:
Michał 2022-09-29 14:10:23 +00:00
parent d2f0bfec01
commit 7b76201f88
2 changed files with 6 additions and 3 deletions

View file

@ -146,13 +146,13 @@ if (isset($_POST['submit'])) {
if (mysqli_stmt_execute($stmt)) {
?>
<script>
sniffleAdd(':3', 'Your Image uploaded successfully!', 'var(--success)', 'assets/icons/check.svg');
sniffleAdd('Yeya :3', 'Your Image uploaded successfully!', 'var(--success)', 'assets/icons/check.svg');
</script>
<?php
} else {
?>
<script>
sniffleAdd(':c', 'Something went fuckywucky, please try later', 'var(--warning)', 'assets/icons/cross.svg');
sniffleAdd('Gwaaa :c', 'Something went fuckywucky, please try later', 'var(--warning)', 'assets/icons/cross.svg');
</script>
<?php
}

View file

@ -84,6 +84,8 @@
if ($_GET['mode'] == "edit") {
if ($_SESSION['id'] == $group['author'] || $user_info->is_admin($conn, $_SESSION['id'])) {
echo "<br>";
echo "<button id='deleteGroup' class='btn btn-bad'>Delete</button>";
?>
<script>
@ -133,8 +135,9 @@
</script>
<?php
$image_request = mysqli_query($conn, "SELECT * FROM images");
echo "<br>";
$image_request = mysqli_query($conn, "SELECT * FROM images");
echo "<form id='groupForm'>";
while ($image = mysqli_fetch_array($image_request)) {
if (in_array($image['id'], $image_list)) {