[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: newfooter.php
<footer class="footer"> <div class="container-fluid"> <div class="row"> <div class="col-sm-6"> © <span id="year"></span> The Salon Friend </div> <div class="col-sm-6"> <?php // $seleda = mysqli_query($new,"SELECT * FROM barber_admin WHERE business_name = '$shopname' and account_status = 'Trial'"); // $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>"; // $stmt = $con->prepare("update barber_admin SET expired = ? where business_name = ? "); // $stmt->execute(array($expiry_date,$shopname)); // header("location../expired"); // } // // else { // // $expiry_date = 'yes'; // // $stmt = $con->prepare("update barber_admin SET expired = ? where business_name = ? "); // // $stmt->execute(array($expiry_date,$shopname)); // // header("location../expired"); // // } ?> </div> </div> </div> </footer> <div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5> <button class="close" type="button" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> Select "Logout" below if you are ready to end your current session. </div> <div class="modal-footer"> <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button> <a class="btn btn-primary" href="./logout">Logout</a> </div> </div> </div> </div> <div class="modal fade bd-example-modal-lg50" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title h4" id="myLargeModalLabel">Add New business</h5> <button type="button" class="close waves-effect waves-light" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> <div id="response"></div> </div> <div class="modal-body"> <form method="post" accept-charset="utf-8" id="add_category_bttn1"> <div class="row"> <div class="form-group col-md-6"> <label>Bussiness/Shop name</label> <input type="text" name="business_name" class="form-control" style="height:40px"> </div> <div class="form-group col-md-6"> <label>Business phone number</label> <input type="number" name="phone" class="form-control" style="height:40px"> </div> <div class="form-group col-md-6"> <label>Business Email</label> <input type="email" name="email" class="form-control" style="height:40px"> </div> <div class="form-group col-md-6"> <label>Business location</label> <input type="text" name="location" class="form-control" style="height:40px"> </div> <div class="form-group col-md-12"> <label>Login password</label> <input type="password" name="password" class="form-control" style="height:40px"> </div> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck1" value="Dashboard Analytics"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck2" value="Service Category"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck3" value="Service"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck4" value="In-House Sales"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck5" value="Online Appointments"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck6" value="Suppliers"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck7" value="Product Stock"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck8" value="POS"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck9" value="Product Sales"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck10" value="Product Out of Stock"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck11" value="Add New Stock"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck12" value="Vendors"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck13" value="Expenses"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck14" value="Employee"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck14" value="Payroll"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck15" value="Commission Rate"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck16" value="Manage Users"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck17" value="Customers"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck18" value="Sales Report"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck19" value="Commission Report"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck20" value="Expenses Report"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck21" value="Customers Report"> <input type="hidden" checked name="checkbox_values[]" class="custom-control-input" id="customCheck22" value="Products Report"> <div class="form-group col-md-4"> <button type="submit" id="insert" class="btn btn-success form-control">Send</button> </div> </div> </form> </div> </div> </div> </div> <script type="text/javascript"> document.getElementById("year").innerHTML = new Date().getFullYear(); </script> <script type="text/javascript"> $(document).ready(function() { $('#add_category_bttn1').submit(function(event) { event.preventDefault(); $.ajax({ url: 'insertBusiness.php', type: 'post', headers: {'X-CSRF-Token': $('#csrf_token').val()}, data: $('#add_category_bttn1').serialize(), dataType: 'json', success: function(response) { if (response.status == 'success') { swal("Success!", response.message, "success").then(() => { location.reload(); }); //window.location.href = response.redirect; $('#add_category_bttn1')[0].reset(); } else { swal("Error!", response.message, "error").then(() => { location.reload(); }); } } }); }); }); </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.81 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