Browse Source

Add specific error page public key format

pull/31/head
Blade of Darkness 4 months ago
parent
commit
278f561744
  1. 3
      articles/success4.md
  2. 1
      config.php
  3. 2
      includes/signup.php

3
articles/success4.md

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

1
config.php

@ -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";

2
includes/signup.php

@ -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);

Loading…
Cancel
Save