get_results("SELECT * FROM `{$wpdb->prefix}statistics_visitor` ORDER BY `{$wpdb->prefix}statistics_visitor`.`ID` DESC LIMIT 0, {$count}"); echo "
"; $dash_icon = wp_statistics_icons('dashicons-visibility', 'visibility'); foreach($result as $items) { if( substr( $items->ip, 0, 6 ) == '#hash#' ) { $ip_string = __('#hash#', 'wp_statistics'); $map_string = ""; } else { $ip_string = "{$dash_icon}{$items->ip}"; $map_string = "".wp_statistics_icons('dashicons-location-alt', 'map').""; } echo "
"; echo "
{$ip_string}
"; echo "
" . date(get_option('date_format'), strtotime($items->last_counter)) . "
"; echo "
"; echo "
"; echo $map_string; if($WP_Statistics->get_option('geoip')) { echo "location . '.png')."' title='{$ISOCountryCode[$items->location]}' class='log-tools'/>"; } if( array_search( strtolower( $items->agent ), array( "chrome", "firefox", "msie", "opera", "safari" ) ) !== FALSE ){ $agent = "agent.".png' class='log-tools' title='{$items->agent}'/>"; } else { $agent = wp_statistics_icons('dashicons-editor-help', 'unknown'); } echo "{$agent}"; echo "".wp_statistics_icons('dashicons-admin-links', 'link') . " " . htmlentities($items->referred,ENT_QUOTES) . "
"; echo "
"; } echo "
"; }