Remove database as well

This commit is contained in:
Jacob 2023-09-30 04:12:18 +02:00
parent b377c34247
commit 89bd9b827f
2 changed files with 23 additions and 21 deletions

View file

@ -9,6 +9,8 @@ public_uploading = false
rename_duplicates = true
replace_original = false
max_size = 100
enable_upload_removal = true
enable_key_upload_removal = false
[credentials]
sqldb = curload.sql

View file

@ -65,7 +65,7 @@
}
}
$FileToRemove = $kline['file'];
$FileToRemove = $line['file'];
break;
}
@ -77,6 +77,6 @@
die();
}
// remove file
unlink($FileToRemove);
$Database->exec("DELETE FROM uploads WHERE id='$fileID'");
unlink(ltrim($FileToRemove, '/'));
?>