Add files via upload
This commit is contained in:
parent
dce2755b05
commit
e9b433cd2a
7 changed files with 572 additions and 0 deletions
22
cloud/rm.php
Normal file
22
cloud/rm.php
Normal 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 {
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue