SHARE
TWEET

Untitled

a guest Jul 12th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version         :   4.0.8.9
  8. * @ Author          :   DeZender
  9. * @ Release on      :   10.05.2019
  10. * @ Official site   :   http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace ads;
  15.  
  16. class adsPrice
  17. {
  18.     static public $currencyOut = ADS_MAIN_CUR;
  19.  
  20.     static public function format($price, $currency)
  21.     {
  22.         $price = self::value($price, $currency);
  23.         return self::ads_price_out_current($price, self::$currencyOut);
  24.     }
  25.  
  26.     static public function value($price, $currency)
  27.     {
  28.         if ($currency !== self::$currencyOut) {
  29.             $price = self::ads_price_convert_currents($price, $currency, self::$currencyOut);
  30.         }
  31.  
  32.         return $price;
  33.     }
  34.  
  35.     static public function ads_price_out_current($price, $cur = '')
  36.     {
  37.         if ($cur == '') {
  38.             $cur = (defined('ADS_CUR') ? ADS_CUR : 'USD');
  39.         }
  40.  
  41.         $foo = ads_get_currency_symbol($cur);
  42.         $price = number_format((double) $price, 2, '.', ',');
  43. ..................................................................................
  44. ....................................................
  45. ..................
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top