Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="widget">
- <div class="login-content">
- <div class="widget-content" style="padding-bottom:0;">
- <form method="get" action="home.php" class="no-margin" />
- <h3 class="form-title">Login to your account</h3>
- <fieldset>
- <div class="form-group no-margin">
- <label for="email">Email</label>
- <div class="input-group input-group-lg">
- <span class="input-group-addon">
- <i class="icon-user"></i>
- </span>
- <input type="email" placeholder="Your Email" class="form-control input-lg" id="email" />
- </div>
- </div>
- <div class="form-group">
- <label for="password">Password</label>
- <div class="input-group input-group-lg">
- <span class="input-group-addon">
- <i class="icon-lock"></i>
- </span>
- <input type="password" placeholder="Your Password" class="form-control input-lg" id="password" />
- </div>
- <?PHP
- $user = base64_encode($_POST[user]);
- $pass = md5($_POST[pass]);
- if (isset($_POST['login']))
- {
- if ($user == $correctuser && $pass == $correctpass)
- {
- $_SESSION['login'] = true;
- $_SESSION['username'] = $user;
- header('Location: home.php?m=dashboard');
- }
- else
- {
- $error = '<center><img src="img/error.gif" height="170" weight="300"/></center><br>';
- $alert = '<div id="wrong" style="width:100%; padding: 10px; background:#a52a2a"><a><center><font color="white"> Неправильный пароль!</font></center></a></div>';
- }
- }
- $n = rand(1,7);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement