fixing form submit url

This commit is contained in:
Ubergeek 2019-07-13 11:13:32 -04:00
parent 86749cca7a
commit b2f91d5c72
2 changed files with 6 additions and 6 deletions

View File

@ -19,16 +19,16 @@ Message: $message";
if ( $tv != "tildeverse" ) { if ( $tv != "tildeverse" ) {
print "Spam attempt"; print "Spam attempt";
header("Location: $site_root/success1"); header("Location: $site_root/?page=success1");
die(); die();
} }
shell_exec("echo $mailbody | /usr/bin/mail -s 'New User Registration' $destination_addr "); shell_exec("echo '$mailbody' | /usr/bin/mail -s 'New User Registration' $destination_addr ");
// In the future, here, we *should* be able to build a process that // In the future, here, we *should* be able to build a process that
// somehow auto-verifies the user, and instead of email, it'll kick off the new user process here // somehow auto-verifies the user, and instead of email, it'll kick off the new user process here
header("Location: $site_root/success2"); header("Location: $site_root/?page=success2");
die() die()
?> ?>

View File

@ -19,16 +19,16 @@ Pubkey: $pubkey";
if ( $tv != "tildeverse" ) { if ( $tv != "tildeverse" ) {
print "Spam attempt"; print "Spam attempt";
header("Location: $site_root/success1"); header("Location: $site_root/?page=success1");
die(); die();
} }
shell_exec("echo $mailbody | /usr/bin/mail -s 'New User Registration' $destination_addr "); shell_exec("echo '$mailbody' | /usr/bin/mail -s 'New User Registration' $destination_addr ");
// In the future, here, we *should* be able to build a process that // In the future, here, we *should* be able to build a process that
// somehow auto-verifies the user, and instead of email, it'll kick off the new user process here // somehow auto-verifies the user, and instead of email, it'll kick off the new user process here
header("Location: $site_root/success2"); header("Location: $site_root/?page=success2");
die(); die();