403Webshell
Server IP : 104.21.41.186  /  Your IP : 216.73.216.182
Web Server : LiteSpeed
System : Linux pbn-16.isgood.host 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gamenohushop ( 1160)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/local/lsws/gamenohu.shop/html/wp-content/plugins/mlink-plugin/includes/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/lsws/gamenohu.shop/html/wp-content/plugins/mlink-plugin/includes/helpers/cache.php
<?php

namespace GwdMlinkPlugin\Helpers;

class Cache
{

    public function get($key)
    {
        $filePath = $this->getKeyPath($key);
        if (file_exists($filePath)) {
            return file_get_contents($filePath);
        }

        return false;
    }

    public function set($key, $data)
    {
        $filePath = $this->getKeyPath($key);

        if (!file_exists(dirname($filePath))) {
            mkdir(dirname($filePath), 0755, true);
        }

        return file_put_contents($filePath, json_encode($data));
    }

    private function getKeyPath($key)
    {
        $cachePath = GWD_MLINK_DIR . '/includes/cache/';
        return $cachePath . $key . '.json';
    }

    public function delete($key)
    {
        $filePath = $this->getKeyPath($key);

        return unlink($filePath);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit