Remove database as well
This commit is contained in:
parent
b377c34247
commit
89bd9b827f
|
@ -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
|
||||
|
|
|
@ -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, '/'));
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue