diff options
author | Minteck <contact@minteck.org> | 2022-07-19 21:19:59 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-07-19 21:19:59 +0200 |
commit | 735d518ae6ecc6c8d0ecbbae4aa3c019151178fc (patch) | |
tree | 341ee0e7faa7b6f3367b9a4e129cbd148006158c /index.php | |
parent | 3d71c572ec9a0827071be1978731079e8f1e5dbf (diff) | |
download | argon-735d518ae6ecc6c8d0ecbbae4aa3c019151178fc.tar.gz argon-735d518ae6ecc6c8d0ecbbae4aa3c019151178fc.tar.bz2 argon-735d518ae6ecc6c8d0ecbbae4aa3c019151178fc.zip |
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -1,4 +1,4 @@ -<?php if (str_ends_with($_SERVER['HTTP_HOST'], ".familine.minteck.org")) { $_FAMILINE = true; } else { $_FAMILINE = false; } function l($en, $fr) { global $_FAMILINE; if ($_FAMILINE) { return $fr; } else { return $en; } } $root = $_SERVER['DOCUMENT_ROOT']; $root = $_SERVER['DOCUMENT_ROOT']; if ($_FAMILINE) { require_once "/mnt/familine/app/session.php"; } ?> +<?php if (str_ends_with($_SERVER['HTTP_HOST'], ".familine.minteck.org")) { $_FAMILINE = true; } else { $_FAMILINE = false; } function l($en, $fr) { global $_FAMILINE; if ($_FAMILINE) { return $fr; } else { return $en; } } $root = $_SERVER['DOCUMENT_ROOT']; $root = $_SERVER['DOCUMENT_ROOT']; if ($_FAMILINE) { require_once "/mnt/familine/app/session.php"; }; if (!str_contains($_SERVER['HTTP_USER_AGENT'], "Chrome/")) header("Location: /unsupported") and die(); ?> <!DOCTYPE html> <html lang="en" style="overflow:hidden;"> <head> @@ -21,6 +21,7 @@ } } </script> + <script src="https://git.equestria.dev/equestria.dev/elac/raw/branch/mane/browser/elac.js"></script> <style> #argon-loader { @@ -78,39 +79,31 @@ } await sleep(100); document.getElementById("argon-loader-message").innerText = l("Running JavaScript startup hooks...", "Exécution des modules JavaScript de démarrage..."); - if (window.electronAPI && window.electronAPI.affectMessage) window.electronAPI.affectMessage(document.getElementById("argon-loader-message").innerText); for (hook of _argonLoadedHooks) { await sleep(100); if (hook.name.trim() !== "") { document.getElementById("argon-loader-message").innerText = l("Running JavaScript startup hooks... ", "Exécution des modules JavaScript de démarrage... ") + hook.name; - if (window.electronAPI && window.electronAPI.affectMessage) window.electronAPI.affectMessage(document.getElementById("argon-loader-message").innerText); } else { document.getElementById("argon-loader-message").innerText = l("Running JavaScript startup hooks... <!>", "Exécution des modules JavaScript de démarrage... <!>"); - if (window.electronAPI && window.electronAPI.affectMessage) window.electronAPI.affectMessage(document.getElementById("argon-loader-message").innerText); } hook(); } document.getElementById("argon-loader-message").innerText = l("Importing style definitions...", "Importation des définitions de style..."); - if (window.electronAPI && window.electronAPI.affectMessage) window.electronAPI.affectMessage(document.getElementById("argon-loader-message").innerText); window.fetch("/api/get_app_css.php").then(async (a) => { a.text().then(async (b) => { files = JSON.parse(b); for (file of files) { await sleep(100); document.getElementById("argon-loader-message").innerText = l("Importing style definitions... ", "Importation des définitions de style... ") + file; - if (window.electronAPI && window.electronAPI.affectMessage) window.electronAPI.affectMessage(document.getElementById("argon-loader-message").innerText); await loadStyle(file + "?" + Math.random()); } await sleep(100); document.getElementById("argon-loader-message").innerText = l("Resolving songs...", "Résolution des morceaux..."); - if (window.electronAPI && window.electronAPI.affectMessage) window.electronAPI.affectMessage(document.getElementById("argon-loader-message").innerText); window.fetch("/api/get_list.php").then(async (a) => { a.text().then(async (b) => { _argonSongsData = JSON.parse(b); document.getElementById("argon-loader-message").innerText = l("Loading interface...", "Chargement de l'interface..."); - if (window.electronAPI && window.electronAPI.affectMessage) window.electronAPI.affectMessage(document.getElementById("argon-loader-message").innerText); document.getElementById("argon-loader").style.display = "none"; - if (window.electronAPI.finishStartup) window.electronAPI.finishStartup(); }) }) }) @@ -122,6 +115,9 @@ </script> </head> <body> + <div id="outofsupport"> + Argon is not maintained anymore and will stop working soon<span id="oos-desktop">, we are currently working on an alternative.</span> + </div> <?php if ($_FAMILINE): ?> <iframe style="position:fixed;left:0;right:0;top:0;border: none;width: 100%;height:32px;" src="https://cdn.familine.minteck.org/statusbar.php"></iframe> <style> |