Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $firstname = isset($_SESSION['firstname']) ? $_SESSION['firstname'] : 'FIRSTNAME REQUIRED';
- $lastname = isset($_SESSION['lastname']) ? $_SESSION['lastname'] : 'LASTNAME REQUIRED';
- $email1 = isset($_SESSION['email']) ? $_SESSION['email'] : 'EMAIL REQUIRED';
- $inactive = 60;
- // check to see if $_SESSION["timeout"] is set
- if (isset($_SESSION["timeout"])) {
- // calculate the session's "time to live"
- $sessionTTL = time() - $_SESSION["timeout"];
- if ($sessionTTL > $inactive) {
- session_destroy();
- header("Location: /index.html");
- }
- }
- $_SESSION["timeout"] = time();
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title> Report selection </title>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta http-equiv="Expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
- <meta http-equiv="Pragma" content="no-cache" />
- <script type='javascript' src="js/jquery.js"></script>
- <script type='javascript' src="js/jquery-ui.js"></script>
- <link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.22.custom.css" />
- <link rel ="stylesheet" type ="text/css" href ="css/style.css" />
- <link rel="stylesheet" href="development-bundle/demos.css" />
- <link rel="shortcut icon" type="image/x-icon" href="images/base.gif" />
- <link rel="stylesheet" href="css/main.css" type="text/css" media="screen, projection" />
- <style type='text/css'>
- body { font-size: 62.5%; }
- label, input { display:block; }
- input.text { margin-bottom:12px; width:95%; padding: .4em; }
- fieldset { padding:0; border:0; margin-top:25px; }
- h1 { font-size: 1.2em; margin: .6em 0; }
- .ui-dialog .ui-state-error { padding: .3em; }
- .validateTips { border: 1px solid transparent; padding: 0.3em; }
- p,div,fieldset {outline:dotted 1px #f00;}
- .ZZZ {display:none;}
- </style>
- </head>
- <body>
- <!-- begin container to center layout in middle of page -->
- <div id="container">
- <!-- begin header which contains our heading and navigation -->
- <div id="header">
- <h1>
- <img src="images/main_logo.png" style="position:relative;left:-35px;top:8px; border:solid 1px #000" alt='#' />
- </h1>
- <!-- begin navigation -->
- <div id="nav">
- <ul class="clearfix">
- <li>DUMMY</li>
- </ul>
- </div><!-- end navigation -->
- </div><!-- end header -->
- <!-- begin content which houses our two columns and footer -->
- <div id="content" class="clearfix">
- <?php include '___main.php';?>
- </div><!-- end content -->
- </div><!-- end container -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement