-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathapi-stubs.php
More file actions
11 lines (10 loc) · 770 Bytes
/
api-stubs.php
File metadata and controls
11 lines (10 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
<?php
// This file contains dummy method in case the requirements are not met.
// Those functions don't do anything but at least there is no Fatal Error or so.
function geoip_detect2_get_info_from_ip($ip, $locales = null, $options = array()) { return new stdClass; }
function geoip_detect2_get_info_from_current_ip($locales = null, $options = array()) { return geoip_detect2_get_info_from_ip(''); }
function geoip_detect2_get_reader($locales = null, $options = array()) { return NULL; }
function geoip_detect2_get_current_source_description($source = null) { return ''; }
function geoip_detect2_get_client_ip() { return ''; }
function geoip_detect2_get_external_ip_adress($unfiltered = false) { return ''; }
function geoip_detect2_enqueue_javascript() { return false; }