[ Th3_Err0r Bypassed ]




Upload:

Command:

liwaavux@216.73.217.154: ~ $
<?php
/**
 * This file is part of vfsStream.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @package  org\bovigo\vfs
 */
namespace org\bovigo\vfs;
/**
 * Represents a quota for disk space.
 *
 * @since     1.1.0
 * @internal
 */
class Quota
{
    /**
     * unlimited quota
     */
    const UNLIMITED   = -1;
    /**
     * quota in bytes
     *
     * A value of -1 is treated as unlimited.
     *
     * @type  int
     */
    private $amount;

    /**
     * constructor
     *
     * @param  int  $amount  quota in bytes
     */
    public function __construct($amount)
    {
        $this->amount = $amount;
    }

    /**
     * create with unlimited space
     *
     * @return  Quota
     */
    public static function unlimited()
    {
        return new self(self::UNLIMITED);
    }

    /**
     * checks if a quota is set
     *
     * @return  bool
     */
    public function isLimited()
    {
        return self::UNLIMITED < $this->amount;
    }

    /**
     * checks if given used space exceeda quota limit
     *
     *
     * @param     int   $usedSpace
     * @return    int
     */
    public function spaceLeft($usedSpace)
    {
        if (self::UNLIMITED === $this->amount) {
            return $usedSpace;
        }

        if ($usedSpace >= $this->amount) {
            return 0;
        }

        $spaceLeft = $this->amount - $usedSpace;
        if (0 >= $spaceLeft) {
            return 0;
        }

        return $spaceLeft;
    }
}

Filemanager

Name Type Size Permission Actions
content Folder 0755
visitor Folder 0755
DotDirectory.php File 689 B 0644
Quota.php File 1.52 KB 0644
vfsStream.php File 15.28 KB 0644
vfsStreamAbstractContent.php File 8.52 KB 0644
vfsStreamBlock.php File 729 B 0644
vfsStreamContainer.php File 1.32 KB 0644
vfsStreamContainerIterator.php File 1.91 KB 0644
vfsStreamContent.php File 4.21 KB 0644
vfsStreamDirectory.php File 5.87 KB 0644
vfsStreamException.php File 365 B 0644
vfsStreamFile.php File 9.46 KB 0644
vfsStreamWrapper.php File 28.87 KB 0644