getCurrentSource(); $is_ajax_enabled = !!get_option('geoip-detect-ajax_enabled'); // @see https://stackoverflow.com/a/35207172 function var_export_short($data, $return=true) { $dump = var_export($data, true); $dump = preg_replace('#(?:\A|\n)([ ]*)array \(#i', '[', $dump); // Starts $dump = preg_replace('#\n([ ]*)\),#', "\n$1],", $dump); // Ends $dump = preg_replace('#=> \[\n\s+\],\n#', "=> [],\n", $dump); // Empties if (gettype($data) == 'object') { // Deal with object states $dump = str_replace('__set_state(array(', '__set_state([', $dump); $dump = preg_replace('#\)\)$#', "])", $dump); } else { $dump = preg_replace('#\)$#', "]", $dump); } $dump = preg_replace('#,[\n\s]*]#m', "\n]", $dump); if ($return===true) { return $dump; } else { echo $dump; } } ?>
Selected data source: %s', 'geoip-detect'), geoip_detect2_get_current_source_description() ); ?>
getStatusInformationHTML(); ?>
\$record = geoip_detect2_get_info_from_ip('" . esc_html($request_ip) . "', " . var_export_short($request_locales, true) . ($request_skipCache ? ', [ \'skipCache\' => TRUE ]' : '') .");"); ?>
= sprintf(__('See %s for more information.', 'geoip-detect'), 'API: PHP'); ?>
= sprintf(__('You can use the following shortcodes.', 'geoip-detect')); ?>
= sprintf(__('See %s for more information.', 'geoip-detect'), 'API: Shortcodes'); ?>
= sprintf(__('AJAX and JS must be enabled in the preferences!', 'geoip-detect')); ?>
= sprintf(__('See %s for more information.', 'geoip-detect'), 'API: AJAX'); ?>
extra->cached) : ?>
extra->cached));?>
extra->error)); ?>
= esc_html($access) ?> |
= esc_html($value);?> |
= __('Show only the most common properties', 'geoip-detect') ?>
= __('Show all available properties', 'geoip-detect') ?>
= __('(More properties might be available for other IPs and with other data sources.)', 'geoip-detect'); ?>
http://dev.maxmind.com/geoip/geoip2/web-services/');?>