Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <html>
- <head>
- <title>Album</title>
- </head>
- <body bgcolor='#f1f1f1' text='#000000' link='#33cc00' alink='#33cc00' alink='#33cc00'>
- <table width='100%'>
- <tr>
- <td width='50%'>
- LOGO
- </td>
- <td>
- <?php
- if(isset($_SESSION['user'])) {
- ?>
- <div align='right'>Du er logget ind som <b><?php echo $_SESSION['user']; ?></b> <a href='logout.php'>Log ud!</a><br />
- <a href='index.php'>Nyheder</a> <a href='index.php?valg=skriv'>Skriv Nyhed</a> <a href='profil.php'>Min profil</a></div>
- <?php
- } else {
- ?>
- <form action='login.php' method='POST'>
- <table width='100%' align='right'>
- <tr>
- <td>
- Brugernavn:
- </td>
- <td>
- <input type='text' name='username' size='16' maxlength='25'> <a href='register.php'>Registrer</a>
- </td>
- </tr>
- <tr>
- <td>
- Kodeord:
- </td>
- <td>
- <input type='password' name='password' size='16' maxlength='25'>
- <input type='submit' value='Log ind'>
- </td>
- </tr>
- </table>
- </form>
- <?php
- }
- ?>
- </td>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment