-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
include_once("common.php"); | ||
$json_file = $_GET['file']; | ||
$json = file_get_contents($json_file); | ||
$json_data = json_decode($json, true); | ||
$profile_name = pathinfo($json_file, PATHINFO_FILENAME); | ||
?> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Profile <?= $profile_name ?> | Specified</title> | ||
<meta content="width=device-width,initial-scale=1" name="viewport" /> | ||
|
||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" /> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.dark.min.css" rel="stylesheet"> | ||
<link href="static/css/themes.css?v=2" rel="stylesheet"> | ||
<link href="static/css/main.css?v=2" rel="stylesheet"> | ||
<link href="static/css/tables.css" rel="stylesheet"> | ||
|
||
<!--This section is for the discord embed card. Need to expand upon it. --> | ||
<meta name="og:title" content="<?= $json_data["BasicInfo"]["Hostname"] ?>" /> | ||
<meta name="og:site_name" content="Specify" /> | ||
<meta name="og:description" content="Generated on <?= $json_data["Meta"]["GenerationDate"] ?>" /> | ||
<meta name="og:type" content="data.specify_result" /> | ||
|
||
<link rel="shortcut icon" href="assets/specify-glass-dynamic.svg" /> | ||
<link rel="icon" href="assets/specify-glass-black-256x256.png" media="(prefers-color-scheme light)" /> | ||
<link rel="icon" href="assets/specify-glass-black-256x256.png" media="(prefers-color-scheme dark)" /> | ||
|
||
<script nonce="<?= $script_nonce ?>"> | ||
window.PROFILE_NAME = "<?= $profile_name ?>"; | ||
</script> | ||
<!--This should be first to make sure the themes load on time--> | ||
<script defer src="static/js/themes.js?v=2"></script> | ||
|
||
<!--Konami Code for Dev Stuff--> | ||
<script defer="defer" src="static/js/konami.js"></script> | ||
|
||
<!--Table Rendering--> | ||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.2/jquery.slim.min.js"></script> | ||
<script defer type="text/javascript" src="https://cdn.datatables.net/v/bs5/dt-1.13.1/sc-2.0.7/datatables.min.js"></script> | ||
|
||
<!--UI Stuff--> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.js" type="text/javascript"></script> | ||
|
||
<!--Main Scripts--> | ||
<script defer="defer" src="static/js/tables.js?v=1" type="module"></script> | ||
<script defer="defer" src="static/js/main.js?v=2"></script> | ||
</head> |