tilde-oauth/auth/index.php

49 lines
2.1 KiB
PHP
Raw Normal View History

2022-05-01 20:20:59 +00:00
<?php
2023-10-04 05:26:33 +00:00
$config = json_decode(file_get_contents("/var/www/usergen/secret/config.json", true));
require_once("/var/www/usergen/secret/helpers.php");
2023-10-04 05:34:06 +00:00
require_once("/var/www/usergen/secret/oauth.php");
2022-05-01 20:20:59 +00:00
?>
<!DOCTYPE html>
2022-05-01 20:20:59 +00:00
<HTML lang="en">
2023-10-04 05:26:33 +00:00
<?php require("/var/www/usergen/elements/head.php"); ?>
<Body>
2022-05-01 20:20:59 +00:00
<script src="/base64url.js"></script>
<script src="/ssh-util.js"></script>
<script src="/keygen.js"></script>
2023-10-04 05:26:33 +00:00
<script src="/auth/auth.js"></script>
2022-05-01 20:20:59 +00:00
<div class="row">
<div class="desktopOnly col-4"></div>
<div id="content" class="col-4 center">
2023-10-04 05:26:33 +00:00
<?php require("/var/www/usergen/elements/logo.php"); ?>
2022-05-01 20:20:59 +00:00
<div class="row">
<span>
<?php
2023-10-04 05:26:33 +00:00
echo getHello();
2022-05-01 20:20:59 +00:00
?>
</span>
2023-10-07 00:28:56 +00:00
<span id="resizer" class="name">
Fellow Townie
2022-05-01 20:20:59 +00:00
</span>
</div>
2023-10-04 05:26:33 +00:00
<div class="row button">
2023-10-07 00:28:56 +00:00
<button class="col keyButton" onclick="generateSSH()">Generate Keypair</button>
<button class="col keyButton" onclick="uploadSSH()">Upload Pubkey</button>
2022-05-07 23:45:13 +00:00
<button class="col keyButton debug" onclick="testSwal()">Test Popup</button>
<form id="uploadForm" enctype="multipart/form-data">
<input id="keyfile" type="file" style="display: none;"/>
</form>
2022-05-01 20:20:59 +00:00
</div>
2023-10-07 00:28:56 +00:00
<div class="row button">
<button class="col keyButton" onclick="gemini()">Gemini Config</button>
<button class="col keyButton" onclick="configSSH()" hidden>Manage Keys</button>
</div>
2023-10-04 05:26:33 +00:00
<div class="row button">
<button class="col keyButton" onclick="logout()">Log Out</button>
</div>
<?php require("/var/www/usergen/elements/footer.php"); ?>
2022-05-01 20:20:59 +00:00
</div>
<div class="desktopOnly col-4"></div>
</div>
</Body>
</HTML>