Fix some terrible code
This commit is contained in:
1 parent
2fa71b9b0c
commit
cbfea43fb8
4 files changed
+6
-6
No files matched your search
@@ -70,6 +70,7 @@ function sendEmail($email, $password, $sender, $target, $target_user, $subject,
|
||||
}
|
||||
}
|
||||
function checkDiscordLink($id) {
|
||||
include '../config/config.php';
|
||||
if ($id == null || $id == "") {
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
@@ -93,7 +94,7 @@ function checkDiscordLink($id) {
|
||||
<div id="discord-link">
|
||||
<h1>Discord link required</h1>
|
||||
<p>You need to link your Discord account to use this service.</p>
|
||||
<button onclick="setCookieAndRedirect()">Link Discord</button>
|
||||
<button onclick="setCookieAndRedirect('<?= $discordClientId ?>', '<?= $discordRedirectUri ?>')">Link Discord</button>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user