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