Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.49 KB | None | 0 0
  1. <?php
  2.  
  3. require_once("../core.php") or die("abc");
  4. $path = file_get_contents("http://www.habbo.it/") or die("bb");
  5. $WebBuild = explode('var habboStaticFilePath = "http://images.habbo.it/habboweb/', $path);
  6. $WebBuild = explode('/web-gallery";', $WebBuild[1]);
  7. $WebBuild = trim($WebBuild[0]);
  8. require_once('API/facebook.php') or die("AA");
  9. $facebook = new Facebook(array('appId' => APP_ID, 'secret' => APP_SECRET, 'cookie' => true));
  10. $session = $facebook->getUser() or die("asd");
  11. $loginUrl = $facebook->getLoginUrl()or die("asd");
  12. $do = ($_GET['do'])or die("asd");
  13. $profile = $facebook->api('/me')or die("asd");
  14. $userq = mysql_query('SELECT * FROM users WHERE facebook_id = "'.$profile['id'].'"') or die(mysql_error());
  15. $user = mysql_fetch_array($userq)or die("asd");
  16. $userSQLnum = mysql_num_rows($userq)or die("asd");
  17. if($userSQLnum > 0){
  18. $_SESSION['username'] = $user['username'];
  19. $_SESSION['password'] = $user['password'];
  20. header("location:/security_check.php");
  21. }else{
  22. $email = utf8_decode($profile['mail']) or die("asd");
  23. $username = $_POST['username'];
  24. $scredits = "100000";
  25. $spixels = "90000";
  26. $hashed_pass = HoloHash($_POST['password'] , $username);
  27. if($profile['gender'] == "male"){ #
  28. //Le look des Garcon\\
  29. $lookgenerate = "hr-100-0.wa-2007-0.ha-1002-70.hd-180-7.ch-215-66.sh-305-62.lg-270-79";
  30. }
  31. //////////////////////
  32. if($profile['gender'] == "female"){
  33. //Le look des Filles\\
  34. $lookgenerate = "hr-545-39.wa-2011-.hd-600-8.ch-685-62.sh-725-62.he-1602-1315.lg-710-1315.ca-1812-,s-0";
  35. }
  36. $authticket = GenerateTicket();
  37. /////
  38. $missionide = "Compte cree via ".$sitename." facebook Application.";
  39.  
  40. if(!empty($_POST['username'])){
  41. mysql_query("INSERT INTO users (username, real_name, password, mail, credits, look, motto, account_created, last_online, ip_last, ip_reg, home_room,facebook_id) VALUES ('".$username."', '".FilterText($real_name)."', '".$hashed_pass."', '".$profile['email']."', '50000', '".$lookgenerate."', '".$motto."Benvenuto in $shortname Hotel! ;D', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), '".$_SERVER['REMOTE_ADDR']."', '".$_SERVER['REMOTE_ADDR']."', '0','".$profile['id']."')") or die(mysql_error());
  42. $user_id = mysql_insert_id();
  43. mysql_query("INSERT INTO user_stats (id, RoomVisits, OnlineTime, Respect, RespectGiven, GiftsGiven, GiftsReceived, DailyRespectPoints, DailyPetRespectPoints) VALUES ('".$user_id."', 0, 0, 0, 0, 0, 0, 3, 3)");
  44. mysql_query("INSERT INTO user_info (user_id, bans, cautions, reg_timestamp, login_timestamp, cfhs, cfhs_abusive) VALUES ('".$user_id."', '0', '0', UNIX_TIMESTAMP(), '0', '0', '0')");
  45. $_SESSION['username'] = $username;
  46. $_SESSION['password'] = $hashed_pass;
  47. Redirect("/security_check.php");
  48. die;
  49. }
  50. ?>
  51.  
  52. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  53.  
  54. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  55. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  56. <head>
  57. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  58. <title><?php echo $shortname; ?> - Facebook Connect</title>
  59. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  60. <script>$.noConflict();</script>
  61. <link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon"/>
  62. <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/1150/web-gallery/static/styles/quickregister.css" type="text/css" />
  63. <script src="/web-gallery/static/js/quickregister.js" type="text/javascript"></script>
  64.  
  65. <link rel="stylesheet" href="/web-gallery/static/styles/common.css" type="text/css" />
  66.  
  67. <script src="/web-gallery/static/js/libs2.js" type="text/javascript"></script>
  68. <script src="/web-gallery/static/js/visual.js" type="text/javascript"></script>
  69. <script src="/web-gallery/static/js/libs.js" type="text/javascript"></script>
  70. <script src="/web-gallery/static/js/common.js" type="text/javascript"></script>
  71. <!--[if IE 8]>
  72.  
  73. <link rel="stylesheet" href="/web-gallery/v2/styles/ie8.css" type="text/css" />
  74.  
  75. <![endif]-->
  76. <!--[if lt IE 8]>
  77.  
  78. <link rel="stylesheet" href="/web-gallery/v2/styles/ie.css" type="text/css" />
  79.  
  80. <![endif]-->
  81. <!--[if lt IE 7]>
  82.  
  83. <link rel="stylesheet" href="/web-gallery/v2/styles/ie6.css" type="text/css" />
  84.  
  85. <script src="/web-gallery/v2/static/js/pngfix.js" type="text/javascript"></script>
  86.  
  87. <script type="text/javascript">
  88.  
  89. try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
  90.  
  91. </script>
  92.  
  93.  
  94.  
  95. <style type="text/css">
  96.  
  97. body { behavior: url(/static/js/csshover.htc); }
  98.  
  99. </style>
  100.  
  101. <![endif]-->
  102. </head><body id="client" class="background-captcha">
  103. <div id="stepnumbers">
  104. <div class="step1focus">Username e Password</div>
  105. <div class="stephabbo"></div>
  106. </div>
  107. <div id="main-container">
  108. <div id="error-placeholder"></div>
  109. <h2>Registrati in hotel con Facebook</h2>
  110. <div class="delimiter_smooth">
  111. <h3><strong>Attenzione:</strong> L'user verra registrato con l'account di Facebook.</h3><br />
  112. <div class="delimiter_smooth">
  113. <h3>Questa e' la tua prima visita, dunque, scegli i tuoi dati.</h3><br />
  114. </div>
  115. <?php if(!empty($_SESSION['error_message'])){ ?>
  116. <div class="rounded-container"><div style="background-color: rgb(0, 0, 0); "><div style="margin-top: 0px; margin-right: 4px; margin-bottom: 0px; margin-left: 4px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(0, 0, 0); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(118, 19, 19); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(171, 28, 28); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(197, 32, 32); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div></div></div></div><div style="margin-top: 0px; margin-right: 2px; margin-bottom: 0px; margin-left: 2px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(0, 0, 0); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(119, 19, 19); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(202, 33, 33); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div></div></div><div style="margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(0, 0, 0); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(152, 25, 25); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div></div><div style="margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(119, 19, 19); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(0, 0, 0); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(202, 33, 33); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(118, 19, 19); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(171, 28, 28); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(197, 32, 32); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div></div><div class="rounded-done" style="background-color: #cb2121;">
  117. <div id="error-title" class="error">
  118. <?php echo $_SESSION['error_message']; ?><br>
  119. </div>
  120. </div><div style="background-color: rgb(0, 0, 0); "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(197, 32, 32); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(171, 28, 28); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(118, 19, 19); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(0, 0, 0); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(202, 33, 33); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div></div><div style="margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(119, 19, 19); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div><div style="margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(0, 0, 0); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(152, 25, 25); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div></div><div style="margin-top: 0px; margin-right: 2px; margin-bottom: 0px; margin-left: 2px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(0, 0, 0); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(119, 19, 19); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(202, 33, 33); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div></div></div><div style="margin-top: 0px; margin-right: 4px; margin-bottom: 0px; margin-left: 4px; height: 1px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(0, 0, 0); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(118, 19, 19); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(171, 28, 28); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(197, 32, 32); "><div style="height: 1px; overflow-x: hidden; overflow-y: hidden; margin-top: 0px; margin-right: 1px; margin-bottom: 0px; margin-left: 1px; background-color: rgb(203, 33, 33); "></div></div></div></div></div></div></div>
  121. <?php unset($_SESSION['error_message']);
  122. } ?>
  123. <div class="flat">&nbsp;</div>
  124. <div class="arrow">&nbsp;</div>
  125. <div class="flat">&nbsp;</div>
  126. </div>
  127. <form action="" id="captcha-form" method="post">
  128. <div id="inner-container">
  129. <div class="field">
  130. <label for="email-address">Username</label>
  131. <input type="text" id="pseudo" name="username" value=""/>
  132. <br> <br/>
  133. <label for="email-address">Password</label>
  134. <input type="password" id="password" name="password" value=""/>
  135. <br> <br/>
  136. </div>
  137. <input type="hidden" name="APP_FACEBOOK" value="<?php echo rand(1,500); ?>"/>
  138. <input type="hidden" name="hidden" value="hidden"/>
  139. </form>
  140. </div>
  141. <div id="select">
  142. <a href="/" id="back-link"></a>
  143. <div class="button">
  144. <a id="" href="#" onclick="document.forms['captcha-form'].submit();" class="area">Registrati</a>
  145. <span class="close"></span>
  146. </div>
  147. </div>
  148. </div>
  149. <script type="text/javascript">
  150.  
  151. HabboView.run();
  152.  
  153. </script>
  154. </body>
  155. </html>
  156. <?php
  157. }
  158. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement