forked from vern/website
Move SSI to CGI script
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
7050199c99
commit
27350cb66c
|
@ -106,7 +106,7 @@ case "$arg_method" in
|
|||
;;
|
||||
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
|
||||
printf '%s' '-e "s/NOKEY/This user has no <code>.pgp.asc</code> file/"'
|
||||
else
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<title>PGP-based Account Recovery | ~vern</title>
|
||||
</head>
|
||||
<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>
|
||||
<p>Fill out this form, and follow the steps given.</p>
|
||||
<form method="post" action="/en/recovery-challenge">
|
||||
|
@ -20,6 +20,6 @@
|
|||
<br>
|
||||
<span><input type=submit value=Submit style="width:100px;height:40px;font-size:20px"></span>
|
||||
</form>
|
||||
<!--#include file="/en/footer.cgi" -->
|
||||
FOOTER
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<title>PGP-based Account Recovery | ~vern</title>
|
||||
</head>
|
||||
<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>
|
||||
<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>
|
||||
|
@ -27,6 +27,6 @@
|
|||
<br>
|
||||
<span><input type=submit value=Submit style="width:100px;height:40px;font-size:20px"></span>
|
||||
</form>
|
||||
<!--#include file="/en/footer.cgi" -->
|
||||
FOOTER
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
<title>Success | ~vern</title>
|
||||
</head>
|
||||
<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>
|
||||
<p>Your new key has successfully been added.</p>
|
||||
<p>You will be redirected back <a href=/en/>home</a> in 5 seconds.</p>
|
||||
<!--#include file="/en/footer.cgi" -->
|
||||
FOOTER
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue