Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include 'passencode.php';
- ?>
- <?php if(!session_is_registered('UserCP')) {?><div align="center"><strong>Only members allowed.<br>
- <br>
- </strong>
- <form method="post" action="?op=login"><table width="200" border="0">
- <tr>
- <td width="69">Username:</td>
- <td width="121"><label>
- <input type="text" name="user" id="user">
- </label></td>
- </tr>
- <tr>
- <td>Password:</td>
- <td><label>
- <input type="password" name="pass" id="password">
- </label></td>
- </tr>
- <tr>
- <td> </td>
- <td><label>
- <input type="submit" name="submit" id="submit" value="Submit">
- </label></td>
- </tr>
- </table>
- <br><?php
- if(isset($_POST['submit'])) {
- $U = $_POST['user'];
- $password = $_POST['password'];
- $result1 = "SELECT * FROM `accounts` WHERE AccountID='$U' and password='$password'";
- $query = mysql_query($result1);
- $count = mysql_num_rows($query);
- if($count == 1){
- session_register("UserCP");
- $_SESSION['user'] = $_POST['user'];
- echo('Logged in..... Click <a href=?op=user><strong>here</strong></a>'); } else { echo "System Error: Wrong password/username."; } }
- ?>
- <div align="left"><br>
- <em>Welcome to the user panel.</em> From this point you can edit characters, delete characters, and control your site. Please login before doing anything though.<br>
- </div>
- </form>
- <strong><br>
- </strong>
- <table>
- </table>
- </div>
- <?php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement