MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.217.118.7
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/omraysgroup.com/../generalmotorsju.com/uploaded_files/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/omraysgroup.com/../generalmotorsju.com/uploaded_files/../site-header.php
<?php 
ob_start();
require_once("includes/dbsmain.inc.php");
$page_name=basename($_SERVER['PHP_SELF'],'.php');
include("site-main-query.php");
if($compDATA['admin_site_down']=='Yes'){
 header("location:site-down.php");
 exit;
}
$site_url=$compDATA['admin_website_url'];
$author = str_replace("http://","","$site_url");

$prdct_name=$_REQUEST['cat_name'];
$catgoryID=db_scalar("select category_id from tbl_category where 1 and category_url='$prdct_name'");
//************ To Fetch Page Heading ****************//
$pgHeading=db_scalar("select site_pages_name from tbl_site_pages where 1 and site_pages_status='Active' and site_pages_link='$page_name'");
?>
<?php
  function query($pid){
    $query = db_query("select * from tbl_category where 1 and category_parent_id='$pid' and category_status='Active' order by category_order_by asc");
	return $query;
  }  
  function has_child($query){
    $numRows = mysqli_num_rows($query);
	if($numRows > 0){
	return true;
	}else{
	return false;
	}
  }
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php if($compDATA['admin_index_follow']=='Yes'){ ?>
<meta name="robots" content="index, follow" />
<? }else{ ?>
<meta name="robots" content="noindex, nofollow" />
<? } ?>
<?php if(!empty($catgoryID)){?>
<title><?=db_scalar("select category_meta_title from  tbl_category where category_status='Active' and category_id='$catgoryID'")?></title>
<META NAME="description" content="<?=db_scalar("select category_meta_description from  tbl_category where category_status='Active' and category_id='$catgoryID'")?>" />
<META NAME="keywords" content="<?=db_scalar("select category_meta_keywords from  tbl_category where category_status='Active' and category_id='$catgoryID'")?>" />
<? }else{?>
<title><?=db_scalar("select site_pages_meta_title from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'")?></title>
<META NAME="description" content="<?=db_scalar("select site_pages_meta_description from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'")?>" />
<META NAME="keywords" content="<?=db_scalar("select site_pages_meta_keyword from  tbl_site_pages where site_pages_status='Active' and site_pages_link='$page_name'")?>" />
<? }?>
<meta name="revisit-after" content="3 days"/>
<meta name="copyright" content="<?=$compDATA['admin_company_name']?>"/>
<meta name="distribution" content="global"/>
<meta name="language" content="english">
<meta name="author" content="<?=$author?>">
<?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']?>" />
<? } ?>
<link href='http://fonts.googleapis.com/css?family=Montserrat:300,400,700' rel='stylesheet' type='text/css'>
<link href="../../maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?=$site_url?>/css/bootstrap.min.css" media="screen">
<link rel="stylesheet" type="text/css" href="<?=$site_url?>/css/jquery.bxslider.css" media="screen">
<link rel="stylesheet" type="text/css" href="<?=$site_url?>/css/owl.carousel.css" media="screen">
<link rel="stylesheet" type="text/css" href="<?=$site_url?>/css/owl.theme.css" media="screen">
<link rel="stylesheet" type="text/css" href="<?=$site_url?>/css/font-awesome.css" media="screen">
<!-- REVOLUTION BANNER CSS SETTINGS -->
<link rel="stylesheet" type="text/css" href="<?=$site_url?>/css/settings.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="<?=$site_url?>/css/style.css" media="screen">
<link rel="stylesheet" type="text/css" href="<?=$site_url?>/css/style-menu.css">
<link rel="stylesheet" href="<?=$site_url?>/css/lightbox.css">
<?php if($compDATA['admin_google_analytic_code']!=''){
 echo $compDATA['admin_google_analytic_code'];
}
?>
<?php
$sql_logo_welcome=db_query("select * from tbl_header where 1");
 if(mysqli_num_rows($sql_logo_welcome)>0){
  $DATALOGO=mysqli_fetch_array($sql_logo_welcome);
   @extract($DATALOGO);
}
?>
</head>
<body>

<!-- Container -->
<div id="container"> 
  <!-- Header
		    ================================================== -->
  <header class="clearfix">
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="top-line">
        <div class="container">
          <div class="row">
            <div class="col-md-8">
              <ul class="info-list">
                <li> <i class="fa fa-phone"></i> Call us: <span><?=$compDATA['admin_mobile']?></span> </li>
                <li> <i class="fa fa-envelope-o"></i> Email us: <span><?=$compDATA['admin_email']?></span> </li>
                <li> <i class="fa fa-clock-o"></i> working time: <span>08:00 - 20:00</span> </li>
              </ul>
            </div>
            <div class="col-md-4">
             <?php if( ($compDATA['admin_facebook_link']!='') || ($compDATA['admin_twitter_link']!='') || ($compDATA['admin_gplus_link']!='') || ($compDATA['admin_linkedin_link']!='') ){ ?>
              <ul class="social-icons">
                <?php if($compDATA['admin_facebook_link']!=''){ ?>
      <li><a href="<?=$compDATA['admin_facebook_link']?>" target="_blank"><i class="fa fa-facebook"></i></a></li>
      <? } ?>
      <?php if($compDATA['admin_twitter_link']!=''){ ?>
      <li><a href="<?=$compDATA['admin_twitter_link']?>" target="_blank"><i class="fa fa-twitter"></i></a></li>
      <? } ?>
      <?php if($compDATA['admin_gplus_link']!=''){ ?>
      <li><a href="<?=$compDATA['admin_gplus_link']?>" target="_blank"><i class="fa fa-google-plus"></i></a></li>
      <? } ?>
      <?php if($compDATA['admin_linkedin_link']!=''){ ?>
      <li><a href="<?=$compDATA['admin_linkedin_link']?>" target="_blank"><i class="fa fa-linkedin"></i></a></li>
      <? } ?>
              </ul>
              <? } ?>
            </div>
          </div>
        </div>
      </div>
      
	  
	  
	  
	  
	  
	  
	  
	  
      
      
      
      
      
      
      
      <section class="bg-clr">
      <div class="container">
           <div class="row pd0">
               <div class="col-md-4">
                   <a href="<?=$site_url?>"><img src="<?=$site_url?>/header_files/<?=$DATALOGO['header_logo']?>" alt="<?=$compDATA['admin_company_name']?>" title="<?=$compDATA['admin_company_name']?>"></a>
               </div>
               
               <div class="col-md-8">
               <a class="toggleMenu" href="#"><i class="fa fa-bars" aria-hidden="true"></i></a>

    <?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 limit 0,6");
	  if(mysqli_num_rows($link_sql)>0){
?>       
 <ul class="nav">
 <?php 
	  while($link_data=mysqli_fetch_array($link_sql)){
	   $pgName=$link_data['site_pages_link'];
	   
	  ?>
      <?php if($pgName=='index'){ ?>
	<li  class="test"><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html"><?=$link_data['site_pages_name']?></a></li>
	<? }elseif($pgName=='products'){ ?>
     <li class="test"><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html"><?=$link_data['site_pages_name']?></a>
		
		<ul>
        
           
            <?php
function fetch_header_menu($query) {
$site_url=db_scalar("select admin_website_url from tbl_admin where 1");
	while ( $result = mysqli_fetch_array ( $query ) ) {
		$menu_id = $result ['category_id'];
		$menu_name = ucwords(strtolower($result ['category_name']));
		$menu_cat_link = $result ['category_url'];
		if (has_child ( query ( $menu_id ) )) {
			$menuClass = "icn-bg";
		}else{
		   $menuClass = "";
		}
 	  echo "<li class='{$menuClass}'><a href='$site_url/{$menu_cat_link}.html'>{$menu_name}</a>";
		if (has_child ( query ( $menu_id ) )) {
			echo "<ul>";
			fetch_header_menu ( query ( $menu_id ) );
			echo "</ul>";
		}
		echo "</li>";
	}
}
fetch_header_menu (query(0)); //call this function with 0 parent id
?>
		</ul>
	</li>
	 <? }else{ ?>
	<li><a href="<?=$site_url?>/<?=$link_data['site_pages_link']?>.html"><?=$link_data['site_pages_name']?></a></li>
    <? } ?>          
          <? } ?>
          <li><a href="<?=$site_url?>/webmail" target="_blank">Webmail Login</a></li>
           <?php if($compDATA['admin_search_option']=='Yes'){ ?>
    <li class="search"><a href="#" class="open-search"><i class="fa fa-search"></i></a></li>
    <? } ?>
     
</ul>
<? } ?>
</div>
 <?php if($compDATA['admin_search_option']=='Yes'){ ?>
 <?php include("site-search.php");?>
           <? } ?>  
           </div>
      </div>
      </section>
      
      
      
      
      
      
      
      
      
      
      
      
      
      <!-- /.container-fluid --> 
    </nav>
  </header>

MMCT - 2023