Move SSI to CGI script
ci/woodpecker/push/woodpecker Pipeline was successful Details

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-11-22 17:03:18 -05:00
parent 7050199c99
commit 27350cb66c
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
4 changed files with 7 additions and 7 deletions

View File

@ -106,7 +106,7 @@ case "$arg_method" in
;; ;;
esac esac
sedcmd=" -e 's/USERNAME/$arg_username/' -e 's/CHALLENGE/$(<$runtime_dir/$arg_username)/' -e 's/KEYID/$keyid/'" sedcmd=" -e 's/USERNAME/$arg_username/' -e 's/CHALLENGE/$(<$runtime_dir/$arg_username)/' -e 's/KEYID/$keyid/' -e 's/NAV/$(php $(dirname $0)/nav.php)/' -e 's/FOOTER/$($(dirname $0)/footer.cgi)/'"
sedcmd="$sedcmd $(if [[ $nokey == 1 ]]; then sedcmd="$sedcmd $(if [[ $nokey == 1 ]]; then
printf '%s' '-e "s/NOKEY/This user has no <code>.pgp.asc</code> file/"' printf '%s' '-e "s/NOKEY/This user has no <code>.pgp.asc</code> file/"'
else else

View File

@ -9,7 +9,7 @@
<title>PGP-based Account Recovery | ~vern</title> <title>PGP-based Account Recovery | ~vern</title>
</head> </head>
<body> <body>
<!--#include file="/en/nav.php" --> NAV
<div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div> <div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div>
<p>Fill out this form, and follow the steps given.</p> <p>Fill out this form, and follow the steps given.</p>
<form method="post" action="/en/recovery-challenge"> <form method="post" action="/en/recovery-challenge">
@ -20,6 +20,6 @@
<br> <br>
<span><input type=submit value=Submit style="width:100px;height:40px;font-size:20px"></span> <span><input type=submit value=Submit style="width:100px;height:40px;font-size:20px"></span>
</form> </form>
<!--#include file="/en/footer.cgi" --> FOOTER
</body> </body>
</html> </html>

View File

@ -9,7 +9,7 @@
<title>PGP-based Account Recovery | ~vern</title> <title>PGP-based Account Recovery | ~vern</title>
</head> </head>
<body> <body>
<!--#include file="/en/nav.php" --> NAV
<div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div> <div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div>
<p>Generate your signature by going into a terminal and running the following:</p> <p>Generate your signature by going into a terminal and running the following:</p>
<pre><code>echo 'CHALLENGE' | gpg -a --detach-sig --default-key KEYID</code></pre> <pre><code>echo 'CHALLENGE' | gpg -a --detach-sig --default-key KEYID</code></pre>
@ -27,6 +27,6 @@
<br> <br>
<span><input type=submit value=Submit style="width:100px;height:40px;font-size:20px"></span> <span><input type=submit value=Submit style="width:100px;height:40px;font-size:20px"></span>
</form> </form>
<!--#include file="/en/footer.cgi" --> FOOTER
</body> </body>
</html> </html>

View File

@ -10,10 +10,10 @@
<title>Success | ~vern</title> <title>Success | ~vern</title>
</head> </head>
<body> <body>
<!--#include file="/en/nav.php" --> NAV
<div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div> <div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div>
<p>Your new key has successfully been added.</p> <p>Your new key has successfully been added.</p>
<p>You will be redirected back <a href=/en/>home</a> in 5 seconds.</p> <p>You will be redirected back <a href=/en/>home</a> in 5 seconds.</p>
<!--#include file="/en/footer.cgi" --> FOOTER
</body> </body>
</html> </html>