forked from Thunix/www
Add specific error page public key format
This commit is contained in:
3
articles/success4.md
Normal file
3
articles/success4.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Form Failure
|
||||
|
||||
Please check SSH public key format.
|
||||
@@ -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";
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user