uawdijnntqw1x1x1
IP : 18.224.70.193
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
bitrix
/
modules
/
blog
/
..
/
conversion
/
lib
/
utils.php
/
/
<?php namespace Bitrix\Conversion; use Bitrix\Main\Loader; use Bitrix\Currency\CurrencyLangTable; final class Utils { static public function convertToBaseCurrency($value, $currency) { static $module, $baseCurrency; if (! $module) { $module = Loader::includeModule('currency'); $baseCurrency = Config::getBaseCurrency(); } if ($module && $currency != $baseCurrency) { $value = \CCurrencyRates::ConvertCurrency($value, $currency, $baseCurrency); } return $value; } static public function formatToBaseCurrency($value, $format = null) { static $module, $baseCurrency; if (! $module) { $module = Loader::includeModule('currency'); $baseCurrency = Config::getBaseCurrency(); } if ($module) { $value = \CCurrencyLang::CurrencyFormat($value, $baseCurrency); } return $value; } /** @deprecated */ static public function getBaseCurrencyUnit() // TODO remove from sale { static $unit; if (! $unit) { $unit = Config::getBaseCurrency(); if (LANGUAGE_ID == 'ru' && Loader::includeModule('currency')) { switch ($unit) { case 'RUB': case 'BYR': case 'UAH': if ($row = CurrencyLangTable::getByPrimary(array('CURRENCY' => $unit, 'LID' => LANGUAGE_ID))->fetch()) { $unit = trim(str_replace('#', '', $row['FORMAT_STRING'])); } break; } } } return $unit; } }
/var/www/axolotl/data/www/yar.axolotls.ru/bitrix/modules/blog/../conversion/lib/utils.php