mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-01-14 10:35:13 +00:00
Finalising changes and checks
This commit is contained in:
parent
d2f0bfec01
commit
7b76201f88
|
@ -146,13 +146,13 @@ if (isset($_POST['submit'])) {
|
||||||
if (mysqli_stmt_execute($stmt)) {
|
if (mysqli_stmt_execute($stmt)) {
|
||||||
?>
|
?>
|
||||||
<script>
|
<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>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<script>
|
<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>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,6 +84,8 @@
|
||||||
|
|
||||||
if ($_GET['mode'] == "edit") {
|
if ($_GET['mode'] == "edit") {
|
||||||
if ($_SESSION['id'] == $group['author'] || $user_info->is_admin($conn, $_SESSION['id'])) {
|
if ($_SESSION['id'] == $group['author'] || $user_info->is_admin($conn, $_SESSION['id'])) {
|
||||||
|
echo "<br>";
|
||||||
|
|
||||||
echo "<button id='deleteGroup' class='btn btn-bad'>Delete</button>";
|
echo "<button id='deleteGroup' class='btn btn-bad'>Delete</button>";
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
|
@ -133,8 +135,9 @@
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$image_request = mysqli_query($conn, "SELECT * FROM images");
|
echo "<br>";
|
||||||
|
|
||||||
|
$image_request = mysqli_query($conn, "SELECT * FROM images");
|
||||||
echo "<form id='groupForm'>";
|
echo "<form id='groupForm'>";
|
||||||
while ($image = mysqli_fetch_array($image_request)) {
|
while ($image = mysqli_fetch_array($image_request)) {
|
||||||
if (in_array($image['id'], $image_list)) {
|
if (in_array($image['id'], $image_list)) {
|
||||||
|
|
Loading…
Reference in a new issue