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

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/php-parallel-lint/php-parallel-lint/src/Process/   drwxr-xr-x
Free 714.28 GB of 879.6 GB (81.21%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SkipLintProcess.php (2.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace JakubOnderka\PhpParallelLint\Process;

use JakubOnderka\PhpParallelLint\RunTimeException;

class SkipLintProcess extends PhpProcess
{
    /** @var array */
    private $skipped = array();

    /** @var bool */
    private $done = false;

    /** @var string */
    private $endLastChunk = '';

    /**
     * @param PhpExecutable $phpExecutable
     * @param array $filesToCheck
     * @throws RunTimeException
     */
    public function __construct(PhpExecutable $phpExecutable, array $filesToCheck)
    {
        $scriptPath = __DIR__ . '/../../bin/skip-linting.php';
        $script = file_get_contents($scriptPath);

        if (!$script) {
            throw new RunTimeException("skip-linting.php script not found in '$scriptPath'.");
        }

        $script = str_replace('<?php', '', $script);

        $parameters = array('-d', 'display_errors=stderr', '-r', $script);
        parent::__construct($phpExecutable, $parameters, implode(PHP_EOL, $filesToCheck));
    }

    /**
     * @throws RunTimeException
     */
    public function getChunk()
    {
        if (!$this->isFinished()) {
            $this->processLines(fread($this->stdout, 8192));
        }
    }

    /**
     * @return bool
     * @throws \JakubOnderka\PhpParallelLint\RunTimeException
     */
    public function isFinished()
    {
        $isFinished = parent::isFinished();
        if ($isFinished && !$this->done) {
            $this->done = true;
            $output = $this->getOutput();
            $this->processLines($output);
        }

        return $isFinished;
    }

    /**
     * @param string $file
     * @return bool|null
     */
    public function isSkipped($file)
    {
        if (isset($this->skipped[$file])) {
            return $this->skipped[$file];
        }

        return null;
    }

    /**
     * @param string $content
     */
    private function processLines($content)
    {
        if (!empty($content)) {
            $lines = explode(PHP_EOL, $this->endLastChunk . $content);
            $this->endLastChunk = array_pop($lines);
            foreach ($lines as $line) {
                $parts = explode(';', $line);
                list($file, $status) = $parts;
                $this->skipped[$file] = $status === '1' ? true : 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.0098 ]--