Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $title = 'Group Links';
- session_start();
- if(!isset($_SESSION['login'])){
- ?>
- <html>
- <head>
- <title><?php echo $title; ?></title>
- <link rel="stylesheet" type="text/css" href="css/front.css" media="screen" />
- <script type="text/javascript" src="js/jquery.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- var user = "Username";
- var pass = "Password";
- $("#fuser").val(user).css("color","#DEDEDE");
- $("#fpass").val(pass).css("color","#DEDEDE");
- $('#regsub').attr('disabled', true);
- var inputs = $("#fuser,#fpass").addClass("unclicked").one("click",function () {
- $(this).removeClass("unclicked").val("").css("color","black");
- if (!inputs.hasClass("unclicked")) {
- $("#regsub").removeAttr("disabled");
- }
- });
- });
- </script>
- </head>
- <body>
- <?php
- echo '<div id="frontforms">';
- echo '<h2>Login</h2>';
- echo '<form action=login.php method=post>';
- echo '<input type=text name=username value=admin>';
- echo '<input type=password name=password value=RK*1990>';
- echo '<input type=submit name=login value="">';
- echo '</form>';
- echo '<br /><br /><br />';
- echo '<h2>Register</h2>';
- echo '<form action=register.php method=post>';
- echo '<input type=text id=fuser name=rusername>';
- echo '<input type=password id=fpass name=rpassword>';
- echo 'Group name';
- echo '<input type=text name=groupname>';
- echo 'New Group';
- echo '<input type=text name=creategroup>';
- echo '<input type=submit id=regsub name=login value="">';
- echo '</form>';
- echo '</div>';
- }
- elseif(isset($_SESSION['login'])){
- header('location:main.php');
- }
- echo '<script>';
- echo $script;
- echo '</script>';
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement