get_country_codes(); $_var = 'agent'; $_get = '%'; $title = 'All'; if ( array_key_exists( 'agent', $_GET ) ) { $_var = 'agent'; $_get = '%' . $_GET['agent'] . '%'; $title = htmlentities( $_GET['agent'], ENT_QUOTES ); } if ( array_key_exists( 'ip', $_GET ) ) { $_var = 'ip'; $_get = '%' . $_GET['ip'] . '%'; $title = htmlentities( $_GET['ip'], ENT_QUOTES ); } $_get = esc_attr( $_get ); $total_visitor = $wpdb->get_var( "SELECT COUNT(*) FROM `{$wpdb->prefix}statistics_visitor`" ); if ( $_get != '%' ) { $total = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM `{$wpdb->prefix}statistics_visitor` WHERE `{$_var}` LIKE %s", $_get ) ); } else { $total = $total_visitor; } ?>

getEntryStart(); $end = $Pagination->getEntryEnd(); // Retrieve MySQL data if ( $_get != '%' ) { $result = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM `{$wpdb->prefix}statistics_visitor` WHERE `{$_var}` LIKE %s ORDER BY `{$wpdb->prefix}statistics_visitor`.`ID` DESC LIMIT {$start}, {$end}", $_get ) ); } else { $result = $wpdb->get_results( "SELECT * FROM `{$wpdb->prefix}statistics_visitor` ORDER BY `{$wpdb->prefix}statistics_visitor`.`ID` DESC LIMIT {$start}, {$end}" ); } // Check to see if User Agent logging is enabled. $DisplayUA = $WP_Statistics->get_option( "store_ua" ); 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 = "ip}'>{$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}'>{$agent}"; echo $WP_Statistics->get_referrer_link( $items->referred ); echo "
"; echo "
"; } echo "
"; ?>
display(); ?>

getCurrentPage(), $Pagination->getTotalPages() ); ?>