Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. <?php
  2. $title = 'Group Links';
  3. session_start();
  4.  
  5. if(!isset($_SESSION['login'])){
  6. ?>
  7. <html>
  8. <head>
  9. <title><?php echo $title; ?></title>
  10. <link rel="stylesheet" type="text/css" href="css/front.css" media="screen" />
  11. <script type="text/javascript" src="js/jquery.js"></script>
  12. <script type="text/javascript">
  13. $(document).ready(function() {
  14.  
  15. var user = "Username";
  16. var pass = "Password";
  17. $("#fuser").val(user).css("color","#DEDEDE");
  18. $("#fpass").val(pass).css("color","#DEDEDE");
  19. $('#regsub').attr('disabled', true);
  20.  
  21.  
  22.  
  23. var inputs = $("#fuser,#fpass").addClass("unclicked").one("click",function () {
  24. $(this).removeClass("unclicked").val("").css("color","black");
  25. if (!inputs.hasClass("unclicked")) {
  26. $("#regsub").removeAttr("disabled");
  27. }
  28.  
  29. });
  30.  
  31.  
  32. });
  33.  
  34.  
  35. </script>
  36. </head>
  37. <body>
  38. <?php
  39. echo '<div id="frontforms">';
  40. echo '<h2>Login</h2>';
  41. echo '<form action=login.php method=post>';
  42. echo '<input type=text name=username value=admin>';
  43. echo '<input type=password name=password value=RK*1990>';
  44. echo '<input type=submit name=login value="">';
  45. echo '</form>';
  46. echo '<br /><br /><br />';
  47.  
  48. echo '<h2>Register</h2>';
  49. echo '<form action=register.php method=post>';
  50. echo '<input type=text id=fuser name=rusername>';
  51. echo '<input type=password id=fpass name=rpassword>';
  52. echo 'Group name';
  53. echo '<input type=text name=groupname>';
  54. echo 'New Group';
  55. echo '<input type=text name=creategroup>';
  56. echo '<input type=submit id=regsub name=login value="">';
  57. echo '</form>';
  58. echo '</div>';
  59. }
  60. elseif(isset($_SESSION['login'])){
  61. header('location:main.php');
  62. }
  63. echo '<script>';
  64. echo $script;
  65. echo '</script>';
  66. ?>
  67.  
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement