Add specific error page public key format

This commit is contained in:
Blade of Darkness 2020-12-22 20:08:44 +01:00
parent 1dde4d4fc1
commit 278f561744
3 changed files with 4 additions and 2 deletions

3
articles/success4.md Normal file
View File

@ -0,0 +1,3 @@
# Form Failure
Please check SSH public key format.

View File

@ -3,7 +3,6 @@
$site_name="☣ thunix ☣";
//Root for the site, in a browser
//$site_root="https://dev.thunix.cf";
$site_root="https://".$_SERVER['HTTP_HOST'];
//Local base root for app files
$doc_root="/var/www/thunix.cf";

View File

@ -38,7 +38,7 @@ if ( $tv == "tildeverse" )
// Check SSH public key format:
exec("echo $pubkey | ssh-keygen -l -f - 2>&1", $null, $retval);
if($retval != 0)
$success = 'success1';
$success = 'success4';
if ( $success == "success2" )
mail($destination_addr, $subject, $mailbody, $from);