Updating naming of alert variables

This commit is contained in:
Michał Gdula 2022-09-27 21:39:02 +00:00
parent e4c59ba7f0
commit 0e23bfffb6
12 changed files with 147 additions and 109 deletions

View file

@ -14,7 +14,7 @@
if (isset($_SESSION['del'])) {
?>
<script>
sniffleAdd("Image Deleted", "Successfully deleted image: <?php echo $_SESSION['del']; ?>", "var(--green)", "assets/icons/trash.svg");
sniffleAdd("Image Deleted", "Successfully deleted image: <?php echo $_SESSION['del']; ?>", "var(--success)", "assets/icons/trash.svg");
</script>
<?php
unset($_SESSION['del']);
@ -22,7 +22,7 @@
if (isset($_SESSION['welc'])) {
?>
<script>
sniffleAdd('O hi <?php echo $_SESSION["username"]; ?>', 'You are now logged in, enjoy your stay!', 'var(--green)', 'assets/icons/hand-waving.svg');
sniffleAdd('O hi <?php echo $_SESSION["username"]; ?>', 'You are now logged in, enjoy your stay!', 'var(--success)', 'assets/icons/hand-waving.svg');
</script>
<?php
unset($_SESSION['welc']);