Advertisement
Guest User

Untitled

a guest
Apr 9th, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.68 KB | None | 0 0
  1. <?php
  2.         session_start();
  3.         Include("core/general-settings.php");
  4.         $sessionKey = 'RevCMS-'.rand(9,999).'/'.substr(sha1(time()).'/'.rand(9,9999999).'/'.rand(9,9999999).'/'.rand(9,9999999),0,33);
  5.         $_SESSION['user']['auth_ticket'] = mysql_real_escape_string($sessionKey);
  6.         mysql_query("UPDATE users SET auth_ticket = '" . mysql_real_escape_string($_SESSION['user']['auth_ticket']) . "' WHERE id = '" . $_SESSION['userid'] . "' LIMIT 1");
  7.        
  8. ?>
  9. <html>
  10.     <head>
  11.         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  12.         <noscript><meta http-equiv="refresh" content="0; url=error/nojs.php" /></noscript>
  13.         <title>Client</title>
  14.         <meta name="description" content="Hotel is a Habbo Hotel private server powered by RevCMS 3.0" />
  15.         <meta name="keywords" content="Hotel, RevCMS, habbo, habbohotel, habbo retro, retro, private, server, private server" />
  16.         <meta name="author" content="Makarov" />
  17.         <meta name="author" content="Jacob Pollack - Design" />
  18.         <meta name="generator" content="3.0" />
  19.         <meta name="robots" content="index,follow" />
  20.         <meta name="googlebot" content="index,follow" />
  21.         <script type="text/javascript" src="assets/jquery.js"></script>
  22.         <script type="text/javascript" src="assets/swfobject.js"></script>
  23.     </head>
  24.     <body>
  25.     </body>
  26. </html>
  27. <style type="text/css">
  28.             * { margin: 0; padding: 0; }
  29.             html, #client { height: 100%; text-align: left; background-color: black; }
  30.             #client { position: absolute; overflow: hidden; left: 0; top: 0; right: 0; bottom: 0; }
  31.         </style>
  32.  
  33.         <script type="text/javascript">
  34.  
  35.             var BaseUrl = "http://80.82.215.162/swfhost/";
  36.  
  37.             var flashvars = {
  38.                     "client.starting" : "Welcome {$user->username}!",
  39.                     "client.allow.cross.domain" : "1",
  40.                     "client.notify.cross.domain" : "0",
  41.                     "connection.info.host" : "80.82.215.162",
  42.                     "connection.info.port" : "30000",
  43.                     "site.url" : "http://80.82.215.162/",
  44.                     "url.prefix" : "http://80.82.215.162",
  45.                     "client.reload.url" : "http://80.82.215.162/",
  46.                     "client.fatal.error.url" : "http://80.82.215.162/",
  47.                     "client.connection.failed.url" : "http://80.82.215.162/",
  48.                     "external.variables.txt" : "http://80.82.215.162/swfhost/external_variables.txt",
  49.                     "external.texts.txt" : "http://80.82.215.162/swfhost/external_flash_texts.txt",
  50.                     "external.override.variables.txt" : "http://80.82.215.162/swfhost/external_override_variables.txt",
  51.                     "productdata.load.url" : "http://80.82.215.162/swfhost/productdata.txt",
  52.                     "furnidata.load.url" : "http://80.82.215.162/swfhost/furnidata.txt",
  53.                     "use.sso.ticket" : "1",
  54.                     "sso.ticket" : "<?php echo $_SESSION['user']['auth_ticket']; ?>",
  55.                     "processlog.enabled" : "0",
  56.                     "flash.client.url" : "http://80.82.215.162/swfhost/",
  57.                     "flash.client.origin" : "popup"
  58.             };
  59.  
  60.             var params =
  61.                 {
  62.                 "base" : "http://80.82.215.162/swfhost/",
  63.                 "allowScriptAccess" : "always",
  64.                 "menu" : "false"
  65.             };
  66.  
  67.                 swfobject.embedSWF("http://80.82.215.162/swfhost/JabboSWF.swf", "client", "100%", "100%", "10.0.0", "http://80.82.215.162/RELEASE63-34888-34886-201107192308/expressInstall.swf", flashvars, params, null);
  68.  
  69.         </script>
  70.         <div id="client"></div>
  71.         </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement