Add files via upload

This commit is contained in:
Justin 2022-07-20 09:23:43 -04:00 committed by GitHub
commit e9b433cd2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 572 additions and 0 deletions

22
cloud/rm.php Normal file
View file

@ -0,0 +1,22 @@
<?php
$cloudx = mysqli_connect("127.0.0.1","uploads","YOUR OWN PASSWORD HERE","uploads");
if(mysqli_connect_errno($cloudx)) {
exit();
}
$id = safe($_GET['id']);
$cloudq = mysqli_query($cloudx, "SELECT * FROM image_uploads WHERE id='$id'");
$cloudr = mysqli_fetch_assoc($cloudq);
$file_location = $cloudr['file_location'];
//mysqli_query($conx, "DELETE FROM image_uploads WHERE id='$id'");
if (!unlink($file_location)) {
exit();
}
else {
}
?>