X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=fdb.php;h=99f63cb98f1c6dc0c39cb82c30b486498587a445;hb=1297396379e2f82280539e6fbcbe52ec4770b7ec;hp=9eab198049dbfe80c417f9ac914882bf206f6c38;hpb=030f09ab36a49e16a65163e8a537a7ccdb3061e4;p=wfpl.git diff --git a/fdb.php b/fdb.php index 9eab198..99f63cb 100644 --- a/fdb.php +++ b/fdb.php @@ -137,4 +137,13 @@ function fdb_set($key, $data) { fdb_set_raw($key, $out); } +function fdb_delete($key) { + $key = fdb_fix_key($key); + $path = fdb_get_dir() . "/$key"; + if(file_exists($path)) { + return unlink($path); + } + return false; +} + ?>