[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: header.php
<?php $pageTitle = 'Dashboard'; $username = $_SESSION['username_Xw211qAAsq4']; $shopname = $_SESSION['business_name_Xw211qAAsq4']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta content="Premium Multipurpose Admin & Dashboard Template" name="description" /> <meta content="MyraStudio" name="author" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- App favicon --> <link rel="shortcut icon" href="assets/images/favicon.ico"> <script src="https://code.jquery.com/jquery-3.6.4.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> <!-- App css --> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/theme.min.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="assets/images/favicon.ico"> <!-- Plugins css --> <link href="../plugins/datatables/dataTables.bootstrap4.css" rel="stylesheet" type="text/css" /> <link href="../plugins/datatables/responsive.bootstrap4.css" rel="stylesheet" type="text/css" /> <link href="../plugins/datatables/buttons.bootstrap4.css" rel="stylesheet" type="text/css" /> <link href="../plugins/datatables/select.bootstrap4.css" rel="stylesheet" type="text/css" /> <style type="text/css"> .highcharts-figure, .highcharts-data-table table { min-width: 450px; max-width: 100%; margin: 1em auto; } .highcharts-data-table table { font-family: Verdana, sans-serif; border-collapse: collapse; border: 1px solid #ebebeb; margin: 10px auto; text-align: center; width: 100%; max-width: 500px; } .highcharts-data-table caption { padding: 1em 0; font-size: 1.2em; color: #555; } .highcharts-data-table th { font-weight: 600; padding: 0.5em; } .highcharts-data-table td, .highcharts-data-table th, .highcharts-data-table caption { padding: 0.5em; } .highcharts-data-table thead tr, .highcharts-data-table tr:nth-child(even) { background: #f8f8f8; } .highcharts-data-table tr:hover { background: #f1f7ff; } .highcharts-credits { display: none !important; } </style> <style> #preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background-color: #fff; } #loader { display: block; position: absolute; top: 50%; left: 50%; border: 16px solid #f3f3f3; border-top: 16px solid #3498db; border-radius: 50%; width: 120; height: 120; animation: spin 2s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> </head> <body> <div id="preloader"> <div id="loader"></div> </div> <div class="navbar-header"> <div class="d-flex align-items-left"> <button type="button" class="btn btn-sm mr-2 d-lg-none px-3 font-size-16 header-item waves-effect" id="vertical-menu-btn"> <i class="fa fa-fw fa-bars"></i> </button> <div class="dropdown d-none d-sm-inline-block"> <button type="button" class="btn header-item waves-effect" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <?php // $seleda = mysqli_query($new,"SELECT * FROM barber_admin WHERE business_name = '$shopname'"); // $fetch = mysqli_fetch_array($seleda); // $expirationDate = $fetch['forgot_pass_expire_time']; // // Current date // $currentDate = date('Y-m-d'); // // Calculate the difference between the current date and the expiration date // $diff = strtotime($expirationDate) - strtotime($currentDate); // $daysRemaining = floor($diff / (60 * 60 * 24)); // // Check if there are exactly two days remaining for account expiration // if ($daysRemaining > 0) { // // Display the notification // echo" <p style='color:red'>Trial expired in ".$daysRemaining." day(s)</p>"; // } elseif ($daysRemaining == 0) { // echo" <p style='color:red'>Trial expired today</p>"; // } else { // $expiry_date = 'yes'; // $stmt = $con->prepare("update barber_admin SET expired = ? where business_name = ? "); // $stmt->execute(array($expiry_date,$shopname)); // header("location../expired"); // } ?> <i class="mdi mdi-plus"></i> Business/Shop <i class="mdi mdi-chevron-down d-none d-sm-inline-block"></i> </button> <div class="dropdown-menu"> <!-- item--> <a href="business-profile" class="dropdown-item notify-item"> Business Profile(Defualt) </a> <?php $sow = mysqli_query($new,"SELECT * FROM barber_admin WHERE business_name = '$shopname'"); $userA = mysqli_fetch_array($sow); $userA_Master = $userA['master_account']; $soww = mysqli_query($new,"SELECT * FROM barber_admin WHERE master_account = '$userA_Master'"); $userB = mysqli_fetch_array($soww); $count = mysqli_num_rows($soww); $account = $userB['account_status']; ?> <?php $stmt = $con->prepare("SELECT * FROM barber_admin WHERE username = ? and business_name = ?"); $stmt->execute(array($username,$shopname)); $userstatus = $stmt->fetchAll(); foreach($userstatus as $sta) { $business = $sta['master_account']; $type = $sta['account_type']; if($type == 'Owner' and $business == $shopname){ echo '<a href="allbusniess" class="dropdown-item notify-item"> All Business/shop </a>'; echo '<a href="javascript:void(0);"data-toggle="modal" data-target=".bd-example-modal-lg50" class="dropdown-item notify-item"> Add new business </a>'; } else { } } ?> <!-- item--> </div> </div> </div> <div class="d-flex align-items-center"> <div class="dropdown d-none d-sm-inline-block ml-2"> <button type="button" class="btn header-item noti-icon waves-effect" id="page-header-search-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="mdi mdi-magnify"></i> </button> <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right p-0" aria-labelledby="page-header-search-dropdown"> <form class="p-3"> <div class="form-group m-0"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search ..." aria-label="Recipient's username"> <div class="input-group-append"> <button class="btn btn-primary" type="submit"><i class="mdi mdi-magnify"></i></button> </div> </div> </div> </form> </div> </div> <div class="dropdown d-inline-block"> <button type="button" class="btn header-item noti-icon waves-effect" id="page-header-notifications-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="mdi mdi-bell"></i> <a class="dropdown-item d-flex align-items-center justify-content-between" href="javascript:void(0)"> <?php $sele = mysqli_query($new,"SELECT count(a.appointment_id) as aid,a.date_created,c.first_name,c.last_name FROM appointments a,clients c WHERE a.client_id = c.client_id AND a.business_name = '$shopname' and a.status = 'online' AND active != 'Yes' "); $fetchrows = mysqli_fetch_array($sele); $date_created = $fetchrows['date_created']; $cnt = $fetchrows['aid']; $fname = $fetchrows['first_name']; $lname = $fetchrows['last_name']; $full_name = $fname.' '.$lname; if(empty($cnt)){ $total = 0; } else { $total = $cnt; } ?> <span> <span class="badge badge-pill badge-info"><?php echo $total;?></span> </span> </a> </button> <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right p-0" aria-labelledby="page-header-notifications-dropdown"> <div class="p-3"> <div class="row align-items-center"> <div class="col"> <h6 class="m-0"> Notifications </h6> </div> <div class="col-auto"> <a href="appointment" class="small"> View All</a> </div> </div> </div> <?php $sele = mysqli_query($new,"SELECT a.appointment_id as aid,a.date_created,c.first_name,c.last_name FROM appointments a,clients c WHERE a.client_id = c.client_id AND a.business_name = '$shopname' and a.status = 'online' AND active = 'no' "); while($fetchrows = mysqli_fetch_array($sele)){ ?> <div data-simplebar style="max-height: 230px;"> <a href="#" class="text-reset notification-item"> <div class="media"> <img src="assets/images/users/avatar-2.jpg" class="mr-3 rounded-circle avatar-xs" alt="user-pic"> <div class="media-body"> <?php echo $fetchrows['first_name'].' '.$fetchrows['last_name'];?> <h6 class="mt-0 mb-1"> <p class="font-size-12 mb-1">Has booked an appointment</p> <p class="font-size-12 mb-0 text-muted"><i class="mdi mdi-clock-outline"></i><?php echo $fetchrows['date_created'];?></p> </h6> </div> </div> </a> </div> <?php }?> </div> </div> <div class="dropdown d-inline-block ml-2"> <button type="button" class="btn header-item waves-effect" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <img class="rounded-circle header-profile-user" src="assets/images/users/avatar-2.jpg" alt="Header Avatar"> <span class="d-none d-sm-inline-block ml-1">Welcome <?= $username;?></span> <i class="mdi mdi-chevron-down d-none d-sm-inline-block"></i> </button> <div class="dropdown-menu dropdown-menu-right"> <a class="dropdown-item d-flex align-items-center justify-content-between" href="javascript:void(0)"> <span>Profile</span> </a> <?php $stmt = $con->prepare("SELECT account_type FROM barber_admin WHERE username = ? and business_name = ?"); $stmt->execute(array($username,$shopname)); $userstatus = $stmt->fetchAll(); foreach($userstatus as $sta) { $namee = $sta['account_type']; } $select_role = mysqli_query($new,"SELECT * FROM role_permissions WHERE business_name = '$shopname' and type = '$namee' and page_name = 'Service Category'"); $rowroles = mysqli_fetch_array($select_role); $rolestatus = $rowroles['status']; $page = $rowroles['page_name']; if($rolestatus == "1"){?> <?php } elseif($namee != "Admin") { ?> <a class="dropdown-item d-flex align-items-center justify-content-between" href="manage-users"> Add Accounts </a> <?php } else {?> <?php }?> <a class="dropdown-item d-flex align-items-center justify-content-between" href="change-password"> <span>Change password</span> </a> <a class="dropdown-item d-flex align-items-center justify-content-between" data-toggle="modal" data-target="#logoutModal" href="#"> <span>Log Out</span> </a> </div> </div> </div> </div> <script type="text/javascript"> document.onreadystatechange = function() { if (document.readyState !== "complete") { document.querySelector("#preloader").style.display = "block"; } else { document.querySelector("#preloader").style.display = "none"; } }; </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.88 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002