From 278f56174455f98b815215621821c79f08f273f7 Mon Sep 17 00:00:00 2001 From: Naglfar Date: Tue, 22 Dec 2020 20:08:44 +0100 Subject: [PATCH] Add specific error page public key format --- articles/success4.md | 3 +++ config.php | 1 - includes/signup.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 articles/success4.md diff --git a/articles/success4.md b/articles/success4.md new file mode 100644 index 0000000..78a2949 --- /dev/null +++ b/articles/success4.md @@ -0,0 +1,3 @@ +# Form Failure + +Please check SSH public key format. diff --git a/config.php b/config.php index eb9eafd..d71d6d2 100644 --- a/config.php +++ b/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"; diff --git a/includes/signup.php b/includes/signup.php index 760ae4c..999ea08 100644 --- a/includes/signup.php +++ b/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);