Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- try
- {
- require('../class/sesja.php');
- if($session -> getUser() -> isAnonymous())
- {
- echo '<p>Witaj nieznajomy,
- <a href="./login.php">Zaloguj sie</a>!</p>';
- }
- else
- {
- echo '<p>Witaj, '.$session -> getUser() -> getNazwa().'!
- (<a href="./login.php?action=logout">Wyloguj sie</a>)</p>';
- }
- echo 'To sa dane dostepne dla wszystkich.
- <a href="./site.php">Tutaj sa dane
- dostepne dla zalogowanych</a>.<br>';
- }
- catch(PDOException $exception)
- {
- echo 'Blad bazy danych: '.$exception->getMessage();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement