tilde-oauth/index.php

56 lines
2.9 KiB
PHP
Raw Normal View History

<!DOCTYPE html>
2022-05-01 07:35:44 +00:00
<HTML lang="en">
<Head>
<Title>HackersTown Server Access</Title>
<meta charset="utf-8">
<base href="/"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Javascript -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
2022-05-01 20:20:59 +00:00
<script src="https://code.jquery.com/color/jquery.color.plus-names-2.1.2.min.js"></script>
2022-05-01 07:35:44 +00:00
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.all.min.js" crossorigin="anonymous"></script>
2022-05-01 07:35:44 +00:00
<script src="/fittext.js"></script>
<script src="/index.js"></script>
2022-05-07 08:02:58 +00:00
<!-- Stylesheets -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link href="/style.css" rel="stylesheet"/>
2022-05-01 07:35:44 +00:00
</Head>
<Body>
<div class="row">
<div class="desktopOnly col-4"></div>
<div id="content" class="col-4 center">
<div class="row">
<?php if(file_exists("/var/www/usergen/DOMAIN_OVERRIDE")){
echo "<a href=\"".str_replace("\n", "", file_get_contents("/var/www/usergen/DOMAIN_OVERRIDE"))."\">";
}else{
echo "<a href=\"https://hackers.town\">";
}?>
2022-05-01 20:20:59 +00:00
<img src="/Assets/HTown.png" class="logo self-align-center mx-auto d-block" alt="Hacker Town logo in ASCII art. Rendered as image to force correct visualization."/>
</a>
2022-05-01 07:35:44 +00:00
</div>
<div id="title" class="row center">
<span id="resizer">
&ltTTY ACCESS&gt
</span>
</div>
<div class="row button">
2022-05-01 20:20:59 +00:00
<button id="bttn" class="keyButton" onclick="beginOauth()">Create Account</button>
2022-05-01 07:35:44 +00:00
</div>
<div class="row copyright">
<?php
2022-05-08 00:15:19 +00:00
if (file_exists("/etc/ttyserver/canary")){
echo "Canary";
}
?>
2022-05-01 07:35:44 +00:00
<br>
<button class="footerbutton" onclick="displayFingerprints()">SSH Fingerprints</button>
<br>
2022-06-26 00:55:33 +00:00
<a href="https://git.corrupt.link/liz/tilde-oauth">View Source on Git</a>
2022-05-01 07:35:44 +00:00
</div>
</div>
<div class="desktopOnly col-4"></div>
</div>
</Body>
</HTML>