Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="js/placeholder.js"></script>
- <script type="text/javascript">
- //JavaScript fallback til HTML5 placeholder attribut
- window.onload = function(){
- var arr = document.getElementsByTagName("input");
- for (i = 0; i < arr.length; i++) {
- if(arr[i].className == "input-placeholder"){
- inputPlaceholder( arr[i] );
- }
- }
- }
- </script>
- <a href="http://localhost/eksamensprojekt/" id="pagelogo">Unsub</a>
- <ul>
- <li class="<?php if (strpos($_SERVER['PHP_SELF'], 'index.php')) echo 'current'; //Kigger om man er på en side der indeholder index.php i filnavnet og hvis ja, sættes class="current" ?>"><a href="index.php">Forside</a></li>
- <li class="<?php if (strpos($_SERVER['PHP_SELF'], 'mode.php')) echo 'current'; ?>"><a href="mode.php">Mode</a></li>
- <li class="<?php if (strpos($_SERVER['PHP_SELF'], 'om.php')) echo 'current'; ?>"><a href="om.php">Om os</a></li>
- </ul>
- <?php
- include 'inc/connect.php';
- if(isset($_SESSION['username'])) {;
- ?>
- <form action="http://localhost/eksamensprojekt/inc/logout.php" id="login">
- Velkommen <a href="usercp.php"><?php echo $_SESSION['name']; ?></a>
- <input type="submit" value="Log ud"/>
- </form>
- <?php
- } else {
- ?>
- <form name="login" id="login" action="http://localhost/eksamensprojekt/inc/auth.php" method="post">
- Brugernavn: <input type="text" name="username" id="username" class="input-placeholder" placeholder="brugernavn" style="font-size: 10px;" /> Password: <input type="password" name="password" style="font-size: 10px;" /> <input type="submit" name="submit" value="Log ind" /><a href="http://localhost/eksamensprojekt/opret_bruger.php">Opret bruger</a></form>
- <?php
- }
- ?>
- <div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement