🆙 Add fixed cms 🆙

This commit is contained in:
Remco
2026-02-02 19:30:21 +01:00
parent b1a2cab62d
commit b67e0ec2b9
3982 changed files with 193682 additions and 0 deletions
@@ -0,0 +1,88 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>{{ setting('hotel_name') }} - {{ __('Client') }}</title>
<script src="{{ asset('assets/js/jquery-latest.js') }}" type="text/javascript"></script>
<script src="{{ asset('assets/js/jquery-ui.js') }}" type="text/javascript"></script>
<script src="{{ asset('assets/js/flashclient.js') }}"></script>
<script type="text/javascript" src="{{ asset('assets/js/swfobject.js') }}"></script>
<link rel="stylesheet" href="{{ asset('assets/css/clientnew.css') }}" type="text/css">
<link rel="stylesheet" href="{{ asset('assets/css/no-flash.css') }}" type="text/css">
<script type="text/javascript">
var flashvars = {
"connection.info.host": "{{ config('habbo.flash.host') }}",
"connection.info.port": "{{ config('habbo.flash.port') }}",
"site.url": "",
"url.prefix": "",
"client.reload.url": "",
"client.fatal.error.url": "",
"client.connection.failed.url": "",
"logout.url": "",
"client.starting": "Please wait! Habbo is starting up.",
"client.starting.revolving": "For science, you monster\/Loading funny message\u2026please wait.\/Would you like fries with that?\/Follow the yellow duck.\/Time is just an illusion.\/Are we there yet?!\/I like your t-shirt.\/Look left. Look right. Blink twice. Ta da!\/It\'s not you, it\'s me.\/Shhh! I\'m trying to think here.\/Loading pixel universe.",
"client.notify.cross.domain": "1",
"client.allow.cross.domain": "1",
"flash.client.origin": "popup",
"processlog.enabled": "0",
"sso.ticket": "{{ $sso }}",
"productdata.load.url": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.external_productdata')) }}",
"furnidata.load.url": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.external_furnidata')) }}",
"external.texts.txt": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.external_texts')) }}",
"external.variables.txt": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.external_variables')) }}",
"external.figurepartlist.txt": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.external_figuredata')) }}",
"flash.dynamic.avatar.download.configuration": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.external_figuremap')) }}",
"external.override.texts.txt": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.external_override_texts')) }}",
"external.override.variables.txt": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.external_override_variables')) }}",
"flash.client.url": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.production_folder')) }}/",
};
window.FlashExternalInterface.disconnect = function() {
window.location.href = "{{ route('me.show') }}";
};
var params = {
"base": "{{ sprintf('%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.production_folder')) }}/",
"allowScriptAccess": "always",
"menu": "false",
"wmode": "opaque"
};
swfobject.embedSWF(
'{{ sprintf('%s/%s/%s/%s', config('habbo.site.site_url'), config('habbo.flash.swf_base_path'), config('habbo.flash.production_folder'), config('habbo.flash.habbo_swf')) }}',
'client', '100%', '100%', '11.1.0', '{{ asset('assets/js/expressInstall.swf') }}', flashvars, params, null,
null);
</script>
</head>
<body>
<div id="client">
<habbo-client-error>
<div class="client-error__background-frank">
<div class="client-error__text-contents">
<h1 class="client-error__title">{{ __('You are nearly in Habbo!') }}</h1>
<p>{{ __('Click the yellow Hotel button below, then click on run flash` when prompted to. See you in the Hotel!') }}
</p>
</div>
<div class="client-error__hotel-button-div">
<a href="https://www.adobe.com/go/getflashplayer" target="_blank" rel="noopener noreferrer"
class="hotel-button">
<span class="hotel-button__text">{{ __('Get flash') }}</span>
</a>
</div>
</div>
</habbo-client-error>
</div>
</body>
</html>
@@ -0,0 +1,106 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ setting('hotel_name') }} - Nitro</title>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu+Condensed&display=swap" rel="stylesheet">
@vite(['resources/themes/' . setting('theme') . '/css/app.css', 'resources/themes/' . setting('theme') . '/js/app.js'], 'build')
</head>
<body class="overflow-hidden" id="nitro-client">
<div class="absolute top-4 left-4 z-10 flex gap-x-2">
<a data-turbolinks="false" href="{{ route('me.show') }}">
<x-client.client-button>
<x-icons.home />
</x-client.client-button>
</a>
<div onclick="reloadClient()">
<x-client.client-button>
<x-icons.reload />
</x-client.client-button>
</div>
<div onclick="toggleFullscreen()">
<x-client.client-button>
<x-icons.fullscreen />
</x-client.client-button>
</div>
<x-client.client-button classes="flex items-center justify-center gap-x-1">
<x-icons.user />
<span id="online-count"></span>
</x-client.client-button>
</div>
<iframe id="nitro" src="{{ sprintf('%s/index.html?sso=%s', setting('nitro_path'), $sso) }}"
class="absolute top-0 left-0 m-0 h-full w-full overflow-hidden border-none p-0"></iframe>
{{-- Show disconnected message on client if the user has been disconnected --}}
<div id="disconnected" class="h-screen w-full">
<div class="absolute h-full w-full bg-black/50"></div>
<div class="relative flex h-full w-full flex-col items-center justify-center gap-4">
<h2 class="text-2xl text-white">
{{ __('Whoops! It seems like you have been disconnected...') }}
</h2>
<div class="flex gap-x-4">
<button
class="py-2 px-4 text-white rounded bg-[#eeb425] hover:bg-[#e3aa1e] border-2 border-[#cf9d15] transition ease-in-out"
onclick="reloadClient()">
{{ __('Reload client') }}
</button>
<a href="{{ route('me.show') }}">
<x-form.secondary-button>
{{ __('Back to website') }}
</x-form.secondary-button>
</a>
</div>
</div>
</div>
<script>
function toggleFullscreen() {
if (document.fullscreenElement) {
document.exitFullscreen();
return;
}
document.documentElement.requestFullscreen();
}
function reloadClient() {
window.location.href = window.location;
}
window.addEventListener('DOMContentLoaded', () => {
function getOnlineUserCount() {
fetch('{{ route('api.online-count') }}')
.then(function(response) {
return response.json();
})
.then(function(response) {
document.getElementById('online-count').innerHTML = response.data.onlineCount;
});
}
getOnlineUserCount();
setInterval(function() {
getOnlineUserCount();
}, 15000);
});
</script>
<script src="{{ asset('assets/js/atom.js') }}"></script>
</body>
</html>