Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("header.php");
- ?>
- <title><?php echo "$Ctitle" ?></title>
- <style type='text/css'>
- <!--
- body
- {
- background-color: <?php echo "$Cbackground" ?>;
- }
- -->
- </style><label></label>
- <?php
- $username = $_POST["username"];
- $enteredpass = $_POST["pass"];
- if (!isset($username) || empty($username))
- {
- ?>
- <p align="center">You didnt enter a Username </p>
- <p align="center"><a href="./index.php">Continue (You will be auto redirected in 3 seconds)</a>
- <meta http-equiv="refresh" content="3;url=index.php">
- <?php
- die();
- }
- if (!isset($enteredpass) || empty($enteredpass))
- {
- ?>
- <p align="center">You didnt enter a Password </p>
- <p align="center"><a href="./index.php">Continue (You will be auto redirected in 3 seconds)</a>
- <meta http-equiv="refresh" content="3;url=index.php">
- <?php
- die();
- }
- $query = mysql_query('SELECT Password, Locked FROM `members` WHERE Name = "'.mysql_real_escape_string($username).'" LIMIT 1');
- if(mysql_num_rows($query) == 0)
- {
- ?>
- <p align="center">Username does not exist </p>
- <p align="center"><a href="./index.php">Continue (You will be auto redirected in 3 seconds)</a>
- <meta http-equiv="refresh" content="3;url=index.php">
- <?php
- die();
- }
- else
- {
- $row = mysql_fetch_array($query, MYSQL_ASSOC);
- $pass = $row['Password'];
- $locked = $row['Locked'];
- }
- if($locked == 1)
- {
- ?>
- <p align="center">This account is banned, Please goto the forums to request an unban </p>
- <p align="center"><a href="./index.php">Continue (You will be auto redirected in 3 seconds)</a>
- <meta http-equiv="refresh" content="3;url=index.php">
- <?php
- die();
- }
- if($enteredpass == $pass)
- {
- $_SESSION['ucploggedin'] = true;
- $_SESSION['ucpname'] = $username;
- ?>
- <p align="center">Logged In successfully </p>
- <p align="center"><a href="./index.php">Continue to User Control Panel (You will be auto redirected in 3 seconds)</a>
- <meta http-equiv="refresh" content="3;url=index.php">
- <?php
- die();
- }
- else
- {
- ?>
- <p align="center">You entered the wrong Password </p>
- <p align="center"><a href="./index.php">Continue (You will be auto redirected in 3 seconds)</a>
- <meta http-equiv="refresh" content="3;url=index.php">
- <?php
- die();
- }
- include("footer.php");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement