diff --git a/index.php b/index.php index 55ae75c..5dd95f5 100644 --- a/index.php +++ b/index.php @@ -71,118 +71,124 @@ $acceptLang = ['de','es','it','zh']; $lang = in_array($lang, $acceptLang) ? $lang : 'en'; require_once "lang/{$lang}.php"; -$xmr_in = strtoupper(htmlspecialchars($_GET["in"])); +if(isset($_GET["in"])) { + $xmr_in = strtoupper(htmlspecialchars($_GET["in"])); + + if($xmr_in == 'USD'){ + $xmr_in_fiat = number_format($USD, 2); + }elseif($xmr_in == 'GBP'){ + $xmr_in_fiat = number_format($GBP, 2); + }elseif($xmr_in == 'CHF'){ + $xmr_in_fiat = number_format($CHF, 2); + }elseif($xmr_in == 'RUB'){ + $xmr_in_fiat = number_format($RUB, 2); + }elseif($xmr_in == 'CNY'){ + $xmr_in_fiat = number_format($CNY, 2); + }elseif($xmr_in == 'JPY'){ + $xmr_in_fiat = number_format($JPY, 2); + }elseif($xmr_in == 'AUD'){ + $xmr_in_fiat = number_format($AUD, 2); + }elseif($xmr_in == 'BMD'){ + $xmr_in_fiat = number_format($BMD, 2); + }elseif($xmr_in == 'CAD'){ + $xmr_in_fiat = number_format($CAD, 2); + }elseif($xmr_in == 'HKD'){ + $xmr_in_fiat = number_format($HKD, 2); + }elseif($xmr_in == 'NZD'){ + $xmr_in_fiat = number_format($NZD, 2); + }elseif($xmr_in == 'SGD'){ + $xmr_in_fiat = number_format($SGD, 2); + }elseif($xmr_in == 'TWD'){ + $xmr_in_fiat = number_format($TWD, 2); + }elseif($xmr_in == 'CZK'){ + $xmr_in_fiat = number_format($CZK, 2); + }elseif($xmr_in == 'CLP'){ + $xmr_in_fiat = number_format($CLP, 2); + }elseif($xmr_in == 'DKK'){ + $xmr_in_fiat = number_format($DKK, 2); + }elseif($xmr_in == 'NOK'){ + $xmr_in_fiat = number_format($NOK, 2); + }elseif($xmr_in == 'PLN'){ + $xmr_in_fiat = number_format($PLN, 2); + }elseif($xmr_in == 'SEK'){ + $xmr_in_fiat = number_format($SEK, 2); + }elseif($xmr_in == 'TRY'){ + $xmr_in_fiat = number_format($TRY, 2); + }elseif($xmr_in == 'UAH'){ + $xmr_in_fiat = number_format($UAH, 2); + }elseif($xmr_in == 'ARS'){ + $xmr_in_fiat = number_format($ARS, 2); + }elseif($xmr_in == 'PHP'){ + $xmr_in_fiat = number_format($PHP, 2); + }elseif($xmr_in == 'AED'){ + $xmr_in_fiat = number_format($AED, 2); + }elseif($xmr_in == 'BRL'){ + $xmr_in_fiat = number_format($BRL, 2); + }elseif($xmr_in == 'KRW'){ + $xmr_in_fiat = number_format($KRW, 2); + }elseif($xmr_in == 'MYR'){ + $xmr_in_fiat = number_format($MYR, 2); + }elseif($xmr_in == 'SAR'){ + $xmr_in_fiat = number_format($SAR, 2); + }elseif($xmr_in == 'VEF'){ + $xmr_in_fiat = number_format($VEF, 2); + }elseif($xmr_in == 'VND'){ + $xmr_in_fiat = number_format($VND, 2); + }elseif($xmr_in == 'ZAR'){ + $xmr_in_fiat = number_format($ZAR, 2); + }elseif($xmr_in == 'BDT'){ + $xmr_in_fiat = number_format($BDT, 2); + }elseif($xmr_in == 'HUF'){ + $xmr_in_fiat = number_format($HUF, 2); + }elseif($xmr_in == 'ILS'){ + $xmr_in_fiat = number_format($ILS, 2); + }elseif($xmr_in == 'MMK'){ + $xmr_in_fiat = number_format($MMK, 2); + }elseif($xmr_in == 'NGN'){ + $xmr_in_fiat = number_format($NGN, 2); + }elseif($xmr_in == 'THB'){ + $xmr_in_fiat = number_format($THB, 2); + }elseif($xmr_in == 'BHD'){ + $xmr_in_fiat = number_format($BHD, 2); + }elseif($xmr_in == 'KWD'){ + $xmr_in_fiat = number_format($KWD, 2); + }elseif($xmr_in == 'PKR'){ + $xmr_in_fiat = number_format($PKR, 2); + }elseif($xmr_in == 'LKR'){ + $xmr_in_fiat = number_format($LKR, 2); + }elseif($xmr_in == 'INR'){ + $xmr_in_fiat = number_format($INR, 2); + }elseif($xmr_in == 'IDR'){ + $xmr_in_fiat = number_format($IDR, 2); + }elseif($xmr_in == 'BTC'){ + $xmr_in_fiat = number_format($BTC, 8); + }elseif($xmr_in == 'LTC'){ + $xmr_in_fiat = number_format($LTC, 8); + }elseif($xmr_in == 'ETH'){ + $xmr_in_fiat = number_format($ETH, 8); + }elseif($xmr_in == 'XAG'){ + $xmr_in_fiat = number_format($XAG, 6); + }elseif($xmr_in == 'XAU'){ + $xmr_in_fiat = number_format($XAU, 6); + }else{ + $xmr_in_fiat = number_format($EUR, 2); + } -if($xmr_in == 'USD'){ - $xmr_in_fiat = number_format($USD, 2); -}elseif($xmr_in == 'GBP'){ - $xmr_in_fiat = number_format($GBP, 2); -}elseif($xmr_in == 'CHF'){ - $xmr_in_fiat = number_format($CHF, 2); -}elseif($xmr_in == 'RUB'){ - $xmr_in_fiat = number_format($RUB, 2); -}elseif($xmr_in == 'CNY'){ - $xmr_in_fiat = number_format($CNY, 2); -}elseif($xmr_in == 'JPY'){ - $xmr_in_fiat = number_format($JPY, 2); -}elseif($xmr_in == 'AUD'){ - $xmr_in_fiat = number_format($AUD, 2); -}elseif($xmr_in == 'BMD'){ - $xmr_in_fiat = number_format($BMD, 2); -}elseif($xmr_in == 'CAD'){ - $xmr_in_fiat = number_format($CAD, 2); -}elseif($xmr_in == 'HKD'){ - $xmr_in_fiat = number_format($HKD, 2); -}elseif($xmr_in == 'NZD'){ - $xmr_in_fiat = number_format($NZD, 2); -}elseif($xmr_in == 'SGD'){ - $xmr_in_fiat = number_format($SGD, 2); -}elseif($xmr_in == 'TWD'){ - $xmr_in_fiat = number_format($TWD, 2); -}elseif($xmr_in == 'CZK'){ - $xmr_in_fiat = number_format($CZK, 2); -}elseif($xmr_in == 'DKK'){ - $xmr_in_fiat = number_format($DKK, 2); -}elseif($xmr_in == 'NOK'){ - $xmr_in_fiat = number_format($NOK, 2); -}elseif($xmr_in == 'PLN'){ - $xmr_in_fiat = number_format($PLN, 2); -}elseif($xmr_in == 'SEK'){ - $xmr_in_fiat = number_format($SEK, 2); -}elseif($xmr_in == 'TRY'){ - $xmr_in_fiat = number_format($TRY, 2); -}elseif($xmr_in == 'UAH'){ - $xmr_in_fiat = number_format($UAH, 2); -}elseif($xmr_in == 'ARS'){ - $xmr_in_fiat = number_format($ARS, 2); -}elseif($xmr_in == 'PHP'){ - $xmr_in_fiat = number_format($PHP, 2); -}elseif($xmr_in == 'AED'){ - $xmr_in_fiat = number_format($AED, 2); -}elseif($xmr_in == 'BRL'){ - $xmr_in_fiat = number_format($BRL, 2); -}elseif($xmr_in == 'KRW'){ - $xmr_in_fiat = number_format($KRW, 2); -}elseif($xmr_in == 'MYR'){ - $xmr_in_fiat = number_format($MYR, 2); -}elseif($xmr_in == 'SAR'){ - $xmr_in_fiat = number_format($SAR, 2); -}elseif($xmr_in == 'VEF'){ - $xmr_in_fiat = number_format($VEF, 2); -}elseif($xmr_in == 'VND'){ - $xmr_in_fiat = number_format($VND, 2); -}elseif($xmr_in == 'ZAR'){ - $xmr_in_fiat = number_format($ZAR, 2); -}elseif($xmr_in == 'BDT'){ - $xmr_in_fiat = number_format($BDT, 2); -}elseif($xmr_in == 'HUF'){ - $xmr_in_fiat = number_format($HUF, 2); -}elseif($xmr_in == 'ILS'){ - $xmr_in_fiat = number_format($ILS, 2); -}elseif($xmr_in == 'MMK'){ - $xmr_in_fiat = number_format($MMK, 2); -}elseif($xmr_in == 'NGN'){ - $xmr_in_fiat = number_format($NGN, 2); -}elseif($xmr_in == 'THB'){ - $xmr_in_fiat = number_format($THB, 2); -}elseif($xmr_in == 'BHD'){ - $xmr_in_fiat = number_format($BHD, 2); -}elseif($xmr_in == 'KWD'){ - $xmr_in_fiat = number_format($KWD, 2); -}elseif($xmr_in == 'PKR'){ - $xmr_in_fiat = number_format($PKR, 2); -}elseif($xmr_in == 'LKR'){ - $xmr_in_fiat = number_format($LKR, 2); -}elseif($xmr_in == 'INR'){ - $xmr_in_fiat = number_format($INR, 2); -}elseif($xmr_in == 'IDR'){ - $xmr_in_fiat = number_format($IDR, 2); -}elseif($xmr_in == 'BTC'){ - $xmr_in_fiat = number_format($BTC, 8); -}elseif($xmr_in == 'LTC'){ - $xmr_in_fiat = number_format($LTC, 8); -}elseif($xmr_in == 'ETH'){ - $xmr_in_fiat = number_format($ETH, 8); -}elseif($xmr_in == 'XAG'){ - $xmr_in_fiat = number_format($XAG, 6); -}elseif($xmr_in == 'XAU'){ - $xmr_in_fiat = number_format($XAU, 6); }else{ $xmr_in_fiat = number_format($EUR, 2); } $xmr_in_fiat = strtr($xmr_in_fiat, ",", " "); - ?>
- +