| Current Path : /home/kamilrogam/komp/2017/blog/ |
| Current File : /home/kamilrogam/komp/2017/blog/logowanie.php |
<?php
session_start();
include ("funkcje.php");
polaczenie();
weryfikacja();
logowanie();
rejestracja();
//wylogowanie
if (isset ($_GET['wyloguj'])){
session_destroy();
header("location: logowanie.php");
exit();
}
include ("header.php");
?>
<div id="content">
<?php
if (isset ($_GET['b'])){komunikat($_GET['b']);}
if (isset ($_GET['register'])){
?>
<form method="post" action="logowanie.php?register">
Login: <input type="text" name="login"><br>
E-mail: <input type="text" name="mail"><br>
Hasło: <input type="password" name="haslo"><br>
Powtórz hasło: <input type="password" name="re_haslo"><br>
Imię: <input type="text" name="imie"><br>
Nazwisko: <input type="text" name="nazwisko"><br>
<input type="submit" name="register" value="ZAREJESTRUJ SIĘ">
</form>
<?php
}
else
{
?>
<form method="post" action="logowanie.php">
Login: <input type="text" name="login"><br>
Hasło: <input type="password" name="haslo"><br>
<input type="submit" name="zaloguj" value="ZALOGUJ SIĘ">
</form>
<?php
}
?>
</div>
<?php
include ("sidebar.php");
include ("footer.php");
rozlaczenie();
?>