X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=fdb.php;h=3716ea6c74099297a771ca6b3e36a056fde94bad;hb=fe9a487e1b5ed0700481aee4609055dc6c47505d;hp=bfc54d65190ec4bea8c7663b8342fb1633a1c98c;hpb=856f805c6cbb6e712c662214f3b5821442f808a0;p=wfpl.git diff --git a/fdb.php b/fdb.php index bfc54d6..3716ea6 100644 --- a/fdb.php +++ b/fdb.php @@ -29,8 +29,8 @@ # fdb_set_dir() passing the path to that directory. -require_once('code/wfpl/file.php'); -require_once('code/wfpl/binary.php'); +require_once(__DIR__.'/'.'file.php'); +require_once(__DIR__.'/'.'binary.php'); # call this to set what directory is used to store the files function fdb_set_dir($dir) { @@ -39,7 +39,7 @@ function fdb_set_dir($dir) { function fdb_get_dir() { if(!isset($GLOBALS['fdb_dir'])) { - die('you must call fdb_set_dir() before calling other functions in code/wfpl/fdb.php'); + die('you must call fdb_set_dir() before calling other functions in wfpl/fdb.php'); } return $GLOBALS['fdb_dir']; }