!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/vendor/fakerphp/faker/src/Faker/Calculator/   drwxrwxr-x
Free 12.96 GB of 57.97 GB (22.35%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Isbn.php (1.5 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Faker\Calculator;

/**
 * Utility class for validating ISBN-10
 */
class Isbn
{
    
/**
     * @var string ISBN-10 validation pattern
     */
    
public const PATTERN '/^\d{9}[0-9X]$/';

    
/**
     * ISBN-10 check digit
     *
     * @see http://en.wikipedia.org/wiki/International_Standard_Book_Number#ISBN-10_check_digits
     *
     * @param string $input ISBN without check-digit
     *
     * @throws \LengthException When wrong input length passed
     */
    
public static function checksum(string $input): string
    
{
        
// We're calculating check digit for ISBN-10
        // so, the length of the input should be 9
        
$length 9;

        if (
strlen($input) !== $length) {
            throw new 
\LengthException(sprintf('Input length should be equal to %d'$length));
        }

        
$digits str_split($input);
        
array_walk(
            
$digits,
            static function (&
$digit$position) {
                
$digit = (10 $position) * $digit;
            }
        );
        
$result = (11 array_sum($digits) % 11) % 11;

        
// 10 is replaced by X
        
return ($result 10) ? (string) $result 'X';
    }

    
/**
     * Checks whether the provided number is a valid ISBN-10 number
     *
     * @param string $isbn ISBN to check
     */
    
public static function isValid(string $isbn): bool
    
{
        if (!
preg_match(self::PATTERN$isbn)) {
            return 
false;
        }

        return 
self::checksum(substr($isbn0, -1)) === substr($isbn, -1);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.005 ]--