Kod
Kod jest nieaktualny! poniżej zamieszczam oba kody
Proszę o skorygowanie powyższego kodu

<?php Przekierowywanie do <a href="login.php">logowania...</a> <meta http-equiv="refresh" content="2; url=login.php">'); } require_once ('config.php'); require_once ('pass.php'); include_once ('settings.php'); <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-language" content="pl" /> <meta http-equiv="Expires" content="0" /> <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate" /> <meta http-equiv="Cache-Control" content="post-check=0, pre-check=0" /> <meta http-equiv="Pragma" content="no-cache" /> <title>Panel administracyjny</title> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <a href="admin.php">Jesteś zalogowany jako '.$_SESSION['user'].'</a><a href="login.php">Wyloguj</a> <a href="admin.php?e=1">Edytuj I</a><a href="admin.php?e=2">Edytuj II</a><a href="admin.php?e=3">Edytuj III</a><a href="admin.php?e=4">Edytuj IV</a> '); if($e=="1") { } if($e=="2") { } if($e=="3") { } if($e=="4") { } ?>
<?php require_once ('config.php'); require_once ('pass.php'); include_once ('settings.php'); $nick = $_POST['user']; $hasl = $_POST['pass']; if($nick == $login{ if($hasl == $pass){ $_SESSION['user'] = $login; } } else { } <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-language" content="pl" /> <title>Logowanie</title> </head> <body> <a href="index.php"><img src="universe.png" border="0"></a> <h3>Logowanie</h3> <hr width="100%" size="1"> <form id="form1" onsubmit="return check(this)" name="form1" method="post" action="'.$PHP_SELF.'"> <table> <tr> <td>Login </td> <td><input name="user" type="text" id="user" /></td> </tr> <tr> <td>Hasło </td> <td><input name="pass" type="password" id="pass" /></td> </tr> </table> <input name="login" type="submit" id="login" value="Zaloguj" /> </form> </body> </html> '); ?> <script language=javascript> <!-- function check(t){ g = false; if(t.user.value.length==0){ alert('Nie podałeś loginu'); } else if(t.pass.value.length==0){ alert('Nie podałeś hasla'); } else{ form1.submit(); g=true; } return(g); } //--> </script>