Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.29 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. session_start();
  4. define("ITS_OK", true);
  5.  
  6. require_once("./inc/config.php");
  7. require_once("./inc/functions.php");
  8. require_once("./inc/lang.php");
  9.  
  10. if(!isUserLoggedIn()) { header("Location: ".cmsSettings("site_url")."home"); }
  11.  
  12. if(isMaintenance())
  13. {
  14. header("Location: ".cmsSettings("site_url")."maintenance");
  15. }
  16.  
  17. $SSO = SSO();
  18. mysql_query("UPDATE users SET auth_ticket = '', auth_ticket = '".$SSO."', last_online = '".protect(time())."', ip_last = '', ip_last = '".protect($_SERVER["REMOTE_ADDR"])."' WHERE id = '".userInfo(protect($_SESSION["login_username"]), "id")."'") or die(mysql_error());
  19. ?>
  20. <!DOCTYPE html>
  21. <html lang="de">
  22. <head>
  23. <title><?php echo cmsSettings("site_name"); ?>: Client</title>
  24. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
  25. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  26. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  27.  
  28. <meta name="description" content="<?php echo cmsSettings("site_desc"); ?>">
  29. <meta name="keywords" content="<?php echo cmsSettings("site_keys"); ?>">
  30.  
  31. <script type="text/javascript">
  32. var andSoItBegins = (new Date()).getTime();
  33. </script>
  34.  
  35. <link rel="shortcut icon" href="<?php echo cmsSettings("site_url"); ?>favicon.ico">
  36. <script src="<?php echo cmsSettings("site_url"); ?>client/libs2.js" type="text/javascript"></script>
  37. <script src="<?php echo cmsSettings("site_url"); ?>client/visual.js" type="text/javascript"></script>
  38. <script src="<?php echo cmsSettings("site_url"); ?>client/libs.js" type="text/javascript"></script>
  39. <script src="<?php echo cmsSettings("site_url"); ?>client/common.js" type="text/javascript"></script>
  40.  
  41. <link rel="stylesheet" href="<?php echo cmsSettings("site_url"); ?>client/common.css" type="text/css" />
  42. <link rel="stylesheet" href="<?php echo cmsSettings("site_url"); ?>client/process.css" type="text/css" />
  43. <link rel="stylesheet" href="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/client/style.css" type="text/css" />
  44. <link rel="stylesheet" href="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/css/alertify.corec.css" />
  45. <link rel="stylesheet" href="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/css/alertifyc.default.css" />
  46.  
  47. <link rel="stylesheet" href="<?php echo cmsSettings("site_url"); ?>client/habboflashclient.css" type="text/css" />
  48. <script src="<?php echo cmsSettings("site_url"); ?>client/habboflashclient.js" type="text/javascript"></script>
  49. <script type="text/javascript" src="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/js/alertify.js"></script>
  50. <script src="<?php echo cmsSettings("site_url"); ?>client/custom.js?<?php echo rand(10000, 99999); ?>" type="text/javascript"></script>
  51.  
  52. <script type="text/javascript">
  53. document.habboLoggedIn = true;
  54. var habboName = "<?php echo userInfo(protect($_SESSION["login_username"]), "username"); ?>";
  55. var habboId = <?php echo userInfo(protect($_SESSION["login_username"]), "id"); ?>;
  56. var facebookUser = false;
  57. var habboReqPath = "<?php echo cmsSettings("site_url"); ?>client";
  58. var habboStaticFilePath = "http://images-eu.habbo.com/habboweb/<?php echo cmsSettings("habbo_build"); ?>/web-gallery";
  59. var habboImagerUrl = "http://www.habbo.de/habbo-imaging/";
  60. var habboPartner = "";
  61. var habboDefaultClientPopupUrl = "<?php echo cmsSettings("site_url"); ?>client.php";
  62. window.name = "<?php echo sha1(userInfo(protect($_SESSION["login_username"]), "username")); ?>";
  63. if (typeof HabboClient != "undefined") {
  64. HabboClient.windowName = "<?php echo sha1(userInfo(protect($_SESSION["login_username"]), "username")); ?>";
  65. }
  66. </script>
  67. <noscript>
  68. <meta http-equiv="refresh" content="0;url=/client/nojs"/>
  69. </noscript>
  70.  
  71. <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=Latin">
  72.  
  73. <script type="text/javascript">
  74. function DoResize()
  75. {
  76. var nHeight;
  77. if (typeof window.innerHeight == 'undefined')
  78. {
  79. nHeight = document.body.clientHeight -200;
  80. }
  81. else
  82. {
  83. nHeight = window.innerHeight -200;
  84. }
  85.  
  86. document.getElementById('flash').style.height = nHeight+'px';
  87. }
  88.  
  89. FlashExternalInterface.loginLogEnabled = true;
  90. FlashExternalInterface.logLoginStep("web.view.start");
  91.  
  92. if (top == self) {
  93. FlashHabboClient.cacheCheck();
  94. }
  95. var flashvars = {
  96. "client.allow.cross.domain": "1",
  97. "client.notify.cross.domain": "0",
  98. "connection.info.host": "<?php echo cmsSettings("game_host"); ?>",
  99. "connection.info.port": "<?php echo cmsSettings("game_port"); ?>",
  100. "site.url": "<?php echo cmsSettings("site_url"); ?>/clienterror",
  101. "url.prefix": "<?php echo cmsSettings("site_url"); ?>",
  102. "client.reload.url": "<?php echo cmsSettings("site_url"); ?>client.php",
  103. "client.fatal.error.url": "<?php echo cmsSettings("site_url"); ?>clienterror",
  104. "client.connection.failed.url": "<?php echo cmsSettings("site_url"); ?>clienterror",
  105. "external.variables.txt": "<?php echo cmsSettings("game_variables"); ?>?username=<?php echo userInfo(protect($_SESSION["login_username"]), "username")."&".rand(10000, 99999); ?>",
  106. "external.texts.txt": "<?php echo cmsSettings("game_texts")."?".rand(10000, 99999); ?>",
  107. "external.override.variables.txt": "<?php echo cmsSettings("game_override_variables")."?".rand(10000, 99999); ?>",
  108. "external.override.texts.txt": "<?php echo cmsSettings("game_override_texts")."?".rand(10000, 99999); ?>",
  109. "productdata.load.url": "<?php echo cmsSettings("game_productdata")."?".rand(10000, 99999); ?>",
  110. "furnidata.load.url": "<?php echo cmsSettings("game_furnidata")."?".rand(10000, 99999); ?>",
  111. "use.sso.ticket": "1",
  112. "sso.ticket": "<?php echo userInfo(protect($_SESSION["login_username"]), "auth_ticket"); ?>",
  113. "safechat.list.txt": "<?php echo cmsSettings("game_safechat")."?".rand(10000, 99999); ?>",
  114. "hotelview.banner.url":"<?php echo cmsSettings("game_banner")."?".rand(10000, 99999); ?>",
  115. "processlog.enabled": "1",
  116. "account_id": "<?php echo userInfo(protect($_SESSION["login_username"]), "id"); ?>",
  117. "client.starting": "<?php echo cmsSettings("site_name")." ".$lng["loading_hotel"]; ?>",
  118. "flash.client.url": "<?php echo cmsSettings("game_swf_base"); ?>",
  119. "user.hash": "<?php echo sha1(userInfo(protect($_SESSION["login_username"]), "username")); ?>",
  120. "has.identity": "1",
  121. "flash.client.origin": "popup",
  122. "forward.type" : "2",
  123. "forward.id" : "0"
  124. };
  125.  
  126. var params = {
  127. "base" : "<?php echo cmsSettings("game_swf_base"); ?>",
  128. "allowScriptAccess" : "always",
  129. "menu" : "false"
  130.  
  131. };
  132.  
  133. params["wmode"] = "opaque";
  134. FlashExternalInterface.signoutUrl = "<?php echo cmsSettings("site_url"); ?>logout";
  135. var clientUrl = "<?php echo cmsSettings("game_swf_habbo")."?".rand(10000, 99999); ?>";
  136.  
  137. swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images-eussl.habbo.com/<?php echo cmsSettings("habbo_build"); ?>/web-gallery/flash/expressInstall.swf", flashvars, params);
  138. window.onbeforeunload = unloading;
  139. function unloading() {
  140. var clientObject;
  141. if (navigator.appName.indexOf("Microsoft") != -1) {
  142. clientObject = window["flash-container"];
  143. } else {
  144. clientObject = document["flash-container"];
  145. }
  146. try {
  147. clientObject.unloading();
  148. } catch (e) {}
  149. }
  150. window.onresize = DoResize;
  151. window.onresize = DoResize;
  152. </script>
  153.  
  154. <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  155. <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  156.  
  157. <script type="text/javascript">
  158. var z = 1;
  159. function showDialog(id, xx)
  160. {
  161. document.getElementById("hotelalert_" + id).style.display = "block";
  162. document.getElementById("hotelalert_" + id).style.zIndex = z++;
  163. $("#hotelalert_" + id).draggable();
  164.  
  165. if(id == 1) { loadEvents(); }
  166. if(id == 2) { loadTopUsers(); }
  167. if(id == 3) { loadCouples(); }
  168. if(id == 4) { loadYT(); }
  169. if(id == 5) { loadPL(xx); }
  170. if(id == 6) { loadPLK(); }
  171. if(id == 7) { loadBS(); cookies(); }
  172. if(id == 10) { editMyBot(xx); }
  173. }
  174. function refreshDialog(id)
  175. {
  176. document.getElementById("hotelalert_" + id).style.zIndex = z++;
  177. }
  178.  
  179. function hideDialog(id) {
  180. $("#hotelalert_" + id).fadeOut();
  181. }
  182.  
  183. function usersOnline() {
  184. var senddata = current_url() + "ajax/userscounter.php";
  185. $.ajax({
  186. async:false,
  187. cache:false,
  188. url:senddata,
  189. type:"GET",
  190. dataType:"text",
  191. success:function (data) {
  192. $("#onlineUsers").html(data);
  193. }
  194. });
  195. window.setTimeout(usersOnline, 3000);
  196. }
  197.  
  198. function current_url() {
  199. return "templates/<?php echo cmsSettings("site_template"); ?>/";
  200. }
  201.  
  202. function showBtns () {
  203. document.getElementById("clientBar").style.display = "block";
  204. window.setTimeout(usersOnline, 3000);
  205. }
  206. window.setTimeout(showBtns, 14000);
  207. </script>
  208.  
  209. <style type="text/css">
  210. @font-face {
  211. font-family: 'ubuntu-regular';
  212. font-style: normal;
  213. font-weight: normal;
  214. src: url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/fonts/ubuntu.ttf') format('truetype');
  215. }
  216. .clientwindow{position:absolute;z-index:1;border-style:solid;border-width:33px 6px 7px;-moz-border-image:url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/img/client/box_clientwindow.png') 33 6 7 repeat;-webkit-border-image:url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/img/client/box_clientwindow.png') 33 6 7 repeat;-o-border-image:url(../img/client/box_clientwindow.png) 33 6 7 repeat;border-image:url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/img/client/box_clientwindow.png') 33 6 7 fill repeat;padding-top:5px;}
  217. .clientwindow .closebtn{background-image:url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/img/client/close_btn.png');width:19px;height:20px;float:right;margin-top:-30px;}
  218. .clientwindow .closebtn:hover{background-position:38px 0;}.clientwindow .closebtn:active{background-position:19px 0;}
  219. .clientwindow .heading{position:absolute;top:-22px;font-weight:bold;font-size:12px;text-align:center;width:100%;z-index:-1;}
  220. .hotelalert{background:#E9E9E1;height:400px;border:1px solid black;border-bottom:2px solid black;border-radius:4px;display:none;width:380px;margin:0px 15px;box-shadow:inset 0px 0px 0px 2px white,0px 0px 20px 0px black;color:#666666;margin:0 auto;position:absolute;left: 38%;top:57px;z-index:999999999999999999;}
  221. .hotelalert>.head{height:31px;background:#D39A5B;border-radius:3px 3px 0px 0px;border:2px solid #FBB469;border-bottom:1px solid black;text-align:center;font-weight:bold;cursor:move;line-height:29px;color:white;}
  222. .hotelalert>#close{background-image:url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/img/client/close_normal.png');width:19px;cursor:pointer;background-repeat:no-repeat;background-position:0 center;height:31px;float:right;margin-right:10px;}.hotelalert>#close:hover{background-image:url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/img/client/close_normal_hover.png');}.event{height:39px;background-color:#F0F0F0;border:1px solid #E5E5E5;border-radius:5px;position:relative;margin-right:3px;margin-bottom:3px;background-repeat:no-repeat;background-position:6px center;background-image:url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/img/client/waiting.png');}.event.active{background-color:#B3EAFF;border:1px solid #BADAE9;background-position:10px center;background-image:url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template"); ?>/img/client/running.png');}.event .name{position:absolute;color:rgba(0,0,0,0.8);font-size:15px;font-weight:bold;margin-left:40px;margin-top:5px;}.event .desc{position:absolute;color:rgba(0,0,0,0.6);margin-top:22px;margin-left:40px;}.event .time{position:absolute;right:10px;margin-top:5px;color:rgba(0,0,0,0.4);}b{font-weight:bold;}
  223. .h_red{height:31px;background:#D35B5B;border-radius:3px 3px 0px 0px;border:2px solid #FB6969;border-bottom:1px solid black;text-align:center;font-size:12px;font-weight:bold;cursor:move;line-height:29px;color:white;}
  224. .h_green{height:31px;background:#69c440;border-radius:3px 3px 0px 0px;border:2px solid #80d25b;border-bottom:1px solid black;text-align:center;font-size:12px;font-weight:bold;cursor:move;line-height:29px;color:white;}
  225. .h_orange{height:31px;background:#d5521f;border-radius:3px 3px 0px 0px;border:2px solid #e36f42;border-bottom:1px solid black;text-align:center;font-size:12px;font-weight:bold;cursor:move;line-height:29px;color:white;}
  226. .h_blue{height:31px;background:#367897;border-radius:3px 3px 0px 0px;border:2px solid #408CAF;border-bottom:1px solid black;text-align:center;font-size:12px;font-weight:bold;cursor:move;line-height:29px;color:white;}
  227. .h_pink{height:31px;background:#65182B;border-radius:3px 3px 0px 0px;border:2px solid #7b3345;border-bottom:1px solid black;text-align:center;font-size:12px;font-weight:bold;cursor:move;line-height:29px;color:white;}
  228. .clientshop { width: 590px; height: 613px; }
  229. .kekse { font-weight:bold;margin-top:-20px; font-size:15px; }
  230. .shopline { cursor: default; font-size: 12px; background: #203640; color: white; padding: 15px; border: 2px solid #3E6575; }
  231. .clientBar { padding: 7px 5px;background:url('<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template")."/img/client/top.png"; ?>') repeat scroll 0 0 transparent;border-bottom:1px solid #33352D; text-shadow: 1px 1px 1px black; border-radius: 4px;height:31px;width:100%;z-index:1;}
  232. .cursor { transition:opacity 1s; }
  233. .cursor:hover { cursor: pointer; opacity: 0.7; }
  234. #onlineUsers { float:left;margin-top: 8px;margin-left:10px;font-weight: bold; text-shadow: 1px 1px 0px grey; }
  235. </style>
  236. </head>
  237. <body style="overflow: hidden; cursor: auto;width: 100%; position: fixed;" id="client" class="flashclient">
  238. <div id="window_overlay"></div>
  239. <div class="hotelalert" id="hotelalert_1" onMouseDown="refreshDialog(1);">
  240. <div id="close" onClick="hideDialog(1);"></div>
  241. <div class="h_blue">Spiele</div>
  242. <div style="overflow-y: scroll; height: 365px">
  243. <div style="padding: 10px;" class="eeevents"></div>
  244. </div>
  245. </div>
  246. <div class="hotelalert" id="hotelalert_2" onMouseDown="refreshDialog(2);">
  247. <div id="close" onClick="hideDialog(2);"></div>
  248. <div class="h_orange">Top 5</div>
  249. <div style="overflow-y: scroll; height: 365px">
  250. <div style="padding: 10px;" class="top_users">
  251.  
  252. </div>
  253. </div>
  254. </div>
  255. <div class="hotelalert" id="hotelalert_3" onMouseDown="refreshDialog(3);">
  256. <div id="close" onClick="hideDialog(3);"></div>
  257. <div class="h_pink">Beziehungs-System</div>
  258. <div style="height: 365px">
  259. <div style="padding:0 10px;" class="couple_load">
  260.  
  261. </div>
  262. </div>
  263. </div>
  264. <div class="hotelalert" id="hotelalert_4" onMouseDown="refreshDialog(4);">
  265. <div id="close" onClick="hideDialog(4);"></div>
  266. <div class="h_red">YouTube Playlists</div>
  267. <div style="overflow-y: scroll; height: 365px">
  268. <div style="padding: 10px;" class="yt_load">
  269.  
  270. </div>
  271. </div>
  272. </div>
  273. <div class="hotelalert" id="hotelalert_5" onMouseDown="refreshDialog(5);">
  274. <div id="close" onClick="hideDialog(5);"></div>
  275. <div class="h_red playlist_title">-/- Playlist</div>
  276. <div style="overflow-y: scroll; height: 365px">
  277. <div style="padding: 10px;" class="playlist_load">
  278.  
  279. </div>
  280. </div>
  281. </div>
  282. <div class="hotelalert" id="hotelalert_6" onMouseDown="refreshDialog(6);">
  283. <div id="close" onClick="hideDialog(6);"></div>
  284. <div class="h_green">Meine Playlist - Verwalten</div>
  285. <div style="overflow-y: scroll; height: 365px">
  286. <div style="padding: 10px;" class="playlist_config">
  287.  
  288. </div>
  289. </div>
  290. </div>
  291. <div class="hotelalert clientshop" id="hotelalert_7" onMouseDown="refreshDialog(7);">
  292. <div id="close" onClick="hideDialog(7);"></div>
  293. <div class="h_blue">Client Shop</div>
  294. <div class="shopline">
  295. <div class="left" style="margin-top:11px;">
  296. <img src="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template")."/img/client/icon_1.png"; ?>" />
  297. </div>
  298. <div class="left" style="margin-left:10px;">
  299. <b style="font-size:15px;">Willkommen im <?php echo cmsSettings("site_name"); ?> Katalog!</b><br />
  300. Was immer dir bei <?php echo cmsSettings("site_name"); ?> am besten gef&auml;llt.
  301. </div>
  302. <div class="right">
  303. <span class="kekse"></span> <img src="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template")."/img/client/iconbig_kekse.png"; ?>" />
  304. </div>
  305. <div class="clear"></div>
  306. </div>
  307. <div style="padding: 10px 0 10px 10px;" class="clientShop">
  308.  
  309. </div>
  310. </div>
  311. <div class="hotelalert" style="height: 500px;width:420px;" id="hotelalert_10" onMouseDown="refreshDialog(10);">
  312. <div id="close" onClick="hideDialog(10);"></div>
  313. <div class="h_blue" id="botTitle">Bot bearbeiten</div>
  314. <div>
  315. <div style="padding: 10px;" class="editBotPnl">
  316.  
  317. </div>
  318. </div>
  319. </div>
  320. <div class="clientBar" id="clientBar" style="display:none;">
  321. <div class="left">
  322. <img class="cursor" onClick="showDialog(1, 0);" src="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template")."/img/client/icon_events.png"; ?>" />
  323. <img class="cursor" onClick="showDialog(2, 0);" src="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template")."/img/client/top_icon.png"; ?>" />
  324. <img class="cursor" onClick="showDialog(3, 0);" src="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template")."/img/client/icon_liebe.png"; ?>" />
  325. <img class="cursor" onClick="showDialog(4, 0);" src="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template")."/img/client/icon_youtube.png"; ?>" />
  326. <img class="cursor" onClick="showDialog(7, 0);" src="<?php echo cmsSettings("site_url")."templates/".cmsSettings("site_template")."/img/client/icon_client_shop.png"; ?>" />
  327. </div>
  328. <div id="onlineUsers">
  329. <?php echo getServerStatus("users_online"); ?> Mitglieder online
  330. </div>
  331. <div class="clear"></div>
  332. </div>
  333.  
  334. <div id="windows"></div>
  335. <div id="overlay"></div>
  336. <div id="client-ui" style="height: 94.1%">
  337. <div id="flash-wrapper">
  338. <div id="flash-container">
  339. <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
  340. <div class="cbb clearfix">
  341. <h2 class="title">Bitte besorg dir die neueste Adobe Flash Player Version.</h2>
  342. <div class="box-content">
  343. <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>
  344. <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>
  345. </div>
  346. </div>
  347. </div>
  348. <noscript>
  349. <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
  350. <p>Wenn du nicht automatisch weitergeleitet wirst <a href="/client/nojs">klick hier</a></p>
  351. </div>
  352. </noscript>
  353. </div>
  354. </div>
  355. </div>
  356. <div id="content" class="client-content"></div>
  357. </body>
  358. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement