diff --git a/README.md b/README.md index 7fe9d9b..fbdd113 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Warrant canary available at /etc/ttyserver/canary * [ ] Canary description popup? * [ ] Shift-Click for Keygen Options * [ ] Download SSH Public Key on fingerprint click? +* [ ] Better font scaling for long text ## Completed TODO: * Change Sign Up to Log In diff --git a/auth/api/index.php b/auth/api/index.php index 4a540f7..6b179da 100644 --- a/auth/api/index.php +++ b/auth/api/index.php @@ -61,6 +61,42 @@ if (isset($_REQUEST["act"])) { returnError("Incorrect Verify Query"); } break; + case "gemproxy": + if (isset($_REQUEST["token"])){ + // Verify Encrypted Token + $EncTokenData = $_REQUEST["token"]; + $TokenData = verifyEncToken($EncTokenData); + if (gettype($TokenData) == "string") { + // Invalid Token + returnError($TokenData); + }else{ + // Valid Token + if (isset($_REQUEST["enable"])){ + $userHomeDir = shell_exec("eval echo ~".$TokenData["MastodonData"]->username); + if (!file_exists($userHomeDir)){ + returnError("User Home Directory Not Found, try making a new SSH key."); + } else { + if (file_exists($userHomeDir."/public_gemini")){ + mkdir($userHomeDir."/public_gemini", 0755); + } + $EnableFile = $userHomeDir."/public_gemini/.serve_ok"; + if ($_REQUEST["enable"] == 1){ + if (!file_exists($EnableFile)){ + file_put_contents($EnableFile, "web_gen"); + } + }else{ + if (file_exists($EnableFile)){ + unlink($EnableFile); + } + } + } + }else { + returnError("Incorrect Gemini Proxy Query"); + } + + } + } + break; default: returnError("Incorrect Action Query"); break; diff --git a/auth/auth.js b/auth/auth.js index c359078..935ab1d 100644 --- a/auth/auth.js +++ b/auth/auth.js @@ -240,6 +240,16 @@ const logout = () => { window.location.href = "/?msg=End%20Of%20Line."; }; +const gemini = () => { + Swal.fire({ + ...SwalConfig, + title: "Gemini", + text: "Gemini is a new internet protocol which:", + html: + "", + }); +}; + $(() => { // On Page Load // Override domain diff --git a/auth/index.php b/auth/index.php index c7b7d41..d5d7dfc 100644 --- a/auth/index.php +++ b/auth/index.php @@ -35,6 +35,10 @@ +
+ + +