time); // Holt die einzelnen Werte für die Berechnung $BTC = $api->btc; $EUR = $api->eur; $USD = $api->usd; $CHF = $api->chf; $LTC = $api->ltc; $CAD = $api->cad; $AUD = $api->aud; $HKD = $api->hkd; $SGD = $api->sgd; $GBP = $api->gbp; $RUB = $api->rub; $ZAR = $api->zar; $TRY = $api->try; $JPY = $api->jpy; $PLN = $api->pln; $INR = $api->inr; $AED = $api->aed; $ETH = $api->eth; $UAH = $api->uah; $KRW = $api->krw; $BRL = $api->brl; $MYR = $api->myr; $CNY = $api->cny; $XAU = $api->xau; $XAG = $api->xag; $XDR = $api->xdr; $VND = $api->vnd; $VEF = $api->vef; $THB = $api->thb; $SAR = $api->sar; $SEK = $api->sek; $PKR = $api->pkr; $NOK = $api->nok; $LKR = $api->lkr; $MMK = $api->mmk; $HUF = $api->huf; $ILS = $api->ils; $KWD = $api->kwd; $NGN = $api->ngn; $NZD = $api->nzd; $PHP = $api->php; $IDR = $api->idr; $TWD = $api->twd; $ARS = $api->ars; $BDT = $api->bdt; $BHD = $api->bhd; $BMD = $api->bmd; $CCP = $api->ccp; $CZK = $api->czk; $DKK = $api->dkk; // Lädt die Sprachdatei, nach der Sprache die im Browser eingestellt wurde $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); $acceptLang = ['de','es','it','zh']; $lang = in_array($lang, $acceptLang) ? $lang : 'en'; require_once "lang/{$lang}.php"; $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 == '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, ",", " "); ?>