3 Load this with plugins/db/dba.php if your PHP provides only the
4 older dbm_*() functions.
8 #-- fake dba_* using dbm_* functions
9 if (!function_exists("dba_open") && function_exists("dbm_open")) {
11 function dba_open($path, $mode, $handler, $a1=0) {
12 if ($handler == "dbm") {
13 return(dbmopen($path, $mode));
18 function dba_popen($a, $b, $c, $d=0) {
19 return(dba_open($a, $b, $c));
22 function dba_exists($key, $handle) {
23 return(dbmexists($handle, $key));
26 function dba_fetch($key, $handle) {
27 return(dbmfetch($handle, $key));
30 function dba_insert($key, $string, $handle) {
31 return(dbminsert($handle, $key, $string));
34 function dba_replace($key, $string, $handle) {
35 return(dbmreplace($handle, $key, $string));
38 function dba_delete($key, $handle) {
39 return(dbmdelete($handle, $key));
42 function dba_firstkey($handle) {
43 return($GLOBALS["dbm_lastkey"] = dbmfirstkey($handle));
46 function dba_nextkey($handle) {
47 return(dbmnextkey($handle, $GLOBALS["dbm_lastkey"]));
50 function dba_close($handle) {
51 return(dbmclose($handle));
54 function dba_handlers() {