public_html/wp-content/plugins/wp-statistics/includes/functions/functions.php
// This function returns all unique user agents in the database.
This function returns all unique user agents in the database.
This function returns all unique user agents in the database .
function wp_statistics_ua_list( $rangestartdate = null, $rangeenddate = null ) {
		global $wpdb;
		if( $rangestartdate != null && $rangeenddate != null ) {
			$result = $wpdb->get_results( $wpdb->prepare( "SELECT DISTINCT agent FROM {$wpdb->prefix}statistics_visitor AND `last_counter` BETWEEN %s AND %s", $rangestartdate, $rangeenddate ), ARRAY_N);
		} else {
			$result = $wpdb->get_results( "SELECT DISTINCT agent FROM {$wpdb->prefix}statistics_visitor", ARRAY_N);
		}
		$Browers = array();
		foreach( $result as $out )
			{
			$Browsers[] = $out[0];
			}
		return $Browsers;
	}
function wp_statistics_ua_list ( $ rangestartdate = null , $ rangeenddate = null ) { global $ wpdb ; if ( $ rangestartdate != null && $ rangeenddate != null ) { $ result = $ wpdb -> get_results ( $ wpdb -> prepare ( " SELECT DISTINCT agent FROM  { $ wpdb -> prefix } statistics_visitor AND `last_counter` BETWEEN %s AND %s " , $ rangestartdate , $ rangeenddate ) , ARRAY_N ) ; } else { $ result = $ wpdb -> get_results ( " SELECT DISTINCT agent FROM  { $ wpdb -> prefix } statistics_visitor " , ARRAY_N ) ; } $ Browers = array ( ) ; foreach ( $ result as $ out ) { $ Browsers [ ] = $ out [ 0 ] ; } return $ Browsers ; }
This function returns all unique user agents in the database.
This function returns all unique user agents in the database .