403Webshell
Server IP : 172.67.71.254  /  Your IP : 216.73.216.4
Web Server : nginx/1.27.1
System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : arabianexpress ( 1872)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v9321/rimskannur/public_html/wp-content/plugins/site-reviews/plugin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v9321/rimskannur/public_html/wp-content/plugins/site-reviews/plugin/Storage.php
<?php

namespace GeminiLabs\SiteReviews;

use GeminiLabs\SiteReviews\Helpers\Cast;

trait Storage
{
    /** @var Arguments */
    protected $storage;

    /**
     * @param mixed $value
     */
    public function append(string $property, $value, ?string $key = null): bool
    {
        $stored = $this->retrieve($property, []);
        if (!is_array($stored)) {
            return false;
        }
        if ($key) {
            $stored[$key] = $value;
        } else {
            $stored[] = $value;
        }
        $this->store($property, $stored);
        return true;
    }

    public function discard(string $property): void
    {
        unset($this->storage()->$property);
    }

    /**
     * @param mixed $fallback
     *
     * @return mixed
     */
    public function retrieve(string $property, $fallback = null)
    {
        return $this->storage()->get($property, $fallback);
    }

    /**
     * @param mixed $fallback
     *
     * @return mixed
     */
    public function retrieveAs(string $cast, string $property, $fallback = null)
    {
        return Cast::to($cast, $this->storage()->get($property, $fallback));
    }

    public function storage(): Arguments
    {
        if (!$this->storage instanceof Arguments) {
            $this->storage = new Arguments([]);
        }
        return $this->storage;
    }

    /**
     * @param mixed $value
     */
    public function store(string $property, $value): void
    {
        $this->storage()->set($property, $value);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit