function phpAds_totalViews($bannerid = "", $timeconstraint = "")
{
    $conf = $GLOBALS['_MAX']['CONF'];
    return phpAds_totalStats("impressions", $bannerid, $timeconstraint);
}
function phpAds_totalViews($bannerid = "", $timeconstraint = "")
{
    global $phpAds_config;
    return phpAds_totalStats($phpAds_config['tbl_adviews'], "views", $bannerid, $timeconstraint);
}