!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/symfony/polyfill-intl-icu/DateFormat/   drwxr-xr-x
Free 28.46 GB of 117.98 GB (24.12%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Polyfill\Intl\Icu\DateFormat;

/**
 * Parser and formatter for month format.
 *
 * @author Igor Wiedler <igor@wiedler.ch>
 *
 * @internal
 */
class MonthTransformer extends Transformer
{
    protected static 
$months = [
        
'January',
        
'February',
        
'March',
        
'April',
        
'May',
        
'June',
        
'July',
        
'August',
        
'September',
        
'October',
        
'November',
        
'December',
    ];

    
/**
     * Short months names (first 3 letters).
     */
    
protected static $shortMonths = [];

    
/**
     * Flipped $months array, $name => $index.
     */
    
protected static $flippedMonths = [];

    
/**
     * Flipped $shortMonths array, $name => $index.
     */
    
protected static $flippedShortMonths = [];

    public function 
__construct()
    {
        if (
=== \count(self::$shortMonths)) {
            
self::$shortMonths array_map(function ($month) {
                return 
substr($month03);
            }, 
self::$months);

            
self::$flippedMonths array_flip(self::$months);
            
self::$flippedShortMonths array_flip(self::$shortMonths);
        }
    }

    public function 
format(\DateTime $dateTimeint $length): string
    
{
        
$matchLengthMap = [
            
=> 'n',
            
=> 'm',
            
=> 'M',
            
=> 'F',
        ];

        if (isset(
$matchLengthMap[$length])) {
            return 
$dateTime->format($matchLengthMap[$length]);
        }

        if (
=== $length) {
            return 
substr($dateTime->format('M'), 01);
        }

        return 
$this->padLeft($dateTime->format('m'), $length);
    }

    public function 
getReverseMatchingRegExp(int $length): string
    
{
        switch (
$length) {
            case 
1:
                
$regExp '\d{1,2}';
                break;
            case 
3:
                
$regExp implode('|'self::$shortMonths);
                break;
            case 
4:
                
$regExp implode('|'self::$months);
                break;
            case 
5:
                
$regExp '[JFMASOND]';
                break;
            default:
                
$regExp '\d{1,'.$length.'}';
                break;
        }

        return 
$regExp;
    }

    public function 
extractDateOptions(string $matchedint $length): array
    {
        if (!
is_numeric($matched)) {
            if (
=== $length) {
                
$matched self::$flippedShortMonths[$matched] + 1;
            } elseif (
=== $length) {
                
$matched self::$flippedMonths[$matched] + 1;
            } elseif (
=== $length) {
                
// IntlDateFormatter::parse() always returns false for MMMMM or LLLLL
                
$matched false;
            }
        } else {
            
$matched = (int) $matched;
        }

        return [
            
'month' => $matched,
        ];
    }
}

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