Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (isUserLogged()) { ?>
- <li>
- <h2>User Center</h2>
- <p><center>Welcome Back <strong><?php echo getUserName(); ?></strong></center></p>
- <ul>
- <li><a href="./usercp.php?p=account">My Account</a></li>
- <li><a href="?action=logout">Logout</a></li>
- </ul>
- </li>
- <?php }else{ ?>
- <li>
- <?php
- if (isset($_GET['err']) && ($_GET['err'] == '011')) {
- print "<p><strong>Invalid username or password</strong></p>";
- }
- if (isset($_GET['err']) && ($_GET['err'] == '012')) {
- print "<p><strong>Access denied. Authentication required</strong></p>";
- }
- if (isset($_GET['err']) && ($_GET['err'] == '019')) {
- print "<p><strong>Access denied. You do not have necessary authorizations</strong></p>";
- }
- ?>
- <h2>Login Center</h2>
- <p>
- <form name="loginform" method="post" action="<?php echo $loginform_action?>">
- <table width="100%" border="0">
- <tr>
- <td width="20%">Username:</td>
- <td width="70%"><input name="<?php echo $loginform_username?>" type="text" id="username"></td>
- </tr>
- <tr>
- <td>Password:</td>
- <td><input name="<?php echo $loginform_password?>" type="password" id="password"></td>
- </tr>
- <tr>
- <td> </td>
- <td> <input type="submit" name="Submit" value="Submit">
- <input type="reset" name="Reset" value="Reset"></td>
- </tr>
- </table>
- </form>
- </p>
- <p align="center"><a href="./usercp.php?p=register">Register</a> | <a href="./usercp.php?p=resetpass">Reset Password</a></p>
- </li>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement