default.php

<? session_start(); require_once "connect.inc.php"; if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 86400)) { session_unset(); session_destroy(); } $_SESSION['LAST_ACTIVITY'] = time(); date_default_timezone_set('Europe/Berlin'); setlocale(LC_TIME, "de_DE.utf8"); ?> <!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Titel</title> <script src="//code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="style/normalize.css"/> <link rel="stylesheet" type="text/css" href="style/style.css"/> </head> <body> <header> <nav> </nav> </header> <main> <section> <article> <h1>Headline</h1> <p>The World Wide Fund for Nature (WWF) is....</p> </article> <article> <h1>Headline</h1> <p>The World Wide Fund for Nature (WWF) is....</p> </article> </section> </main> <footer> © <?= date('Y'); ?> </footer> <script src="js/script.js"></script> </body> </html>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.