From 642537c441ec3a9d9fd1a227473e87044fc560c6 Mon Sep 17 00:00:00 2001 From: Luke <17616949+nice42q@users.noreply.github.com> Date: Wed, 15 May 2024 08:21:02 +0200 Subject: [PATCH] Add files via upload --- index.php | 1097 ++++++++++++++++++++++++++++------------------------- 1 file changed, 582 insertions(+), 515 deletions(-) diff --git a/index.php b/index.php index f581e03..d4e4af6 100644 --- a/index.php +++ b/index.php @@ -4,69 +4,125 @@ header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); +$array = array("EUR", + "BTC", + "USD", + "GBP", + "CHF", + "RUB", + "CNY", + "JPY", + "IDR", + "KRW", + "TRY", + "AUD", + "BMD", + "CAD", + "HKD", + "NZD", + "SGD", + "TWD", + "ILS", + "PLN", + "ZAR", + "CZK", + "DKK", + "NOK", + "SEK", + "ARS", + "CLP", + "PHP", + "MXN", + "BHD", + "KWD", + "BRL", + "MYR", + "VEF", + "UAH", + "VND", + "BDT", + "HUF", + "MMK", + "NGN", + "THB", + "AED", + "SAR", + "PKR", + "LKR", + "INR", + "BTC", + "LTC", + "ETH", + "XAG", + "XAU"); + include('coingecko.php'); // Holt die API Daten -$api = json_decode(file_get_contents('coingecko.json')); +$api_cg = json_decode(file_get_contents('coingecko.json')); // Holt die Zeit der letzten Abfrage -$time = date("H:i:s", $api->time); +$time_cg = date("H:i:s", $api_cg->time); +$time = $time_cg; // 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; -$CLP = $api->clp; -$CZK = $api->czk; -$DKK = $api->dkk; -$MXN = $api->mxn; +$BTC = $api_cg->btc->lastValue; +$EUR = $api_cg->eur->lastValue; +$USD = $api_cg->usd->lastValue; +$CHF = $api_cg->chf->lastValue; +$LTC = $api_cg->ltc->lastValue; +$CAD = $api_cg->cad->lastValue; +$AUD = $api_cg->aud->lastValue; +$HKD = $api_cg->hkd->lastValue; +$SGD = $api_cg->sgd->lastValue; +$GBP = $api_cg->gbp->lastValue; +$RUB = $api_cg->rub->lastValue; +$ZAR = $api_cg->zar->lastValue; +$TRY = $api_cg->try->lastValue; +$JPY = $api_cg->jpy->lastValue; +$PLN = $api_cg->pln->lastValue; +$INR = $api_cg->inr->lastValue; +$AED = $api_cg->aed->lastValue; +$ETH = $api_cg->eth->lastValue; +$UAH = $api_cg->uah->lastValue; +$KRW = $api_cg->krw->lastValue; +$BRL = $api_cg->brl->lastValue; +$MYR = $api_cg->myr->lastValue; +$CNY = $api_cg->cny->lastValue; +$XAU = $api_cg->xau->lastValue; +$XAG = $api_cg->xag->lastValue; +$VND = $api_cg->vnd->lastValue; +$VEF = $api_cg->vef->lastValue; +$THB = $api_cg->thb->lastValue; +$SAR = $api_cg->sar->lastValue; +$SEK = $api_cg->sek->lastValue; +$PKR = $api_cg->pkr->lastValue; +$NOK = $api_cg->nok->lastValue; +$LKR = $api_cg->lkr->lastValue; +$MMK = $api_cg->mmk->lastValue; +$HUF = $api_cg->huf->lastValue; +$ILS = $api_cg->ils->lastValue; +$KWD = $api_cg->kwd->lastValue; +$NGN = $api_cg->ngn->lastValue; +$NZD = $api_cg->nzd->lastValue; +$PHP = $api_cg->php->lastValue; +$IDR = $api_cg->idr->lastValue; +$TWD = $api_cg->twd->lastValue; +$ARS = $api_cg->ars->lastValue; +$BDT = $api_cg->bdt->lastValue; +$BHD = $api_cg->bhd->lastValue; +$BMD = $api_cg->bmd->lastValue; +$CLP = $api_cg->clp->lastValue; +$CZK = $api_cg->czk->lastValue; +$DKK = $api_cg->dkk->lastValue; +$MXN = $api_cg->mxn->lastValue; // Lädt die Sprachdatei, nach der Sprache die im Browser eingestellt wurde -$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); +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); @@ -191,8 +247,10 @@ $xmr_in_fiat = strtr($xmr_in_fiat, ",", " "); - - + + + + <?php echo $page_title; ?> @@ -206,27 +264,26 @@ $xmr_in_fiat = strtr($xmr_in_fiat, ",", " "); + - + - - - + + + - + - - - + + +
-
-
- -
+
+

 XMR  

- - | - | - | - | - | - | - | - | - |
- - | - | - | - | - | - | - | - | - |
- - | - | - | - | - | - | - | - | - |
- - | - | - | - | - | - | - | - | - |
- - | - | - | - | - | - | - | - | - | +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

- - + + +
@@ -334,408 +388,421 @@ $xmr_in_fiat = strtr($xmr_in_fiat, ",", " ");
- - +

- +
- +
-
- - - - + } + + + - +