HEX
Server: LiteSpeed
System: Linux s3512.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: surajaut (1797)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/surajaut/public_html/admin/manage_admin.php
<?php
session_start();

// set time-out period (in seconds)
$inactive = 600;

// 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: logout.php");
    }
}

$_SESSION["timeout"] = time();

if($_SESSION['username'] == '') { header('location:index.php'); } 

 ?>

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Panel</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="page.css" rel="stylesheet" type="text/css" />
</head>

<body >

<div id="body_wrapper">
	<div id="wrapper">
    	
        <div id="header">
            <div id="site_title"><h1><a href="#">Jamshedpur ITI</a></h1></div>
        </div><!-- end of header -->

    
     <?php include 'menu.php'; ?>
    
    
 <div id="main">
   
    
   
    <ul>
    <li ><a href="change_username.php"><b>Change Username</b></a></li><br/>
    <li><a href="change_password.php"><b>Change Password</b></a></li>
    
    </ul>
   
   
     
     
    
    <!-- end .main --></div>
    </div>
 
  
  </div>
  
  <div id="footer_wrapper">
    <div id="footer">
        Copyright © 2013 <a href="../index.php">Govt. ITI</a> | Designed by <a href="http://www.visualcreations.in" target="_blank">Visual Creations</a>
        <div class="cleaner"></div>
    </div>
</div>

</body>
</html>