prefix . 'statistics_'; if( $WP_Statistics->get_option('search_converted') ) { $tabletwo = $tablename . 'visitor'; $tablename .= 'search'; $result = $wpdb->get_results("SELECT * FROM `{$tablename}` INNER JOIN `{$tabletwo}` on {$tablename}.`visitor` = {$tabletwo}.`ID` WHERE {$search_query} ORDER BY `{$tablename}`.`ID` DESC LIMIT 0, {$count}"); } else { $tablename .= 'visitor'; $result = $wpdb->get_results("SELECT * FROM `{$tablename}` WHERE {$search_query} ORDER BY `{$tablename}`.`ID` DESC LIMIT 0, {$count}"); } if( sizeof($result) > 0 ) { echo "
"; foreach($result as $items) { if( !$WP_Statistics->Search_Engine_QueryString($items->referred) ) continue; if( substr( $items->ip, 0, 6 ) == '#hash#' ) { $ip_string = __('#hash#', 'wp_statistics'); } else { $ip_string = "{$items->ip}"; } if( $WP_Statistics->get_option('search_converted') ) { $this_search_engine = $WP_Statistics->Search_Engine_Info_By_Engine($items->engine); $words = $items->words; } else { $this_search_engine = $WP_Statistics->Search_Engine_Info($items->referred); $words = $WP_Statistics->Search_Engine_QueryString($items->referred); } echo "
"; echo "
".$words."
"; echo "
" . date(get_option('date_format'), strtotime($items->last_counter)) . " - {$ip_string}
"; echo "
"; echo "
"; echo "".wp_statistics_icons('dashicons-location-alt', 'map').""; if($WP_Statistics->get_option('geoip')) { echo "location . '.png')."' title='{$ISOCountryCode[$items->location]}' class='log-tools'/>"; } $this_search_engine = $WP_Statistics->Search_Engine_Info($items->referred); echo ""; 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 "
"; } }