This repository has been archived on 2023-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-06-24 16:29:27 +02:00
|
|
|
<?php
|
|
|
|
// Les URL n'ont pas le .php sur le site d'Antopie
|
|
|
|
function formerUrlLocale($page) {
|
2021-09-15 23:15:48 +02:00
|
|
|
if (DESTINATION === "dns" OR DESTINATION === "onion") {
|
2020-06-24 16:29:27 +02:00
|
|
|
echo $page;
|
|
|
|
} else {
|
2020-08-02 14:15:06 +02:00
|
|
|
echo $page . ".html";
|
2020-06-24 16:29:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Détermine si il faut utiliser les liens en .onion ou pas
|
|
|
|
function clearnetOrOnion($clearnetUrl, $onionUrl) {
|
2021-09-15 23:15:48 +02:00
|
|
|
if (DESTINATION === "onion") {
|
2020-06-24 16:29:27 +02:00
|
|
|
return $onionUrl;
|
|
|
|
} else {
|
|
|
|
return $clearnetUrl;
|
|
|
|
}
|
|
|
|
}
|