Advertisement
Guest User

Untitled

a guest
Mar 9th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. <div class="widget">
  2. <div class="login-content">
  3. <div class="widget-content" style="padding-bottom:0;">
  4. <form method="get" action="home.php" class="no-margin" />
  5. <h3 class="form-title">Login to your account</h3>
  6.  
  7. <fieldset>
  8. <div class="form-group no-margin">
  9. <label for="email">Email</label>
  10.  
  11. <div class="input-group input-group-lg">
  12. <span class="input-group-addon">
  13. <i class="icon-user"></i>
  14. </span>
  15. <input type="email" placeholder="Your Email" class="form-control input-lg" id="email" />
  16. </div>
  17.  
  18. </div>
  19.  
  20. <div class="form-group">
  21. <label for="password">Password</label>
  22.  
  23. <div class="input-group input-group-lg">
  24. <span class="input-group-addon">
  25. <i class="icon-lock"></i>
  26. </span>
  27. <input type="password" placeholder="Your Password" class="form-control input-lg" id="password" />
  28. </div>
  29.  
  30. <?PHP
  31.  
  32. $user = base64_encode($_POST[user]);
  33. $pass = md5($_POST[pass]);
  34. if (isset($_POST['login']))
  35. {
  36. if ($user == $correctuser && $pass == $correctpass)
  37. {
  38. $_SESSION['login'] = true;
  39. $_SESSION['username'] = $user;
  40. header('Location: home.php?m=dashboard');
  41. }
  42. else
  43. {
  44. $error = '<center><img src="img/error.gif" height="170" weight="300"/></center><br>';
  45. $alert = '<div id="wrong" style="width:100%; padding: 10px; background:#a52a2a"><a><center><font color="white">&nbsp;Неправильный пароль!</font></center></a></div>';
  46. }
  47. }
  48.  
  49. $n = rand(1,7);
  50.  
  51. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement