-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
newest version of TFC-Plex
- Loading branch information
Showing
9 changed files
with
128 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<%- include('./components/head') %> | ||
<body> | ||
<div class="container-scroller"> | ||
<%- include('./components/adminsidebar') %> | ||
<div class="container-fluid page-body-wrapper"> | ||
<%- include('./components/topnav') %> | ||
<div class="main-panel"> | ||
<div style="background-color: #111319" class="content-wrapper"> | ||
<h2>Verify The Host</h2> | ||
<p class="text-gray">Verify your Hosting to get access of more features and more security.</p> | ||
|
||
<div id="verificationResult1"></div> | ||
|
||
<script> | ||
// Annahme: settings.hostid und settings.name sind die zu überprüfende Host-ID und der Name | ||
var hostIdToCheck = "<%= settings.hostid %>"; | ||
var nameToCheck = "<%= settings.name %>"; | ||
// URL, von der die JSON-Daten geladen werden sollen | ||
var apiUrl = 'https://tfc-plex.de/api/verifydhosts.json'; | ||
// Funktion zum Laden der JSON-Daten von der URL | ||
async function fetchVerifiedHosts() { | ||
try { | ||
var response = await fetch(apiUrl); | ||
var data = await response.json(); | ||
return data.verifiedHosts; | ||
} catch (error) { | ||
console.error('Fehler beim Laden der Daten:', error); | ||
return []; | ||
} | ||
} | ||
// Überprüfe, ob die Host-ID und der Name in den verifizierten Hosts enthalten sind | ||
fetchVerifiedHosts().then(function(verifiedHosts) { | ||
var isHostIdVerified = verifiedHosts.some(host => host.hostId === hostIdToCheck && host.name === nameToCheck); | ||
var resultMessage = isHostIdVerified | ||
? "Host with ID " + hostIdToCheck + " and Name " + nameToCheck + " is Verifyd <i class='text-success fa-regular fa-badge-check'></i>" | ||
: "Your Host with ID " + hostIdToCheck + " and Name " + nameToCheck + " is not verified. You can verify it at the <a href='https://discord.gg/ag4ZZN68Vm' target='_blank'>Discord</a>."; | ||
// Zeige das Ergebnis in der Div-Variable an | ||
document.getElementById('verificationResult1').innerHTML = resultMessage; | ||
}); | ||
</script> | ||
|
||
</div> | ||
<%- include('./components/footer') %> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="/assets/vendors/select2/select2.min.js"></script> | ||
<script src="/assets/vendors/typeahead.js/typeahead.bundle.min.js"></script> | ||
<%- include('./components/scripts') %> | ||
<script src="/assets/js/file-upload.js"></script> | ||
<script src="/assets/js/typeahead.js"></script> | ||
<script src="/assets/js/select2.js"></script> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters