Example #1
0
function db4_get($key)
{
    return dba_fetch(bin4($key), $GLOBALS['db']);
}
Example #2
0
function db_encode_square($parent, $position, $tog0, $tog1, $tog2, $tog3, $id0, $id1, $id2, $id3)
{
    return bin4($parent) . bin4($id0) . bin4($id1) . bin4($id2) . bin4($id3) . chr($position) . chr($tog0 + $tog1 * 2 + $tog2 * 4 + $tog3 * 8);
}