Пример #1
0
 function dba_exists($key, $handle)
 {
     return dbmexists($handle, $key);
 }
Пример #2
0
function GetHitCount($dbi, $pagename)
{
    if (dbmexists($dbi['hitcount'], $pagename)) {
        // increase the hit count
        $count = dbmfetch($dbi['hitcount'], $pagename);
        return $count;
    } else {
        return 0;
    }
}
Пример #3
0
function GetHitCount($dbi, $pagename)
{
    return;
    // kluge: we ignore the $dbi for hit counting
    global $WikiDB;
    $hcdb = OpenDataBase($WikiDB['hitcount']);
    if (dbmexists($hcdb['active'], $pagename)) {
        // increase the hit count
        $count = dbmfetch($hcdb['active'], $pagename);
        return $count;
    } else {
        return 0;
    }
    CloseDataBase($hcdb);
}