diff --git a/config.dist.php b/config.dist.php new file mode 100644 index 0000000..96a24dc --- /dev/null +++ b/config.dist.php @@ -0,0 +1,5 @@ + true, // Show the "Servers Guru" attribution link in the info text + 'attribution' => '' // Custom attribution HTML to show in the info text +]; \ No newline at end of file diff --git a/index.php b/index.php index 144d33c..0e2e79c 100644 --- a/index.php +++ b/index.php @@ -44,6 +44,16 @@ $xmr_in = isset($_GET["in"]) ? strtoupper(htmlspecialchars($_GET["in"])) : 'EUR' $xmr_in_fiat = number_format($exchangeRates[$xmr_in], $xmr_in == 'BTC' || $xmr_in == 'LTC' || $xmr_in == 'ETH' || $xmr_in == 'XAG' || $xmr_in == 'XAU' ? 8 : 2); $xmr_in_fiat = strtr($xmr_in_fiat, ",", " "); + +// Configuration file + +$config = []; +if (file_exists('config.php')) { + $config = require 'config.php'; +} + +$display_servers_guru = isset($config['servers_guru']) && $config['servers_guru'] === true; +$attribution = isset($config['attribution']) ? $config['attribution'] : ''; ?> @@ -151,7 +161,11 @@ $xmr_in_fiat = strtr($xmr_in_fiat, ",", " ");
- +
diff --git a/lang/de.php b/lang/de.php index 76e9382..e1f57cf 100644 --- a/lang/de.php +++ b/lang/de.php @@ -11,7 +11,8 @@ $title_h1 = "umrechnung nach"; // ↓ XMR [...] ↓ $moneroooTable = "Service bereitgestellt von Moner.ooo, Daten bereitgestellt von CoinGecko"; // Info Text -$info = "Die Werte auf dieser Webseite dienen nur der Information. Der Wert ist nicht garantiert und wird ohne vorherige Ankündigung geändert. Die Werte werden alle 5 Sekunden aktualisiert. Zuletzt um ".$time." Uhr, Europe/Berlin. Daten bereitgestellt von CoinGecko.
Kuno - Moner.ooo Spendenseite Kuno – Mit Monero Spenden sammeln | GitHub | Webhosting bereitgestellt vonServers Guru"; +$info = "Die Werte auf dieser Webseite dienen nur der Information. Der Wert ist nicht garantiert und wird ohne vorherige Ankündigung geändert. Die Werte werden alle 5 Sekunden aktualisiert. Zuletzt um ".$time." Uhr, Europe/Berlin. Daten bereitgestellt von CoinGecko.
Kuno - Moner.ooo Spendenseite Kuno – Mit Monero Spenden sammeln | GitHub"; +$servers_guru = " | Webhosting bereitgestellt vonServers Guru" $clipboard_copy_tooltip = "In die Zwischenablage kopieren"; diff --git a/lang/el.php b/lang/el.php index ba540d0..0019e6b 100644 --- a/lang/el.php +++ b/lang/el.php @@ -11,7 +11,8 @@ $title_h1 = "conversion to"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated every 5 Seconds. Last at ".$time." clock, Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub | Webhosting provided byServers Guru"; +$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated every 5 Seconds. Last at ".$time." clock, Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero"; +$servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard"; diff --git a/lang/en.php b/lang/en.php index 942650d..cbc8db6 100644 --- a/lang/en.php +++ b/lang/en.php @@ -11,7 +11,8 @@ $title_h1 = "conversion to"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated every 5 Seconds. Last at ".$time." clock, Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub | Webhosting provided byServers Guru"; +$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated every 5 Seconds. Last at ".$time." clock, Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; +$servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard"; diff --git a/lang/es.php b/lang/es.php index 2414f19..dfebbe8 100644 --- a/lang/es.php +++ b/lang/es.php @@ -11,7 +11,8 @@ $title_h1 = "conversión según"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "Los valores de este sitio web son meramente informativos. El valor no está garantizado y está sujeto a cambios sin previo aviso. Los valores se actualizan cada 5 segundos. Última actualización: ".$time.", Europa/Berlín. Datos proporcionados por CoinGecko.
Kuno - Moner.ooo donation page Kuno – Recaudar fondos con Monero | GitHub | Webhosting provided byServers Guru"; +$info = "Los valores de este sitio web son meramente informativos. El valor no está garantizado y está sujeto a cambios sin previo aviso. Los valores se actualizan cada 5 segundos. Última actualización: ".$time.", Europa/Berlín. Datos proporcionados por CoinGecko.
Kuno - Moner.ooo donation page Kuno – Recaudar fondos con Monero | GitHub"; +$servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copiar al portapapeles"; diff --git a/lang/it.php b/lang/it.php index f5b8e3c..6560d9b 100644 --- a/lang/it.php +++ b/lang/it.php @@ -11,7 +11,8 @@ $title_h1 = "conversione in"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "I tassi di cambio su questo sito sono solo a scopo informativo. Non è garantita la loro accuratezza e sono soggetti a modifiche senza preavviso. I tassi di cambio sono aggiornati ogni 5 secondi. Ultimo alle ".$time.", Europa/Berlino. Dati forniti da CoinGecko.
Kuno - Moner.ooo donation page Kuno – Raccogli fondi con Monero | GitHub | Webhosting provided byServers Guru"; +$info = "I tassi di cambio su questo sito sono solo a scopo informativo. Non è garantita la loro accuratezza e sono soggetti a modifiche senza preavviso. I tassi di cambio sono aggiornati ogni 5 secondi. Ultimo alle ".$time.", Europa/Berlino. Dati forniti da CoinGecko.
Kuno - Moner.ooo donation page Kuno – Raccogli fondi con Monero | GitHub"; +$servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copia negli appunti"; diff --git a/lang/nl.php b/lang/nl.php index e49826d..e2f7235 100644 --- a/lang/nl.php +++ b/lang/nl.php @@ -11,7 +11,8 @@ $title_h1 = "conversion to"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated every 5 Seconds. Last at ".$time." clock, Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub | Webhosting provided byServers Guru"; +$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated every 5 Seconds. Last at ".$time." clock, Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; +$servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard"; diff --git a/lang/pl.php b/lang/pl.php index d299168..455db09 100644 --- a/lang/pl.php +++ b/lang/pl.php @@ -11,7 +11,8 @@ $title_h1 = "conversion to"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated every 5 Seconds. Last at ".$time." clock, Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub | Webhosting provided byServers Guru"; +$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated every 5 Seconds. Last at ".$time." clock, Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; +$servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard"; diff --git a/lang/pt-br.php b/lang/pt-br.php index cc97895..1f1993d 100644 --- a/lang/pt-br.php +++ b/lang/pt-br.php @@ -11,7 +11,8 @@ $title_h1 = "converter para"; // ↓ XMR [...] ↓ $moneroooTable = "Este serviço é oferecido pelo Moner.ooo, os dados são providos pela CoinGecko"; // Info Text -$info = "As cotações oferecidas neste site são apenas para fins informativos. Não há garantia que as cotações estejam precisas e estão sujeitas à mudanças sem aviso prévio. As cotações são atualizadas a cada 5 segundos. A última atualização foi em ".$time.", horário europeu (Berlin). Os dados são providos pela CoinGecko.
Kuno - Moner.ooo donation page Kuno – Arrecade fundos com Monero | GitHub | Webhosting provided byServers Guru"; +$info = "As cotações oferecidas neste site são apenas para fins informativos. Não há garantia que as cotações estejam precisas e estão sujeitas à mudanças sem aviso prévio. As cotações são atualizadas a cada 5 segundos. A última atualização foi em ".$time.", horário europeu (Berlin). Os dados são providos pela CoinGecko.
Kuno - Moner.ooo donation page Kuno – Arrecade fundos com Monero | GitHub"; +$servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copiar para a área de transferência"; diff --git a/lang/ru.php b/lang/ru.php index c24b917..891ed60 100644 --- a/lang/ru.php +++ b/lang/ru.php @@ -11,7 +11,8 @@ $title_h1 = "конвертация в"; // ↓ XMR [...] ↓ $moneroooTable = "Сервис предоставлен Moner.ooo, Данные предоставлены CoinGecko"; // Info Text -$info = "Курсы обмена, представленные на этом сайте, носят исключительно информационный характер. Их точность не гарантируется, и они могут быть изменены без предварительного уведомления. Курсы обмена обновляются каждые 5 секунд. Последнее обновление ".$time.", Europe/Berlin. Данные предоставлены CoinGecko.
Kuno - Moner.ooo страница для донатов Kuno – Сбор средств с помощью Monero | GitHub | Webhosting provided byServers Guru"; +$info = "Курсы обмена, представленные на этом сайте, носят исключительно информационный характер. Их точность не гарантируется, и они могут быть изменены без предварительного уведомления. Курсы обмена обновляются каждые 5 секунд. Последнее обновление ".$time.", Europe/Berlin. Данные предоставлены CoinGecko.
Kuno - Moner.ooo страница для донатов Kuno – Сбор средств с помощью Monero | GitHub"; +$servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Копировать в буфер обмена"; diff --git a/lang/zh-cn.php b/lang/zh-cn.php index 844d59c..8ec02f3 100644 --- a/lang/zh-cn.php +++ b/lang/zh-cn.php @@ -11,7 +11,8 @@ $title_h1 = "转换至"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "本站提供的汇率仅供参考。其精确程度不被保证,且可能在您不注意的情况下发生变更。汇率每5秒钟更新一次。最近一次在欧洲/柏林时间 ".$time." 。数据由 CoinGecko
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub | Webhosting provided byServers Guru"; +$info = "本站提供的汇率仅供参考。其精确程度不被保证,且可能在您不注意的情况下发生变更。汇率每5秒钟更新一次。最近一次在 Europe/Berlin 时间 ".$time." 。数据由 CoinGecko
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; +$servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard";