summaryrefslogtreecommitdiff
path: root/ifconfig/ifconfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'ifconfig/ifconfig.php')
-rw-r--r--ifconfig/ifconfig.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/ifconfig/ifconfig.php b/ifconfig/ifconfig.php
index 215f0df..cf1dc8f 100644
--- a/ifconfig/ifconfig.php
+++ b/ifconfig/ifconfig.php
@@ -19,10 +19,13 @@ class Ifconfig {
}
public function getAllGeoipRecords(){
- return geoip_record_by_name( $this->ip );
+ $tmp = geoip_record_by_name( $this->ip );
+ unset($tmp['dma_code']);
+ unset($tmp['area_code']);
+ return $tmp;
}
- public function encodeInJson($value){
+ public function encodeJson($value){
if( empty($value) || is_null($value) || $value == "" )
return json_encode($output = array( "status" => "failure" ));