[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: header.php
<?php include 'settings/settings.php'; if(!empty($_GET["action"])) { switch($_GET["action"]) { case "add": if(!empty($_POST["quantity"])) { $productByCode = $db_handle->runQuery("SELECT * FROM product WHERE product_id='".$_GET["code"]."'"); $itemArray = array($_POST["code"]=>array('pro_name'=>$_POST["product_name"],'code'=>$_POST["code"],'quantity'=>$_POST["quantity"],'price'=>$_POST["price"],'img'=>$_POST["img"])); //echo "<per>"; //print_r($itemArray); //echo "</pre>"; if(!empty($_SESSION["cart_item"])) { if(in_array($productByCode[0]["product_id"],$_SESSION["cart_item"])) { foreach($_SESSION["cart_item"] as $k => $v) { if($productByCode[0]["product_id"] == $k) $_SESSION["cart_item"][$k]["quantity"] = $_POST["quantity"]; } } else { // echo "add"; $_SESSION["cart_item"] = array_merge($_SESSION["cart_item"],$itemArray); // print_r($_SESSION["cart_item"]); } } else { $_SESSION["cart_item"] = $itemArray; } } break; case "remove": if(!empty($_SESSION["cart_item"])) { foreach($_SESSION["cart_item"] as $k => $v) { if($_GET["code"] == $k) unset($_SESSION["cart_item"][$k]); if(empty($_SESSION["cart_item"])) unset($_SESSION["cart_item"]); } } break; case "empty": unset($_SESSION["cart_item"]); break; } } ?><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>FT | FashionTradet</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="keywords" content="" /> <meta name="description" content="" /> <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script> <!-- fav-icon --> <link rel="icon" href="images/fav-icon.png" type="image/x-icon"> <!-- bosstrap CSS --> <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> <!-- AOS CSS --> <link href="css/aos.css" rel='stylesheet' type='text/css'/> <!-- bootstrap.min.css --> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> <!-- owl [ BANNER ] slider --> <link rel="stylesheet" type="text/css" href="css/owl.carousel.css"> <!-- superfish NAV --> <link href="css/superfish.css" rel="stylesheet" type="text/css"> <script src="js/jquery-1.11.1.min.js"></script> <!-- FontAwesome Start --> <link rel="stylesheet" type="text/css" href="css/font-awesome.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" /> <!-- font awasome --> <link rel="stylesheet" type="text/css" href="css/fontawesome.css"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> <!-- Google Font --> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet"> <!--flexslider [ SINGLE IMG SLIDER ]--> <link rel="stylesheet" type="text/css" href="css/flexslider.css"> <!-- lightbox --> <link href="css/lightbox.css" rel='stylesheet' type='text/css'/> <!-- Sweet Alert --> <script src="admin@/assets/sweetalert-master/dist/sweetalert.min.js"></script> <link rel="stylesheet" type="text/css" href="admin@/assets/sweetalert-master/dist/sweetalert.css"> <!-- custom css --> <link rel="stylesheet" type="text/css" href="css/style.css"> <script> function runMyFunction(){ alert('added to cart'); } </script> </head> <body> <!-- Header Start --> <div class="top-header" data-aos="fade-down" style="transition: all 1000ms ease-in-out;"> <div class="container"> <div class="row"> <div class="col-md-9 col-sm-9 col-xs-9"> <div class="header-contact" data-aos="zoom-in" style="transition: all 1200ms ease-in-out;"> <ul> <li><i class="fa-solid fa-phone"></i><a href="#">+91 00000 00000</a></li> <li><i class="fa-solid fa-envelope"></i><a href="#">info@FashionTradet.com</a></li> </ul> </div> </div> <div class="col-md-3 col-sm-3 col-xs-3"> <div class="sosal-icon" data-aos="zoom-in" style="transition: all 1200ms ease-in-out;"> <ul> <li><a href="#"><i class="fa-brands fa-facebook-f"></i></a></li> <li><a href="#"><i class="fa-brands fa-instagram"></i></a></li> </ul> </div> </div> </div> </div> </div> <div class="bottom-header"> <div class="container"> <div class="row"> <div class="col-md-2 col-sm-3 col-xs-4"> <div class="logo"> <a href="index.php"> <img src="images/logo.png" alt="" /> </a> </div> </div> <div class="col-md-7 col-sm-1 col-xs-1"> <div class="menu"> <nav id="nav-wrap" style="float: right;"> <ul class="sf-menu" id="example"> <li <?php if (stripos($_SERVER['REQUEST_URI'], 'index.php') !== false) { echo 'class="active"';} ?>><a href="index.php"> Home</a> </li> <li <?php if (stripos($_SERVER['REQUEST_URI'], 'fashion-product.php') !== false) { echo 'class="active"';} ?>><a href="">Fashion<spen class="caret"></spen></a> <ul> <li><a href="fashion-product.php?cate=<?=base64_encode('Womens Fashion')?>">Womens Fashion</a></li> <li><a href="fashion-product.php?cate=<?=base64_encode('Mens Fashion')?>">Mens Fashion</a></li> </ul> </li> <li <?php if (stripos($_SERVER['REQUEST_URI'], '') !== false) { echo 'class="active"';} ?>><a href=""> Leather Products<spen class="caret"></spen></a> <ul> <li><a href="fashion-product.php?cate=<?=base64_encode('Women')?>">Women</a></li> <li><a href="fashion-product.php?cate=<?=base64_encode('Men')?>">Men</a></li> </ul> </li> <li <?php if (stripos($_SERVER['REQUEST_URI'], '') !== false) { echo 'class="active"';} ?>><a href=""> Accessories<spen class="caret"></spen></a> <ul> <li><a href="fashion-product.php?cate=<?=base64_encode('For Women')?>"> For Women</a></li> <li><a href="fashion-product.php?cate=<?=base64_encode('For Men')?>">For Men</a></li> <li><a href="fashion-product.php?cate=<?=base64_encode('For Others')?>">For Others</a></li> </ul> </li> </li> <li <?php if (stripos($_SERVER['REQUEST_URI'], 'contact.php') !== false) { echo 'class="active"';} ?>><a href="contact.php" class="reg">Contact</a> </li> </ul> </nav> </div> </div> <div class="col-md-3 col-sm-7 col-xs-6"> <div class="agile-login"> <li style="list-style: none;"> <?php if(isset($_SESSION["cart_item"])){ $item_total = 0; $no=0; $sum=0; ?> <a id="btnEmpty" href="cart.php" class="w3view-cart"> <i class="fa fa-cart-arrow-down" aria-hidden="true"> </i><?php foreach ($_SESSION["cart_item"] as $item){ $no = count($item["code"]); //echo $no; $sum +=$no; } echo $sum;?> </a> <?php }else{ ?> <a id="btnEmpty" href="cart_empty.php" class="w3view-cart"><i class="fa fa-shopping-cart" aria-hidden="true"></i></a> <?php }?> </a> </div> <div class="log-in"> <div class="dropdown"> <?php if(isset($_SESSION['user_id']) && !empty($_SESSION['user_id'])) { ?> <h5 style="color: #950929; padding: 8px 0 0;"><b>Hi,</b> <?= $_SESSION['user']?> - <br></h5> <?php }else{ ?> <button class="dropbtn">Sign in<i class="fa fa-user"></i></button> <?php } ?> <div class="dropdown-content"> <ul class="log-sing"> <?php if(isset($_SESSION['user_id']) && !empty($_SESSION['user_id'])) { ?> <li><a href="profile.php"><i class="fa fa-sign-out"></i>Profile</a></li> <li><a href="logout.php"><i class="fa fa-sign-out"></i>Logout</a></li> <?php }else{ ?> <li><a href="login.php"><i class="fa fa-sign-out"></i>Login</a></li> <li><a href="signup.php"><i class="fa fa-sign-out"></i>Sign Up</a></li> <?php } ?> </ul> </div> </div> </div> </div> </div> </div> </div> <style> /*.sticky { position: fixed; top: 0; width: 100%; z-index: 99999; background: #000; left: 0; box-shadow: -1px 9px 16px -3px rgb(0 0 0 / 32%); -webkit-box-shadow: -1px 9px 16px -3px rgb(0 0 0 / 15%); -moz-box-shadow: -1px 9px 16px -3px rgb(0 0 0 / 32%); } .sticky + .banner { padding-top: 102px; } .sticky .after-brfore a { display: inline-block; vertical-align: middle; padding: 10px 0; border: 0px solid #ffffff; border-radius: 100px; color: #000; text-transform: uppercase; margin: 15px 0 0 0; font-size: 12px; width: 80%; text-align: center; font-weight: bold; background: linear-gradient(to bottom, #fff, #aeaeae); transition: all 600ms ease-in-out; } .sticky .after-brfore a i{ color: red; }*/ </style>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 692.16 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:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619