Update join.blade.php

This commit is contained in:
Thomas G 2022-10-23 10:53:04 +11:00
parent 4032935b3e
commit 81f57cd2b6
1 changed files with 17 additions and 5 deletions

View File

@ -10,11 +10,13 @@ $app = addslashes($_GET["app"]);*/
if (Auth::check()) { if (Auth::check()) {
$username = addslashes(Auth::user()->name); $username = addslashes(Auth::user()->name);
$authorised = 1
$id = addslashes(Auth::id()); $id = addslashes(Auth::id());
$app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=' . addslashes(Auth::id()); $app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=' . addslashes(Auth::id());
} else { } else {
$randName = mt_rand(1, 9999); $randName = mt_rand(1, 9999);
$username = "Guest " . $randName; $username = "Guest " . $randName;
$authorised = 0
$id = mt_rand(1000, 9999); $id = mt_rand(1000, 9999);
$app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=0'; $app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=0';
} }
@ -116,7 +118,7 @@ function setMessage(message)
end end
-- Check if client is not logged in -- Check if client is not logged in
--if <?php echo $id; ?> == 0 then --if <?php echo $authorised; ?> == 0 then
-- setMessage("You are not logged in. (ID: 400)", "Kick", "Kick") -- setMessage("You are not logged in. (ID: 400)", "Kick", "Kick")
-- error("Not logged in") -- error("Not logged in")
--end --end
@ -226,10 +228,20 @@ local success, err = pcall(function()
playerConnectSucces, player = pcall(function() return client:PlayerConnect(<?php echo $id; ?>, "<?php echo $ip; ?>", <?php echo $port; ?>, 0, threadSleepTime) end) playerConnectSucces, player = pcall(function() return client:PlayerConnect(<?php echo $id; ?>, "<?php echo $ip; ?>", <?php echo $port; ?>, 0, threadSleepTime) end)
player:SetSuperSafeChat(false) if <?php echo $authorised ?> == 0 then
pcall(function() player:SetUnder13(false) end) -- guest
pcall(function() player:SetMembershipType(Enum.MembershipType.None) end) player:SetSuperSafeChat(true)
pcall(function() player:SetAccountAge(365) end) pcall(function() player:SetUnder13(true) end)
pcall(function() player:SetMembershipType(Enum.MembershipType.None) end)
pcall(function() player:SetAccountAge(0) end)
else
-- user
player:SetSuperSafeChat(false)
pcall(function() player:SetUnder13(false) end)
pcall(function() player:SetMembershipType(Enum.MembershipType.None) end)
pcall(function() player:SetAccountAge(365) end)
end
player.Idled:connect(onPlayerIdled) player.Idled:connect(onPlayerIdled)
-- Overriden -- Overriden