Example #1
0
File: db.php Project: philum/cms
function db_build($p, $o)
{
    $f = db_f('test');
    if ($p) {
        db_add($f, $p);
    }
    $r = db_read($f);
    return p($r, 1);
}
Example #2
0
File: meta.php Project: philum/cms
function removetag($idtag)
{
    //from editor
    if (!auth(6)) {
        return;
    }
    $rb = sql('idart', 'qdta', 'rv', 'idtag="' . $idtag . '"');
    //existing
    if (!$rb) {
        delete('qdt', $idtag);
    }
    db_add(db_f('rmtag'), $idtag . ':' . hostname());
    return 'ok';
}