get_country_codes(); //Get Custom Country $country_name = ''; $total_visitor = 0; if ( isset( $_REQUEST['country'] ) ) { if ( array_key_exists( $_REQUEST['country'], $ISOCountryCode ) ) { $country_name = $ISOCountryCode[ $_REQUEST['country'] ]; $total = $wpdb->get_var( "SELECT COUNT(`location`) AS `count` FROM `{$wpdb->prefix}statistics_visitor` WHERE `location` = '" . $_REQUEST['country'] . "'" ); } else { echo ''; } } ?>
| $i | "; echo "{$ISOCountryCode[$item->location]} | "; echo "$item->location ) ) . "'>" . number_format_i18n( $item->count ) . " | "; echo "
| " . __( 'Browser', 'wp-statistics' ) . " | "; if ( $WP_Statistics->get_option( 'geoip' ) ) { echo "" . __( 'Country', 'wp-statistics' ) . " | "; } if ( $WP_Statistics->get_option( 'geoip_city' ) ) { echo "" . __( 'City', 'wp-statistics' ) . " | "; } echo "" . __( 'Date', 'wp-statistics' ) . " | "; echo "" . __( 'IP', 'wp-statistics' ) . " | "; echo "" . __( 'Referrer', 'wp-statistics' ) . " | "; echo "
| ";
if ( array_search( strtolower( $items->agent ), wp_statistics_get_browser_list( 'key' ) ) !== false ) {
$agent = " | ";
$city = '';
if ( $WP_Statistics->get_option( 'geoip_city' ) ) {
if ( $geoip_reader != false ) {
try {
$reader = $geoip_reader->city( $items->ip );
$city = $reader->city->name;
} catch ( Exception $e ) {
$city = __( 'Unknown', 'wp-statistics' );
}
if ( ! $city ) {
$city = __( 'Unknown', 'wp-statistics' );
}
}
}
if ( $WP_Statistics->get_option( 'geoip' ) ) {
echo "";
echo " | ";
}
if ( $WP_Statistics->get_option( 'geoip_city' ) ) {
echo ""; echo $city; echo " | "; } echo ""; echo date_i18n( get_option( 'date_format' ), strtotime( $items->last_counter ) ); echo " | "; echo ""; if ( substr( $items->ip, 0, 6 ) == '#hash#' ) { $ip_string = __( '#hash#', 'wp-statistics' ); } else { $ip_string = " 'last-all-visitor', 'ip' => $items->ip ) ) . "'>{$items->ip}"; } echo $ip_string; echo " | "; echo ""; echo $WP_Statistics->get_referrer_link( $items->referred ); echo " | "; echo "