Advertisement
Guest User

admin_select.php

a guest
Feb 11th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.73 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. $firstname  = isset($_SESSION['firstname']) ? $_SESSION['firstname']  : 'FIRSTNAME REQUIRED';
  5. $lastname   = isset($_SESSION['lastname'])  ? $_SESSION['lastname']   : 'LASTNAME REQUIRED';
  6. $email1      = isset($_SESSION['email'])     ? $_SESSION['email']      : 'EMAIL REQUIRED';
  7.  
  8. $inactive = 60;
  9.  
  10. // check to see if $_SESSION["timeout"] is set
  11. if (isset($_SESSION["timeout"])) {
  12.     // calculate the session's "time to live"
  13.     $sessionTTL = time() - $_SESSION["timeout"];
  14.     if ($sessionTTL > $inactive) {
  15.         session_destroy();
  16.         header("Location: /index.html");
  17.     }
  18. }
  19. $_SESSION["timeout"] = time();
  20.  
  21. ?>
  22.  
  23. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  24. <html xmlns="http://www.w3.org/1999/xhtml">
  25. <head>
  26. <title> Report selection </title>
  27. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  28. <meta http-equiv="Expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
  29. <meta http-equiv="Pragma" content="no-cache" />
  30.  
  31. <script type='javascript' src="js/jquery.js"></script>  
  32. <script type='javascript' src="js/jquery-ui.js"></script>
  33.  
  34. <link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.22.custom.css" />
  35. <link rel ="stylesheet" type ="text/css" href ="css/style.css" />
  36. <link rel="stylesheet" href="development-bundle/demos.css" />
  37. <link rel="shortcut icon" type="image/x-icon" href="images/base.gif" />
  38. <link rel="stylesheet" href="css/main.css" type="text/css" media="screen, projection" />
  39.  
  40. <style type='text/css'>
  41.   body { font-size: 62.5%; }
  42.   label, input { display:block; }
  43.   input.text { margin-bottom:12px; width:95%; padding: .4em; }
  44.   fieldset { padding:0; border:0; margin-top:25px; }
  45.   h1 { font-size: 1.2em; margin: .6em 0; }
  46.  
  47.   .ui-dialog .ui-state-error { padding: .3em; }
  48.   .validateTips { border: 1px solid transparent; padding: 0.3em; }
  49.   p,div,fieldset {outline:dotted 1px #f00;}
  50.   .ZZZ {display:none;}
  51. </style>
  52. </head>
  53. <body>
  54.   <!-- begin container to center layout in middle of page -->
  55.   <div id="container">
  56.     <!-- begin header which contains our heading and navigation -->
  57.     <div id="header">
  58.       <h1>
  59.         <img src="images/main_logo.png" style="position:relative;left:-35px;top:8px; border:solid 1px #000" alt='#' />
  60.       </h1>
  61.       <!-- begin navigation -->
  62.       <div id="nav">
  63.         <ul class="clearfix">
  64.           <li>DUMMY</li>
  65.         </ul>
  66.       </div><!-- end navigation -->
  67.     </div><!-- end header -->
  68.  
  69.     <!-- begin content which houses our two columns and footer -->
  70.     <div id="content" class="clearfix">
  71.  
  72.       <?php include '___main.php';?>      
  73.  
  74.  
  75.  
  76.     </div><!-- end content -->
  77.   </div><!-- end container -->
  78. </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement