Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.47 KB | None | 0 0
  1. <?php if (isUserLogged()) { ?>
  2. <li>
  3. <h2>User Center</h2>
  4. <p><center>Welcome Back <strong><?php echo getUserName(); ?></strong></center></p>
  5. <ul>
  6.     <li><a href="./usercp.php?p=account">My Account</a></li>
  7.     <li><a href="?action=logout">Logout</a></li>
  8. </ul>
  9. </li>
  10. <?php }else{ ?>
  11. <li>
  12. <?php
  13.     if (isset($_GET['err']) && ($_GET['err'] == '011')) {
  14.         print "<p><strong>Invalid username or password</strong></p>";
  15.     }
  16.     if (isset($_GET['err']) && ($_GET['err'] == '012')) {
  17.         print "<p><strong>Access denied. Authentication required</strong></p>";
  18.     }
  19.     if (isset($_GET['err']) && ($_GET['err'] == '019')) {
  20.         print "<p><strong>Access denied. You do not have necessary authorizations</strong></p>";
  21.     }
  22. ?>
  23. <h2>Login Center</h2>
  24. <p>
  25. <form name="loginform" method="post" action="<?php echo $loginform_action?>">
  26.   <table width="100%" border="0">
  27.     <tr>
  28.       <td width="20%">Username:</td>
  29.       <td width="70%"><input name="<?php echo $loginform_username?>" type="text" id="username"></td>
  30.     </tr>
  31.     <tr>
  32.       <td>Password:</td>
  33.       <td><input name="<?php echo $loginform_password?>" type="password" id="password"></td>
  34.     </tr>
  35.     <tr>
  36.       <td>&nbsp;</td>
  37.       <td> <input type="submit" name="Submit" value="Submit">
  38.       <input type="reset" name="Reset" value="Reset"></td>
  39.     </tr>
  40.   </table>
  41. </form>
  42. </p>
  43. <p align="center"><a href="./usercp.php?p=register">Register</a> | <a href="./usercp.php?p=resetpass">Reset Password</a></p>    
  44. </li>
  45. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement