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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/dokan/script/vendor/laravel/framework/src/Illuminate/View/Compilers/Concerns/   drwxrwxrwx
Free 13.09 GB of 57.97 GB (22.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CompilesComponents.php (4.87 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\View\Compilers\Concerns;

use 
Illuminate\Support\Str;
use 
Illuminate\View\ComponentAttributeBag;

trait 
CompilesComponents
{
    
/**
     * The component name hash stack.
     *
     * @var array
     */
    
protected static $componentHashStack = [];

    
/**
     * Compile the component statements into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    
protected function compileComponent($expression)
    {
        [
$component$alias$data] = strpos($expression',') !== false
                    
array_map('trim'explode(','trim($expression'()'), 3)) + ['''''']
                    : [
trim($expression'()'), ''''];

        
$component trim($component'\'"');

        
$hash = static::newComponentHash($component);

        if (
Str::contains($component, ['::class''\\'])) {
            return static::
compileClassComponentOpening($component$alias$data$hash);
        }

        return 
"<?php \$__env->startComponent{$expression}; ?>";
    }

    
/**
     * Get a new component hash for a component name.
     *
     * @param  string  $component
     * @return string
     */
    
public static function newComponentHash(string $component)
    {
        static::
$componentHashStack[] = $hash sha1($component);

        return 
$hash;
    }

    
/**
     * Compile a class component opening.
     *
     * @param  string  $component
     * @param  string  $alias
     * @param  string  $data
     * @param  string  $hash
     * @return string
     */
    
public static function compileClassComponentOpening(string $componentstring $aliasstring $datastring $hash)
    {
        return 
implode("\n", [
            
'<?php if (isset($component)) { $__componentOriginal'.$hash.' = $component; } ?>',
            
'<?php $component = $__env->getContainer()->make('.Str::finish($component'::class').', '.($data ?: '[]').'); ?>',
            
'<?php $component->withName('.$alias.'); ?>',
            
'<?php if ($component->shouldRender()): ?>',
            
'<?php $__env->startComponent($component->resolveView(), $component->data()); ?>',
        ]);
    }

    
/**
     * Compile the end-component statements into valid PHP.
     *
     * @return string
     */
    
protected function compileEndComponent()
    {
        
$hash array_pop(static::$componentHashStack);

        return 
implode("\n", [
            
'<?php if (isset($__componentOriginal'.$hash.')): ?>',
            
'<?php $component = $__componentOriginal'.$hash.'; ?>',
            
'<?php unset($__componentOriginal'.$hash.'); ?>',
            
'<?php endif; ?>',
            
'<?php echo $__env->renderComponent(); ?>',
        ]);
    }

    
/**
     * Compile the end-component statements into valid PHP.
     *
     * @return string
     */
    
public function compileEndComponentClass()
    {
        return 
$this->compileEndComponent()."\n".implode("\n", [
            
'<?php endif; ?>',
        ]);
    }

    
/**
     * Compile the slot statements into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    
protected function compileSlot($expression)
    {
        return 
"<?php \$__env->slot{$expression}; ?>";
    }

    
/**
     * Compile the end-slot statements into valid PHP.
     *
     * @return string
     */
    
protected function compileEndSlot()
    {
        return 
'<?php $__env->endSlot(); ?>';
    }

    
/**
     * Compile the component-first statements into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    
protected function compileComponentFirst($expression)
    {
        return 
"<?php \$__env->startComponentFirst{$expression}; ?>";
    }

    
/**
     * Compile the end-component-first statements into valid PHP.
     *
     * @return string
     */
    
protected function compileEndComponentFirst()
    {
        return 
$this->compileEndComponent();
    }

    
/**
     * Compile the prop statement into valid PHP.
     *
     * @param  string  $expression
     * @return string
     */
    
protected function compileProps($expression)
    {
        return 
"<?php \$attributes = \$attributes->exceptProps{$expression}; ?>
<?php foreach (array_filter(
{$expression}, 'is_string', ARRAY_FILTER_USE_KEY) as \$__key => \$__value) {
    \$\$__key = \$\$__key ?? \$__value;
} ?>
<?php \$__defined_vars = get_defined_vars(); ?>
<?php foreach (\$attributes as \$__key => \$__value) {
    if (array_key_exists(\$__key, \$__defined_vars)) unset(\$\$__key);
} ?>
<?php unset(\$__defined_vars); ?>"
;
    }

    
/**
     * Sanitize the given component attribute value.
     *
     * @param  mixed  $value
     * @return mixed
     */
    
public static function sanitizeComponentAttribute($value)
    {
        return 
is_string($value) ||
               (
is_object($value) && ! $value instanceof ComponentAttributeBag && method_exists($value'__toString'))
                        ? 
e($value)
                        : 
$value;
    }
}

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