Advertisement
Guest User

Untitled

a guest
Nov 4th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.43 KB | None | 0 0
  1. <?PHP
  2. #|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
  3. #| #|
  4. #| HabbyCMS - Site Web et Content Management System #|
  5. #| Copyright © 2012 Arkalium. Tout droit réservé. #|
  6. #| #|
  7. #|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
  8.  
  9. include("./global.php");
  10. /*setcookie("__window_store__", "{2: true}");
  11. setcookie("2", "");*/
  12. $pagename = "Accueil";
  13. $pageid = "index";
  14. if(session_is_registered(username))
  15. {
  16. Redirect("".$url."me.php");
  17. }
  18.  
  19. $do = Securise($_GET['do']);
  20. if ($do == "ip"){
  21. $erreur = "Tu ne peux plus t'inscrire ni te connecter , ton ip a été bannie.";
  22. }
  23. if ($do == "ipstaff"){
  24. $erreur = "Tu n'as pas le droit de te connecter sur ce compte.";
  25. }
  26. if($do == "process_login")
  27. {
  28. if(isset($_POST['username']) && isset($_POST['password']))
  29. {
  30. $username = Securise($_POST['username']);
  31. $password = $_POST['password'];
  32.  
  33. if(empty($username) || empty($password))
  34. {
  35. $erreur = "Merci de remplir les champs vides.";
  36. }
  37. else
  38. {
  39. $sql = mysql_query("SELECT id,disabled FROM users WHERE username = '".$username."' AND password = '".$password."' LIMIT 1") or die(mysql_error());
  40. $row = mysql_num_rows($sql);
  41. $assoc = mysql_fetch_assoc($sql);
  42.  
  43. if($row < 1)
  44. {
  45. $erreur = "Pseudo ou mot de passe incorrect.";
  46. }
  47. else
  48. {
  49.  
  50. if($assoc['disabled'] == 1)
  51. {
  52. $erreur = "Ton compte &agrave; &eacute;té d&eacute;sactiv&eacute; par un Administrateur.
  53. En cas d'erreur de notre part
  54. merci de nous contacter";
  55. }
  56. else
  57. {
  58. $sql = mysql_query("SELECT * FROM bans WHERE value = '".Securise($username)."'");
  59. $b = mysql_fetch_assoc($sql);
  60. $row_ban = mysql_num_rows($sql);
  61.  
  62.  
  63. $stamp_now = mktime(date('H:i:s d-m-Y'));
  64. $stamp_expire = $b['expire'];
  65. $expire = date('d/m/Y H:i:s', $b['expire']);
  66.  
  67. if($stamp_now < $stamp_expire){
  68. $erreur = "Ton compte &agrave; &eacute;tait bannis par ".Securise($b['added_by'])." pour la raison suivante:<br> <b>".utf8_decode($b['reason'])."</b>. Il expira le: <b>".$expire."</b>";
  69. } else {
  70. if($row_ban > 0) {
  71. mysql_query("DELETE FROM bans WHERE value = '".Securise($username)."'");
  72. }
  73. $sql = mysql_query("SELECT * FROM bans WHERE bantype = 'ip'");
  74. while($b = mysql_fetch_assoc($sql)){
  75. $users = Securise($b['value']);
  76. $ip = $_SERVER[REMOTE_ADDR];
  77. $sql1 = mysql_query("SELECT * FROM users WHERE ip_last='".$ip."' AND username ='".$users."'");
  78.  
  79.  
  80. if(mysql_num_rows($sql1) > 0){
  81. Redirect("".$url."/index.php?do=ip");
  82. exit();
  83. die;
  84. }
  85. }
  86.  
  87.  
  88. $staffip = mysql_query("SELECT * FROM staff_ip WHERE pseudostaff = '".$username."'");
  89. if(mysql_num_rows($staffip) > 0){
  90. $b = mysql_fetch_assoc($staffip);
  91. $ipactuel = $_SERVER[REMOTE_ADDR];
  92. if($ipactuel != $b['ipstaff']) {
  93. Redirect("".$url."/ip_erreur.php");
  94. exit();
  95. die;
  96. }
  97. }
  98.  
  99.  
  100.  
  101. mysql_query("UPDATE users SET last_offline = '".FullDate('full')."' WHERE username = '".Securise($username)."'");
  102. $_SESSION['username'] = Securise($username);
  103. $_SESSION['password'] = Securise($password);
  104. Redirect("".$url."me.php");
  105.  
  106. }
  107. }
  108. }
  109.  
  110. }
  111. }
  112. }
  113. ?>
  114. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  115. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  116. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
  117. <head>
  118. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  119. <meta http-equiv="X-UA-Compatible" content="IE=9" />
  120. <meta http-equiv="X-UA-Compatible" content="IE=8" />
  121. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  122. <title>Hobbaw #Rejoins le mouvement</title><link rel="shortcut icon" href="/images/favicon.ico" type="image/vnd.microsoft.icon" />
  123. <link rel="stylesheet" href="/index/global.css" type="text/css" />
  124. <link rel="stylesheet" href="/index/login.css" type="text/css" />
  125. <!--<link rel="stylesheet" href="/web-gallery/register.css" type="text/css" />-->
  126. <meta name="description" content="HabboHotel - Crée ton Habbo, fais de nouvelle rencontre et devient le Habbo le plus célèbre de HabboaHotel!" />
  127. <meta name="keywords" content="Hobba, Habbo hotel, bobbahotel, bobba-hotel, bobbah, bobba h, jabbo, jabbo hotel, jabbohotel, bobbaworld, bobba world, habboz, hobba, hobba hotel, hobbahotel habbodreams, habbo dreams, habbo, habbo hotel, virtuel, monde, réseau social, gratuit, communauté, avatar, chat, connecté, adolescence, jeu de rôle, rejoindre, social, groupes, forums, sécurité, jouer, jeux, amis, rares, ados, jeunes, collector, collectionner, créer, connecter, meuble, mobilier, animaux, déco, design, appart, décorer, partager, création, badges, musique, célébrité, chat vip, fun, sortir, mmo, mmorpg, jeu massivement multijoueur, bobba live, bobbalive, ado, adohotel" />
  128. </head>
  129. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  130. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  131. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
  132. <head>
  133. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  134. <meta http-equiv="X-UA-Compatible" content="IE=9" />
  135. <meta http-equiv="X-UA-Compatible" content="IE=8" />
  136. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  137. <title>Hobbaw</title><link rel="shortcut icon" href="/images/favicon.ico" type="image/vnd.microsoft.icon" />
  138. <link rel="stylesheet" href="/index/global.css" type="text/css" />
  139. <link rel="stylesheet" href="/index/login.css" type="text/css" />
  140. <!--<link rel="stylesheet" href="/web-gallery/register.css" type="text/css" />-->
  141. <meta name="description" content="HabboHotel - Crée ton Habbo, fais de nouvelle rencontre et devient le Habbo le plus célèbre de HabboaHotel!" />
  142. <meta name="keywords" content="Hobba, Habbo hotel, bobbahotel, bobba-hotel, bobbah, bobba h, jabbo, jabbo hotel, jabbohotel, bobbaworld, bobba world, habboz, hobba, hobba hotel, hobbahotel habbodreams, habbo dreams, habbo, habbo hotel, virtuel, monde, réseau social, gratuit, communauté, avatar, chat, connecté, adolescence, jeu de rôle, rejoindre, social, groupes, forums, sécurité, jouer, jeux, amis, rares, ados, jeunes, collector, collectionner, créer, connecter, meuble, mobilier, animaux, déco, design, appart, décorer, partager, création, badges, musique, célébrité, chat vip, fun, sortir, mmo, mmorpg, jeu massivement multijoueur, bobba live, bobbalive, ado, adohotel" />
  143. </head>
  144. <body>
  145. <div id="navbar">
  146.  
  147. </div> <div id="content">
  148. <a href=""> <img src="/web-gallery/v2/images/habbo.png" id="logo" height="60" width="111"/></a>
  149. <span id="stats2"><b><?PHP echo SystemConfig('users_online'); ?></b> connecté(s) actuellement!</span>
  150. <div id="clear"></div><hr/>
  151. <div id="login_image">
  152. <div id="main_login">
  153. <strong>Bienvenue sur Hobbaw, la dernière version du CMS!</strong>
  154. Entrez vos informations ci-dessous pour vous connecter.<br />
  155. <div style="height:5px;"></div>
  156. <form action="/index.php?do=process_login" method="post" >
  157. <table width="200" border="0">
  158. <tr><td> <label for="credentials-email">Pseudo :</label><br/>
  159. <input id="email" name="username" title="Entre ton pseudo" type="text"></td></tr>
  160. <tr><td><label for="credentials-password">Mot de passe :</label><br/>
  161. <input id="password" name="password" title="password" type="Password" ></td></tr>
  162. <tr><td>
  163. <input type="submit" id="credentials-submit" value="Connexion" style="margin-right:2px; width: 104px;"/><input type="button" style="width: 104px;" name="button2" id="credentials-submit" value="Inscription" onclick='window.location="/register.php"'/></td>
  164. </tr>
  165. </table>
  166. </form><br />
  167. </div>
  168. </div>
  169. <hr />
  170. <center>
  171.  
  172.  
  173.  
  174. <div id="clear"></div>
  175. <center>
  176.  
  177.  
  178. <div id="clear"></div>
  179. <center style="margin-top: 10px;">
  180. <img src="" alt="" style="float:right;margin:0 5px 0 0;" />
  181. <div id="footer">
  182. <p><a href="http://www.habbo-dev.fr/" target="_self"></a><a href="/disclaimer" target="_self">Disclaimer</a> | <a href="" target="_self">Charte de protection des donn&eacute;es personnelles</a> | <a href="" target="_new">Nous contacter</a></p>
  183. <p>Powered by <a href="">HobbawCMS</a> &copy 2016 <br />Les marques, copyright et bases de donn&eacute;es du site Habbo ainsi que son contenu sont tous la propri&eacute;t&eacute; de Sulake Inc.</p>
  184.  
  185. <br>
  186. </center>
  187.  
  188. </body>
  189. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement