Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/app/bundles/CoreBundle/IpLookup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/app/bundles/CoreBundle/IpLookup/TelizeLookup.php
<?php

namespace Mautic\CoreBundle\IpLookup;

class TelizeLookup extends AbstractRemoteDataLookup
{
    public string $offset         = '';
    public string $area_code      = '';
    public string $dma_code       = '';
    public string $country_code3  = '';
    public string $continent_code = '';
    public string $country_code   = '';
    public string $region_code    = '';

    public function getAttribution(): string
    {
        return '<a href="https://market.mashape.com/fcambus/telize/" target="_blank">Telize</a> is a paid lookup service.';
    }

    protected function getUrl(): string
    {
        return "https://telize-v1.p.mashape.com/geoip/{$this->ip}";
    }

    protected function getHeaders(): array
    {
        return [
            'X-Mashape-Key' => $this->auth,
            'Accept'        => 'application/json',
        ];
    }

    /**
     * Populates properties with obtained data from the service.
     *
     * @param mixed $response Response from the service
     */
    protected function parseResponse($response)
    {
        $data = json_decode($response);

        if ($data) {
            foreach ($data as $key => $value) {
                if ('postal_code' == $key) {
                    $key = 'zipcode';
                }

                $this->$key = $value;
            }
        }
    }
}

Spamworldpro Mini