mysqli_query($conn,"INSERT INTO logs (ipaddress, action) VALUES('$user_ip','Deleted image ".$_POST['id']."')");
$_SESSION['del']=$_POST['id'];
?>
<script>
window.location.replace("index.php");
</script>
<?php
}else{
?>
<script>
sniffleAdd('Oopsie','The image failed to delete off of the servers, contact Fluffy about his terrible programming','var(--warning)','assets/icons/cross.svg');
flyoutClose();
</script>
<?php
}
}else{
?>
<script>
sniffleAdd('Error :c','An error occured on the servers','var(--warning)','assets/icons/cross.svg');
flyoutClose();
</script>
<?php
}
}else{
?>
<script>
sniffleAdd('Denied','It seems that you do not have the right permitions to edit this image.','var(--warning)','assets/icons/cross.svg');
sniffleAdd('Success!!!','Description has been updated successfully! You may need to refresh the page to see the new information.','var(--success)','assets/icons/check.svg');
flyoutClose();
</script>
<?php
}else{
?>
<script>
sniffleAdd('Error :c','An error occured on the servers','var(--warning)','assets/icons/cross.svg');
flyoutClose();
</script>
<?php
}
}else{
?>
<script>
sniffleAdd('Error :c','An error occured on the servers','var(--warning)','assets/icons/cross.svg');
flyoutClose();
</script>
<?php
}
}else{
?>
<script>
sniffleAdd('Denied','It seems that you do not have the right permitions to edit this image.','var(--warning)','assets/icons/cross.svg');
sniffleAdd('Success!!!','Tags have been modified successfully! You may need to refresh the page to see the new information.','var(--success)','assets/icons/check.svg');
flyoutClose();
</script>
<?php
}else{
?>
<script>
sniffleAdd('Error :c','An error occured on the servers','var(--warning)','assets/icons/cross.svg');
flyoutClose();
</script>
<?php
}
}else{
?>
<script>
sniffleAdd('Error :c','An error occured on the servers','var(--warning)','assets/icons/cross.svg');
flyoutClose();
</script>
<?php
}
}else{
?>
<script>
sniffleAdd('Denied','It seems that you do not have the right permitions to modify tags here.','var(--warning)','assets/icons/cross.svg');
sniffleAdd('Success!!!','The Author has been updated successfully! You may need to refresh the page to see the new information.','var(--success)','assets/icons/check.svg');
flyoutClose();
</script>
<?php
}else{
?>
<script>
sniffleAdd('Oopsie....','An error occured on the servers','var(--warning)','assets/icons/cross.svg');