roles[0]]['name']; $level = $level==''?ucfirst($current_user->roles[0]):$level; echo apply_filters("wpdm_udb_user_level",$level); ?>

get_var("select count(*) from {$wpdb->prefix}ahm_download_stats where uid = '{$current_user->ID}'"),0,'.',','); ?>

get_var("select count(*) from {$wpdb->prefix}ahm_download_stats where uid = '{$current_user->ID}' and `year` = YEAR(CURDATE()) and `month` = MONTH(CURDATE()) and `day` = DAY(CURDATE())"),0,'.',','); ?>

'wpdmpro', 'posts_per_page' => 20, 'orderby' => 'rand' ); if(isset($params['recommended']) && term_exists($params['recommended'], 'wpdmcategory')){ $qparams['tax_query'] = array(array('taxonomy' => 'wpdmcategory', 'field' => 'slug', 'terms' => $params['recommended'])); } $q = new WP_Query($qparams); while($q->have_posts()){ $q->the_post(); if(\WPDM\Package::userCanAccess(get_the_ID())) { ?> = 3) break; } } wp_reset_postdata(); ?>
get_results("select p.post_title,s.* from {$wpdb->prefix}posts p, {$wpdb->prefix}ahm_download_stats s where s.uid = '{$current_user->ID}' and s.pid = p.ID order by `timestamp` desc limit 0,5"); foreach($res as $stat){ ?>
post_title; ?> timestamp); ?> ip; ?>