Fix "Accès onion/DNS" link

This commit is contained in:
Miraty 2023-06-09 21:07:25 +02:00
parent 0b6fcbefff
commit bc7199f419
1 changed files with 2 additions and 2 deletions

View File

@ -6,9 +6,9 @@
<a href="<?= clearnetOrOnion('https://miraty.antopie.org/fr/contact.html', 'http://miraty.sou4vla4k5peskbl3dlzhh3e6ve5eu3m3hhsmiidqevlsd6lqo3qq2ad.onion/fr/contact.html') ?>" class="button">Me contacter</a>
<br>
<?php if (DESTINATION === "onion") { ?>
<a href="https://antopie.org/<?= $path_parts['filename'] ?>" class="button">Accès <abbr title="Domain Name System">DNS</abbr></a>
<a href="https://antopie.org/<?= ($path_parts['filename'] === 'index') : '' ? ($path_parts['filename'] . '.html') ?>" class="button">Accès <abbr title="Domain Name System">DNS</abbr></a>
<?php } else { ?>
<a href="http://sou4vla4k5peskbl3dlzhh3e6ve5eu3m3hhsmiidqevlsd6lqo3qq2ad.onion/<?= $path_parts['filename'] ?>" class="button">Accès Onion</a>
<a href="http://sou4vla4k5peskbl3dlzhh3e6ve5eu3m3hhsmiidqevlsd6lqo3qq2ad.onion/<?= ($path_parts['filename'] === 'index') : '' ? ($path_parts['filename'] . '.html') ?>" class="button">Accès Onion</a>
<?php } ?>
</div>
<div>