Skip to content

Commit

Permalink
forgot files
Browse files Browse the repository at this point in the history
  • Loading branch information
zleyyij committed Dec 23, 2024
1 parent 654f163 commit e61de54
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions new/apps/web/src/php/head.php
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>

0 comments on commit e61de54

Please sign in to comment.