Advertisement
Guest User

d

a guest
Feb 26th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.57 KB | None | 0 0
  1. <?php
  2. /** ************************************************\
  3. * Iplace CMS \
  4. * @copyright 2014 \
  5. * @since 2013 \
  6. * @author Jasler.nl \
  7. * @link http://jasler.nl/iplace/ \
  8. * @deprecated OLDER VERSIONS LOWER THAN THIS ONE \
  9. * @name Iplace CMS \
  10. * @license FREE LIFE LICENCE \
  11. * @tutorial http://jasler.nl/iplace/tutorial/ /
  12. * /
  13. * DON'T CHANGE SOMETHING IF YOU DON'T /
  14. * KNOW HOW IT WORKS! /
  15. * /
  16. * © 2013 Iplace CMS Project & Iplace Hotel /
  17. * ORIGINAL CMS MAKER: JASPER VRIENDS - JASLER.NL |
  18. *****************************************************/
  19.  
  20. $myClientEmulator = 1;
  21.  
  22. if($myClientEmulator == 1) { // Plus Emulator
  23. require("./client_plus_emu.php");
  24. die;
  25. }else if($myClientEmulator == 2) { // Phoenix Emulator
  26. require("./client_phoenix_emu.php");
  27. die;
  28. }else{
  29. // Other emulator
  30. }
  31.  
  32. $LOGIN_TRUE = true;
  33. include("./global.php");
  34.  
  35. $hotelRoomForwardId = "1"; // Do you want forward your users automaticly to a room?
  36. // Just put the ID of the room here :) (Or not? A random not exist room number like 03945693563905639563956395639563956389563956 or 'false')
  37. ?>
  38. <html>
  39. <head>
  40. <title><?php echo $_WEBSITE["HTL"]["name"] ?> Hotel: Client</title>
  41. <script type="text/javascript">
  42. var habboName = "<?php echo $_USER["AVATAR"]["username"] ?>";
  43. var habboReqPath = "<?php echo $_WEBSITE['CMS']['url'] ?>";
  44. var habboStaticFilePath = "http://images.habbo.com/habboweb/<?php echo $_WEBSITE["CMS"]["webbuild"]; ?>/web-gallery";
  45. var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
  46. var habboPartner = "";
  47. var habboDefaultClientPopupUrl = "<?php echo $_WEBSITE['CMS']['url'] ?>/client";
  48. window.name = "ClientWndw";
  49. if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }
  50. </script>
  51.  
  52. <script src="http://jasler.nl/hybonehtl/client/libs2.js" type="text/javascript"></script>
  53. <script src="http://jasler.nl/hybonehtl/client/visual.js" type="text/javascript"></script>
  54. <script src="http://jasler.nl/hybonehtl/client/libs.js" type="text/javascript"></script>
  55. <script src="http://jasler.nl/hybonehtl/client/common.js" type="text/javascript"></script>
  56. <!--script src="<?php echo $_WEBSITE['CMS']['url']; ?>/client/hyboneclientaddon_v6.js" type="text/javascript"></script-->
  57. <link rel="stylesheet" href="http://jasler.nl/hybonehtl/css/website.css" type="text/css" />
  58.  
  59. <link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $_WEBSITE["CMS"]["webbuild"]; ?>/web-gallery/static/styles/common.css" type="text/css" />
  60.  
  61. <link rel="stylesheet" href="http://images.habbo.com/habboweb/<?php echo $_WEBSITE["CMS"]["webbuild"]; ?>/web-gallery/static/styles/habboflashclient.css" type="text/css" />
  62.  
  63. <noscript>
  64. <meta http-equiv="refresh" content="0;url=/client/nojs" />
  65. </noscript>
  66.  
  67. <link rel="stylesheet" href="<?php echo $_WEBSITE['CMS']['url']; ?>/client/client.css" type="text/css" />
  68. <script src="http://jasler.nl/hybonehtl/client/habboflashclient_v4.js" type="text/javascript"></script>
  69.  
  70. <script type="text/javascript">
  71. FlashExternalInterface.loginLogEnabled = true;
  72.  
  73. FlashExternalInterface.logLoginStep("web.view.start");
  74.  
  75. if (top == self) {
  76. FlashHabboClient.cacheCheck();
  77. }
  78.  
  79. var flashvars = {
  80. "client.allow.cross.domain" : "1",
  81. "client.notify.cross.domain" : "0",
  82. "connection.info.host" : "<?php echo $_WEBSITE['CLIENT']['server_ip']; ?>",
  83. "connection.info.port" : "<?php echo $_WEBSITE['CLIENT']['server_port']; ?>",
  84. "site.url" : "<?php echo $_WEBSITE['CMS']['url'] ?>",
  85. "url.prefix" : "<?php echo $_WEBSITE['CMS']['url'] ?>",
  86. "client.reload.url" : "<?php echo $_WEBSITE['CMS']['url'] ?>/client_nl",
  87. "client.fatal.error.url" : "<?php echo $_WEBSITE['CMS']['url'] ?>/disconnected",
  88. "client.connection.failed.url" : "<?php echo $_WEBSITE['CMS']['url'] ?>/disconnected",
  89. "external.variables.txt" : "<?php echo $_WEBSITE['CLIENT']['external_vars'] ?>",
  90. "external.texts.txt" : "<?php echo $_WEBSITE['CLIENT']['external_texts']; ?>",
  91. "productdata.load.url" : "<?php echo $_WEBSITE['CLIENT']['product_data']; ?>", <?php /** if($user_rank !== "9"){ echo $_WEBSITE['CLIENT']['product_data']; }else{ echo 'http://jasler.nl/hybone_swfs/productdata_en.txt'; /*}*/ ?>
  92.  
  93. "furnidata.load.url" : "<?php echo $_WEBSITE['CLIENT']['furni_data'] ?>",
  94. "use.sso.ticket" : "1",
  95. "sso.ticket" : "<?php echo createSSOticket($_USER["AVATAR"]["id"]); ?>",
  96. "processlog.enabled" : "1",
  97. "account_id" : "1",
  98. "client.starting" : "Wacht alsjeblieft! <?php echo $_WEBSITE['HTL']['name']; ?> start op :)",
  99. "flash.client.url" : "<?php echo $_WEBSITE['CLIENT']['swf_folder'] ?>/",
  100. "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
  101. "has.identity" : "1",
  102. "flash.client.origin" : "popup" ,
  103. "forward.type" : "<?php if(isset($_GET["forwardId"])) { echo $_GET["forwardId"]; }else if(getInformationATR($_USER["AVATAR"]["id"], "home_room") !== "0") { echo "2"; }else{ echo "2"; } ?>",
  104. "forward.id" : "<?php if(isset($_GET["roomId"])) { echo $_GET["roomId"]; }else if(getInformationATR($_USER["AVATAR"]["id"], "home_room") !== "0") { echo getInformationATR($_USER["AVATAR"]["id"], "home_room"); }else{ echo $hotelRoomForwardId; }?>",
  105.  
  106.  
  107. };
  108.  
  109. var params = {
  110. "base" : "<?php echo $_WEBSITE['CLIENT']['swf_folder'] ?>/",
  111. "allowScriptAccess" : "always",
  112. "menu" : "false",
  113. };
  114.  
  115. if (!(HabbletLoader.needsFlashKbWorkaround())) {
  116. params["wmode"] = "opaque";
  117. }
  118.  
  119. FlashExternalInterface.signoutUrl = "{}";
  120.  
  121. var clientUrl = "<?php echo $_WEBSITE['CLIENT']['swf_hotelswf'] ?>";
  122.  
  123. swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/<?php echo $_WEBSITE["CMS"]["webbuild"]; ?>/web-gallery/flash/expressInstall.swf", flashvars, params);
  124.  
  125. window.onbeforeunload = unloading;
  126.  
  127. function unloading() {
  128. var clientObject;
  129.  
  130. if (navigator.appName.indexOf("Microsoft") != -1) {
  131. clientObject = window["flash-container"];
  132. } else {
  133. clientObject = document["flash-container"];
  134. }
  135.  
  136. try {
  137. clientObject.unloading();
  138. } catch (e) {
  139.  
  140. }
  141. }
  142. </script>
  143. <style>
  144. #WindowAlerts {
  145. position: absolute;
  146. width: 460px;
  147. right: 0px;
  148. top: 0px;
  149. z-index: 9;
  150. }
  151.  
  152. .habblet-container {
  153. margin: 5px;
  154. background: #FFFFFF;
  155. border: 1px solid #86B1BD;
  156. -webkit-border-radius: 7px;
  157. -moz-border-radius: 7px;
  158. border-radius: 7px;
  159. }
  160.  
  161. .habblet-container .i1 {
  162. background: #FFFFFF;
  163. }
  164.  
  165. .habblet-container .i2 {
  166. padding: 0;
  167. border: 0;
  168. background: #FFFFFF;
  169. }
  170.  
  171. #WindowAlerts .innertext_t {
  172. padding: 5px;
  173. color: #000000;
  174. }
  175.  
  176. /* habbo style buttons */
  177. .habbobutton{
  178. height: 25px;
  179. border:solid 2px black;
  180. border-radius: 3px;
  181. cursor: pointer;
  182. padding:0px 15px 2px 15px;
  183. font-weight: bold;
  184. font-size: 11px;
  185. font-family: Verdana;
  186. }
  187.  
  188. .habbobutton.green{
  189. background-color: #2C7E00;
  190. box-shadow: inset 1px 1px 0px 0px #2C7E00, inset -6px 0px 0px -5px #2C7E00, inset 0px 11px 0px 0px #3BA800;
  191. color: white;
  192. }
  193.  
  194. .habbobutton.green:hover{
  195. background-color: #339D00;
  196. box-shadow: inset 1px 1px 0px 0px #339D00, inset -6px 0px 0px -5px #339D00, inset 0px 11px 0px 0px #45CB00;
  197. }
  198.  
  199. .habbobutton.white{
  200. background-color: #CCCCCC;
  201. box-shadow: inset 1px 1px 0px 0px #CCCCCC, inset -6px 0px 0px -5px #CCCCCC, inset 0px 11px 0px 0px #fff;
  202. color: black;
  203. }
  204.  
  205. .habbobutton.white:hover{
  206. background-color: #EAEAEA;
  207. box-shadow: inset 1px 1px 0px 0px #EAEAEA, inset -6px 0px 0px -5px #EAEAEA, inset 0px 11px 0px 0px #fff;
  208. }
  209.  
  210. .habbobutton.grey{
  211. background-color: #606060;
  212. box-shadow: inset 1px 1px 0px 0px #606060, inset -6px 0px 0px -5px #606060, inset 0px 11px 0px 0px #888888;
  213. color: white;
  214. }
  215.  
  216. .habbobutton.grey:hover{
  217. background-color: #7C7C7C;
  218. box-shadow: inset 1px 1px 0px 0px #7C7C7C, inset -6px 0px 0px -5px #7C7C7C, inset 0px 11px 0px 0px #A8A8A8;
  219. }
  220.  
  221. .habbobutton.red{
  222. background-color: #B50000;
  223. box-shadow: inset 1px 1px 0px 0px #B50000, inset -6px 0px 0px -5px #B50000, inset 0px 11px 0px 0px #DE0000;
  224. color: white;
  225. }
  226.  
  227. .habbobutton.red:hover{
  228. background-color: #D70000;
  229. box-shadow: inset 1px 1px 0px 0px #D70000, inset -6px 0px 0px -5px #D70000, inset 0px 11px 0px 0px #FF1616;
  230. }
  231.  
  232. .habbobutton.purple{
  233. background-color: #800080;
  234. box-shadow: inset 1px 1px 0px 0px #800080, inset -6px 0px 0px -5px #800080, inset 0px 11px 0px 0px #D500D5;
  235. color: white;
  236. }
  237.  
  238. .habbobutton.purple:hover{
  239. background-color: #C600C6;
  240. box-shadow: inset 1px 1px 0px 0px #C600C6, inset -6px 0px 0px -5px #C600C6, inset 0px 11px 0px 0px #FF1CFF;
  241. }
  242.  
  243. .habbobutton.orange{
  244. background-color: #D56A00;
  245. box-shadow: inset 1px 1px 0px 0px #D56A00, inset -6px 0px 0px -5px #D56A00, inset 0px 11px 0px 0px #E67300;
  246. color: white;
  247. }
  248.  
  249. .habbobutton.orange{
  250. background-color: #D56A00;
  251. box-shadow: inset 1px 1px 0px 0px #D56A00, inset -6px 0px 0px -5px #D56A00, inset 0px 11px 0px 0px #E67300;
  252. color: white;
  253. }
  254.  
  255. .habbobutton.orange:hover{
  256. background-color: #F07800;
  257. box-shadow: inset 1px 1px 0px 0px #F07800, inset -6px 0px 0px -5px #F07800, inset 0px 11px 0px 0px #FF8204;
  258. color: white;
  259. }
  260.  
  261. #client-ui.x-workaround-feed { background-color: #FFFFFF }
  262. .client-content { color: #FFFFFF }
  263.  
  264. body {
  265. background: #FFFFFF;
  266. }
  267. </style>
  268. </head>
  269. <body id="client" class="flashclient" onload="StartChecker()">
  270. <div id="overlay"></div>
  271. <div id="WindowAlerts"></div>
  272. <img src="http://images.habbo.com/habboweb/<?php echo $_WEBSITE["CMS"]["webbuild"]; ?>/web-gallery/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" />
  273. <div id="overlay"></div>
  274. <div id="client-ui" >
  275. <div id="flash-wrapper">
  276. <div id="flash-container">
  277. <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
  278.  
  279. <div class="cbb clearfix">
  280. <h2 class="title">Please update your Flash Player to the latest version.</h2>
  281. <div class="box-content">
  282. <p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
  283. <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/<?php echo $_WEBSITE["CMS"]["webbuild"]; ?>/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
  284. </div>
  285. </div>
  286.  
  287. </div>
  288. <script type="text/javascript">
  289. $('content').show();
  290. </script>
  291. <noscript>
  292. <div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
  293. <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
  294. </div>
  295. </noscript>
  296. </div>
  297. </div>
  298.  
  299. </div>
  300. <div style="display: none">
  301.  
  302. <div id="habboCountUpdateTarget">
  303. {status}
  304. </div>
  305. <script language="JavaScript" type="text/javascript">
  306. setTimeout(function() {
  307. HabboCounter.init(600);
  308. }, 20000);
  309. </script>
  310. </div>
  311. <script type="text/javascript">
  312. RightClick.init("flash-wrapper", "flash-container");
  313. if (window.opener && window.opener != window && typeof window.opener.location.href != "undefined") {
  314. window.opener.location.replace(window.opener.location.href);
  315. }
  316. $(document.body).addClassName("js");
  317. HabboClient.startPingListener();
  318. </script>
  319.  
  320. <script type="text/javascript">
  321. HabboView.run();
  322. </script>
  323.  
  324. <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement