enable guest mode
This commit is contained in:
parent
25fd7bd9b4
commit
7a4c188b38
|
|
@ -15,7 +15,7 @@ if (Auth::check()) {
|
||||||
} else {
|
} else {
|
||||||
$randName = mt_rand(1, 9999);
|
$randName = mt_rand(1, 9999);
|
||||||
$username = "Guest " . $randName;
|
$username = "Guest " . $randName;
|
||||||
$id = 0;
|
$id = mt_rand(1000, 9999);
|
||||||
$app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=0';
|
$app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=0';
|
||||||
}
|
}
|
||||||
$ip = addslashes($_GET["ip"]);
|
$ip = addslashes($_GET["ip"]);
|
||||||
|
|
@ -116,10 +116,10 @@ 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 $id; ?> == 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
|
||||||
|
|
||||||
function showErrorWindow(message, errorType, errorCategory)
|
function showErrorWindow(message, errorType, errorCategory)
|
||||||
game:SetMessage(message)
|
game:SetMessage(message)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue