Example #1
0
File: db.php Project: netovs/Core
/**
 * Delete logs from the database, possibly using a filter to limit the
 * logs that are deleted.
 *
 * @param $filter - The filter to apply or NULL in case there is no filter.
 */
function event_logging_clearlogs($filter = NULL)
{
    global $PHORUM;
    $where = event_logging_create_where($filter);
    $PHORUM['DB']->interact(DB_RETURN_RES, "DELETE FROM {$PHORUM["event_logging_table"]} {$where}", NULL, DB_MASTERQUERY);
}
Example #2
0
/**
 * Delete logs from the database, possibly using a filter to limit the
 * logs that are deleted.
 *
 * @param $filter - The filter to apply or NULL in case there is no filter.
 */
function event_logging_clearlogs($filter = NULL)
{
    $PHORUM = $GLOBALS["PHORUM"];
    $where = event_logging_create_where($filter);
    phorum_db_interact(DB_RETURN_RES, "DELETE FROM {$PHORUM["event_logging_table"]} {$where}", NULL, DB_MASTERQUERY);
}