From 0fea03836c42e74701c8e408570e3b616aca728d Mon Sep 17 00:00:00 2001
From: Li
Date: Tue, 14 Jun 2022 22:32:07 +1200
Subject: [PATCH] Variable getting started url
---
master-site/common.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/master-site/common.php b/master-site/common.php
index d6b7939..2c2d657 100644
--- a/master-site/common.php
+++ b/master-site/common.php
@@ -97,9 +97,9 @@ function send_activation_email(string $email, string $username, string $password
include('config.php');
$hmac = GenHmacMessage($username, "UserActivation", false);
- $hmacKey = base64_url_encode(hex2bin($hmac));
- $activateUrl = get_protocol().get_host()."/web/newuser.php?U=".htmlspecialchars($username, ENT_QUOTES)."&AC=".htmlspecialchars($hmacKey, ENT_QUOTES);
- $body = "Welcome New Horse Isle Member!
\r\nTo Activate your account, Click the following link, or Copy-Paste/Type it in your browser.
\r\n\r\n".$activateUrl."
\r\n or
\r\n( ".$activateUrl." )\r\n
We hope you enjoy the game! Be sure you have written down your Username: ".htmlspecialchars($username, ENT_QUOTES)." and Password: ".htmlspecialchars($password, ENT_QUOTES)." someplace safe!
\r\nNEVER give your password out to ANYONE, even someone claiming to work for Horse Isle.
\r\n---------------------------------------------------------------------
\r\n Quick Start Guide:
\r\n #1) Log into hi1.horseisle.com with your newly activated account.
\r\n #2) Join a server (Top one is recommended for new players)
\r\n #3) Once on server click ENTER WORLD. This will start up the game.
\r\n Enjoy!
\r\n";
+ $hmacSignature = base64_url_encode(hex2bin($hmac));
+ $activateUrl = get_protocol().get_host()."/web/newuser.php?U=".htmlspecialchars($username, ENT_QUOTES)."&AC=".htmlspecialchars($hmacSignature, ENT_QUOTES);
+ $body = "Welcome New Horse Isle Member!
\r\nTo Activate your account, Click the following link, or Copy-Paste/Type it in your browser.
\r\n\r\n".$activateUrl."
\r\n or
\r\n( ".$activateUrl." )\r\n
We hope you enjoy the game! Be sure you have written down your Username: ".htmlspecialchars($username, ENT_QUOTES)." and Password: ".htmlspecialchars($password, ENT_QUOTES)." someplace safe!
\r\nNEVER give your password out to ANYONE, even someone claiming to work for Horse Isle.
\r\n---------------------------------------------------------------------
\r\n Quick Start Guide:
\r\n #1) Log into ".get_protocol().get_host()." with your newly activated account.
\r\n #2) Join a server (Top one is recommended for new players)
\r\n #3) Once on server click ENTER WORLD. This will start up the game.
\r\n Enjoy!
\r\n";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";