Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once('./include/core.php');
- mysql_query("UPDATE users SET auth_ticket = '', auth_ticket = '".GenerateTicket()."', ip_last = '', ip_last = '".$remote_ip."' WHERE id = '".$my_id."'") or die(mysql_error());
- $ticketsql = mysql_query("SELECT * FROM users WHERE id = '".$my_id."'") or die(mysql_error());
- $ticketrow = mysql_fetch_assoc($ticketsql);
- if(!isset($_SESSION['username'])){
- header("Location: ".$path."/login_popup");
- exit();
- }
- require_once('./templates/room/ROOM-iRLi64isqi.php');
- if($user_rank < 2 && $online_count >= $limit){
- if(!isset($_SESSION['acp']) && $user_rank > 5){
- echo"<script>alert(\"Bitte log dich ins Housekeeping ein, damit du ins Hotel einchecken kannst.\");</script>
- <meta http-equiv=\"refresh\" content=\"0;url=".$adminpath."/p/login&do=secretcode\">";
- }
- $pagename = "Clientlimit";
- $body_id = "logout";
- require_once('./templates/login_subheader.php');
- require_once('./templates/login_header.php');
- ?>
- <br>
- <div id="intermediate" >
- <h2><center>Clientlimit</center></h2>
- <div id="enter-hotel">
- <div class="open enter-btn">
- <a href="<?php echo $path; ?>/me" target="me" onclick="return onClientOpen(this)">Einchecken<i></i></a><b></b>
- </div>
- </div>
- <div id="info">
- Zurzeit sind <b><?php echo $online_count; ?></b> Online!<br>Clientlimit: <b><?php echo $client_limit['value']; ?></b><br><br>Sobald <b><?php echo $online_count + 1 - $client_limit['value']; ?></b> Mitglieder Offline gegangen sind, kannst du Einchecken!
- </div>
- <div id="enter-mypage">
- <a href="<?php echo $path; ?>/client" class="new-button green-button" style="left: -250px;"><b>Aktualsieren »</b><i></i></a>
- <a href="<?php echo $path; ?>" class="new-button red-button" style="left: -250px;"><b>« Zurück</b><i></i></a>
- </div>
- <?php require_once('./templates/login_footer.php'); }else{ require_once('./templates/client_subheader.php'); ?>
- <script type="text/javascript">
- function DoResize()
- {
- var nHeight;
- if (typeof window.innerHeight == 'undefined')
- {
- nHeight = document.body.clientHeight -40;
- }
- else
- {
- nHeight = window.innerHeight -40;
- }
- document.getElementById('flash').style.height = nHeight+'px';
- }
- var flashvars = {
- "client.allow.cross.domain" : "1",
- "client.notify.cross.domain" : "0",
- "connection.info.host" : "127.0.0.1",
- "connection.info.port" : "30000",
- "site.url" : "http://127.0.0.1",
- "url.prefix" : "<?php echo $path; ?>",
- "client.reload.url" : "http://127.0.0.1/client",
- "client.fatal.error.url" : "http://127.0.0.1/clientutils",
- "client.connection.failed.url" : "http://127.0.0.1/clientutils",
- "external.variables.txt" : "<?php echo FetchSITESetting('client_variables'); ?>",
- "external.texts.txt" : "<?php echo FetchSITESetting('client_texts'); ?>",
- "productdata.load.url" : "<?php echo FetchSITESetting('client_productdata'); ?>",
- "furnidata.load.url" : "<?php echo FetchSITESetting('client_furnidata'); ?>",
- "use.sso.ticket" : "1",
- "sso.ticket" : "<?php echo $ticketrow['auth_ticket']; ?>",
- "processlog.enabled" : "1",
- "account_id" : "<?php echo $my_id; ?>",
- "client.starting" : "Bitte warten! <?php echo $shortname; ?> wird geladen.",
- "flash.client.url" : "http://127.0.0.1/GAMEDATA/xubbo.swf",
- "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
- "has.identity" : "1",
- "flash.client.origin" : "popup"
- };
- var params = {
- "base" : "<?php echo FetchSITESetting('client_swf_path'); ?>",
- "allowScriptAccess" : "always",
- "menu" : "false",
- "wmode" : "opaque"
- };
- FlashExternalInterface.signoutUrl = "<?php echo $path; ?>/account/logout?token=<?php echo sha1($myrow['password']); ?>";
- var clientUrl = "<?php echo FetchSITESetting('client_habbo_swf'); ?>";
- swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "hhnewloader/expressInstall.swf", flashvars, params);
- window.onbeforeunload = unloading;
- function unloading() {
- var clientObject;
- if (navigator.appName.indexOf("Microsoft") != -1) {
- clientObject = window["flash-container"];
- } else {
- clientObject = document["flash-container"];
- }
- try {
- clientObject.unloading();
- } catch (e) {}
- }
- //window.onresize = DoResize;
- window.onload = DoResize;
- </script>
- </head>
- <meta name="build" content="63-BUILD406 - 09.05.2011 23:04 - de" />
- </head>
- <body id="client" class="flashclient">
- <div id="overlay"></div>
- <div id="client-ui">
- <div id="flash-wrapper">
- <div id="flash-container">
- <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
- <div class="cbb clearfix">
- <h2 class="title">Bitte besorg dir die neueste Adobe Flash Player Version.</h2>
- <div class="box-content">
- <p>Hier kannst Du den Adobe Flashplayer herunterladen und installieren: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. Mehr Informationen und Anweisungen zur Installation sind hier zu finden: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">Mehr Informationen</a></p>
- <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/317/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $('content').show();
- </script>
- <noscript>
- <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
- <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
- </div>
- </noscript>
- </div>
- </div></div>
- <div id="content" class="client-content"></div>
- </body>
- </html>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment