Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.8.9
- * @ Author : DeZender
- * @ Release on : 10.05.2019
- * @ Official site : http://DeZender.Net
- *
- */
- namespace ads;
- class adsPrice
- {
- static public $currencyOut = ADS_MAIN_CUR;
- static public function format($price, $currency)
- {
- $price = self::value($price, $currency);
- return self::ads_price_out_current($price, self::$currencyOut);
- }
- static public function value($price, $currency)
- {
- if ($currency !== self::$currencyOut) {
- $price = self::ads_price_convert_currents($price, $currency, self::$currencyOut);
- }
- return $price;
- }
- static public function ads_price_out_current($price, $cur = '')
- {
- if ($cur == '') {
- $cur = (defined('ADS_CUR') ? ADS_CUR : 'USD');
- }
- $foo = ads_get_currency_symbol($cur);
- $price = number_format((double) $price, 2, '.', ',');
- ..................................................................................
- ....................................................
- ..................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement