session_start(); if(isset($_SESSION['zalogowany']) && $_SESSION['zalogowany']==true) { header('Location: glowna.php'); exit(); } //Usuwanie zapamiętanych danych z formularza if (isset($_SESSION['zlogin'])) unset($_SESSION['zlogin']); if (isset($_SESSION['zhaslo'])) unset($_SESSION['zhaslo']); if (isset($_SESSION['zphaslo'])) unset($_SESSION['zphaslo']); if (isset($_SESSION['zemail'])) unset($_SESSION['zemail']); //Usuwanie błędów podczas rejestracji if (isset($_SESSION['blogin'])) unset($_SESSION['blogin']); if (isset($_SESSION['bhaslo'])) unset($_SESSION['bhaslo']); if (isset($_SESSION['bcaptcha'])) unset($_SESSION['bcaptcha']); if (isset($_SESSION['bemail'])) unset($_SESSION['bemail']); ?>