MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.149.24.145
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/ppcadsexpert.com/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/ppcadsexpert.com/site-header.php
<?php 
ob_start();
require_once("includes/dbsmain.inc.php");
$page_name=basename($_SERVER['PHP_SELF'],'.php');
include("site-main-query.php");
$sess_id=session_id();

$site_url=$compDATA['admin_website_url'];
$author = str_replace("http://","","$site_url");

$full_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

?>


<!DOCTYPE html>
<html lang="en">
    
<head>
    <meta name="robots" content="noodp, noydir" />
    <?php $actual_link = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>
<link rel="canonical" href="<?php echo $actual_link; ?>">
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php
$locationName=$compDATA['admin_default_location'];

$loc_url=$_REQUEST['loc_url'];
$loc_stmt=my_prepared("select location_id from tbl_location where location_url=? ");
mysqli_stmt_bind_param($loc_stmt, 's', $loc_url);
mysqli_stmt_execute($loc_stmt);
$loc_stmt_res=mysqli_stmt_get_result($loc_stmt);
$LOC_DATA=mysqli_fetch_array($loc_stmt_res);
$loca_id=$LOC_DATA['location_id'];

//$loca_id=db_scalar("select location_id from tbl_location where location_url='$_REQUEST[loc_url]' ");
$loca_url=db_scalar("select location_url from tbl_location where location_id='$loca_id' ");
if($loca_id!="")
{
$loca_name=db_scalar("select location_name from tbl_location where location_id='$loca_id' ");
$locationName=$loca_name;
}




$meta_cat_url=$_REQUEST['cat_url'];
$meta_cat_stmt=my_prepared("select category_id from tbl_category where category_url=? ");
mysqli_stmt_bind_param($meta_cat_stmt, 's', $meta_cat_url);
mysqli_stmt_execute($meta_cat_stmt);
$meta_cat_stmt_res=mysqli_stmt_get_result($meta_cat_stmt);
$META_CAT_DATA=mysqli_fetch_array($meta_cat_stmt_res);
$meta_cat_id=$META_CAT_DATA['category_id'];


//$meta_cat_id=db_scalar("select category_id from tbl_category where category_url='$_REQUEST[cat_url]' ");
if($meta_cat_id!="")
{
$meta_title=str_replace("LOCATION",$locationName,db_scalar("select category_meta_title from tbl_category where category_id='$meta_cat_id' "));
$meta_key=str_replace("LOCATION",$locationName,db_scalar("select category_meta_keywords from tbl_category where category_id='$meta_cat_id' "));
$meta_desc=str_replace("LOCATION",$locationName,db_scalar("select category_meta_description from tbl_category where category_id='$meta_cat_id' "));
}else{

$meta_title=str_replace("LOCATION",$locationName,db_scalar("select site_pages_meta_title from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'"));
$meta_key=str_replace("LOCATION",$locationName,db_scalar("select site_pages_meta_keyword from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'"));
$meta_desc=str_replace("LOCATION",$locationName,db_scalar("select site_pages_meta_description from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'"));



}?>



<title><?=$meta_title?></title>
<meta name="description" content="<?=$meta_desc?>">
<META NAME="keywords" content="<?=$meta_key?>" />


    <!-- Favicon -->
    <link rel="icon" type="image/png" sizes="32x32" href="<?=$site_url?>/<?=$compDATA['admin_favicon']?>">


        <link rel="stylesheet" href="<?=$site_url?>/assets/css/all.min.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/flaticon.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/animate.min.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/bootstrap.min.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/bootstrap-select.min.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/owl.carousel.min.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/jquery.fancybox.min.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/perfect-scrollbar.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/slick.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/style.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/responsive.css">
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/color.css">

        <!-- REVOLUTION STYLE SHEETS -->
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/revolution/settings.css">
        <!-- REVOLUTION LAYERS STYLES -->
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/revolution/layers.css">
        <!-- REVOLUTION NAVIGATION STYLES -->
        <link rel="stylesheet" href="<?=$site_url?>/assets/css/revolution/navigation.css">


        <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert-dev.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.css">


<?php if($compDATA['admin_index_follow']=='Yes'){ ?>
<meta name="robots" content="index, follow" />
<? }else{ ?>
<meta name="robots" content="noindex, nofollow" />
<? } ?>
<?php if($compDATA['admin_meta_fb_id']!=''){ ?>
<meta property="fb:page_id" content="<?=$compDATA['admin_meta_fb_id']?>" />
<? } ?>
<?php if($compDATA['admin_meta_alexa_id']!=''){ ?>
<meta name="alexaVerifyID" content="<?=$compDATA['admin_meta_alexa_id']?>"/>
<? } ?>
<?php if($compDATA['admin_meta_msvalidate_id']!=''){ ?>
<meta name="msvalidate.01" content="<?=$compDATA['admin_meta_msvalidate_id']?>" />
<? } ?>
<?php if($compDATA['admin_site_verification_code']!=''){ ?>
<meta name="google-site-verification" content="<?=$compDATA['admin_site_verification_code']?>" />
<? } ?>
<?php if($compDATA['admin_google_analytic_code']!=''){
 echo $compDATA['admin_google_analytic_code'];
}?>





    </head>
    <body>

            <!--  Loader

            <div id="mta-page-loader-container" class="mta-loader-container style1">
                <div id="mta-page-loader" class="mta-loader">
                    <div class="inner"></div>
                    <img class="loader-logo" src="assets/images/loader-logo.png" alt="Loader Logo">
                </div>
            </div> -->

<?php
$sql_logo_welcome=db_query("select * from tbl_header where 1 and header_status='Active' limit 1");
if(mysqli_num_rows($sql_logo_welcome)>0){
$DATALOGO=mysqli_fetch_array($sql_logo_welcome);
@extract($DATALOGO);
}
?>
            <header class="stick style1 logo-left">
                <div class="container d-flex flex-row justify-content-between flex-nowrap">
                    <div class="header-nav-wrap w-100">
                        <nav class="nav-wrap d-flex flex-row align-items-center justify-content-between flex-nowrap">
                            <div class="menu-wrap d-flex flex-row justify-content-start flex-nowrap w-100">
                                <div class="logo">
                                    <a class="desktop-logo" href="<?=$site_url?>" title="Home">
                                        <img class="default-logo img-fluid" src="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?>" alt="<?=$compDATA['admin_company_name']?>" srcset="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?> 2x">

                                        <img class="sticky-logo img-fluid" src="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?>" alt="<?=$compDATA['admin_company_name']?>" srcset="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?> 2x">
                                    </a>
                                </div><!-- Logo -->
                                <div class="menu d-flex flex-row align-items-center justify-content-end flex-nowrap w-100">
                                    <ul class="main-menu mb-0 list-unstyled d-flex flex-row align-items-center justify-content-start flex-wrap">
                                        

<?php
$link_sql=db_query("select * from tbl_site_pages where 1 and site_pages_status='Active' and site_pages_show_in_header='Yes' order by site_pages_order_by asc");
while($link_data=mysqli_fetch_array($link_sql)){ 
$pgName=$link_data['site_pages_link'];

if($pgName=="services"){
?> 
<li class="menu-item-has-children"><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html" title="<?=$link_data['site_pages_name']?>"><?=$link_data['site_pages_name']?></a>
    <ul class="children mb-0 list-unstyled">

<?php
$cat_sql=db_query("select * from  tbl_category where category_status='Active' and category_parent_id=0 order by category_order_by asc");
while($cat_res=mysqli_fetch_array($cat_sql))
    {?>
    
    
<?php
if($loca_id!="")
{?>
    <li><a href="<?=$site_url?>/<?=$loca_url?>/<?=$cat_res['category_url']?>.html" title="<?=$cat_res['category_name']?>"><?=$cat_res['category_name']?></a></li>
<?}else{?>
 <li><a href="<?=$site_url?>/<?=$cat_res['category_url']?>.html" title="<?=$cat_res['category_name']?>"><?=$cat_res['category_name']?></a></li>
<?}?>
    
    <?}?>

    </ul>
</li>
<?}else{?>
 <li><a class="active" href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html" title="<?=$link_data['site_pages_name']?>"><?=$link_data['site_pages_name']?></a></li>
<?}?>    
<?}?>



                                    </ul>
                                </div><!-- Menu -->
                            </div><!-- Menu Wrap -->
                            <div class="menu-right-icons d-flex flex-row align-items-center justify-content-end flex-nowrap">
                                <span class="search-btn"></span>
                                
                            </div>
                        </nav>
                    </div><!-- Header Nav Wrap -->
                </div>
            </header><!-- Header -->
            <div class="header-search d-flex flex-wrap justify-content-center align-items-center w-100">
                <span class="search-close-btn"><i class="metaicon-cancel-music"></i></span>
                <form>
                    <input type="text" placeholder="Search">
                </form>
            </div><!-- Header Search -->
            <div class="responsive-header w-100">
                <div class="responsive-topbar w-100">
                    <div class="container d-flex flex-wrap justify-content-between">
                        <div class="logo">
                            <a href="<?=$site_url?>" title="Home"><img class="img-fluid" src="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?>" alt="<?=$compDATA['admin_company_name']?>"></a>
                        </div><!-- Logo -->
                        <div class="menu-right-icons text-white d-flex flex-row align-items-center justify-content-end flex-nowrap">
                            <span class="responsive-menu-btn"><i class="fas fa-align-justify"></i></span>
                            <span class="search-btn"></span>
                            
                        </div>
                    </div>
                </div>
                <div class="responsive-menu">
                    <div class="logo d-inline-block w-100">
                        <a href="<?=$site_url?>" title="Home"><img class="img-fluid" src="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?>" alt="<?=$compDATA['admin_company_name']?>"></a>
                    </div>
                    <ul class="mb-0 list-unstyled">

<?php
$link_sql=db_query("select * from tbl_site_pages where 1 and site_pages_status='Active' and site_pages_show_in_header='Yes' order by site_pages_order_by asc");
while($link_data=mysqli_fetch_array($link_sql)){ 
$pgName=$link_data['site_pages_link'];

if($pgName=="services"){
?> 
<li class="menu-item-has-children"><a href="javascript:void(0);" title=""><?=$link_data['site_pages_name']?></a>
        <ul class="children mb-0 list-unstyled">
<?php
$cat_sql=db_query("select * from  tbl_category where category_status='Active' and category_parent_id=0 order by category_order_by asc");
while($cat_res=mysqli_fetch_array($cat_sql))
    {?>
    
<?php
if($loca_id!="")
{?>
    <li><a href="<?=$site_url?>/<?=$loca_url?>/<?=$cat_res['category_url']?>.html" title="<?=$cat_res['category_name']?>"><?=$cat_res['category_name']?></a></li>
<?}else{?>
    <li><a href="<?=$site_url?>/<?=$cat_res['category_url']?>.html" title="<?=$cat_res['category_name']?>"><?=$cat_res['category_name']?></a></li>

<?}?>
   
    <?}?>
        </ul>
</li>
<?}else{?>
 <li><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html" title="<?=$link_data['site_pages_name']?>"><?=$link_data['site_pages_name']?></a></li>
<?}?>    
<?}?>




                    </ul>
                </div><!-- Responsive Menu -->
            </div><!-- Responsive Header -->

MMCT - 2023