studiotest

This commit is contained in:
Thomas G 2022-07-15 20:19:22 +10:00
parent a7b2863bbf
commit c04823a3f4
4 changed files with 19 additions and 9 deletions

Binary file not shown.

View File

@ -0,0 +1 @@
version-000000001

View File

@ -14,9 +14,7 @@ if (Auth::check()) {
} else {
$randName = mt_rand(1, 9999);
$username = "Guest " . $randName;
// $username = " ";
// $id = 0);
$id = mt_rand(9999, 999999);
$id = 0;
}
$ip = addslashes($_GET["ip"]);
$port = addslashes($_GET["port"]);
@ -117,11 +115,11 @@ function setMessage(message)
end
end
-- Check if client is not logged in, disabled right now
-- if <?php echo $id; ?> == 0 then
-- setMessage("You are not logged in. (ID: 400)", "Kick", "Kick")
-- error("Not logged in")
-- end
-- Check if client is not logged in
if <?php echo $id; ?> == 0 then
setMessage("You are not logged in. (ID: 400)", "Kick", "Kick")
error("Not logged in")
end
function showErrorWindow(message, errorType, errorCategory)
game:SetMessage(message)

View File

@ -23,7 +23,18 @@
@yield('alert')
<div class="iphone-sidebar" style="color: #000000; background-color: #ffffff">
<p><img src="https://archblox.com/img/MORBLOXlogo.png" width="50%"> Studio</p>
<p>Logged in as: {{ Auth::user()->name }}</p>
@guest
<a href="{{ route('login') }}">Log In</a>
@else
<p class="nonbolded" id="navbarusername">{{ Auth::user()->name }} | <a
href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">Log
out...</a></p>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display:none">
@csrf
</form>
@endguest
<br>
<a style="color: blue;" href="#">My Games</a>
<br>