MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.119.143.45
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 (0755) :  /home2/ppcad7no/indiatourbus.com/../nspgurukul.org/../pilingdrillingservices.com/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/indiatourbus.com/../nspgurukul.org/../pilingdrillingservices.com/admin/side-bar.php
<?php
    include_once('config.php');
    if (!isLoggedIn()) {
      $_SESSION['msg'] = "You must log in first";
      header('location: login.php');
    }
    $sql = "SELECT * FROM `tb1_admin`";
    $run = mysqli_query($db,$sql) or die("Query Not run");
    $data = mysqli_fetch_assoc($run)
?>
<!-- Sidebar -->
 <ul class="navbar-nav sidebar sidebar-dark accordion" id="accordionSidebar" style="background-color:#2d353c;">

<!-- Sidebar - Brand -->
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="#">
    <div class="sidebar-brand-icon #rotate-n-15">
        <!--<img src="../image/<?php echo $data['logo'];?>" width="80px" alt="" title="Visit Website">-->
    </div>
    <div class="sidebar-brand-text mx-3">
            <?php  if (isset($_SESSION['user'])) : ?>
            <?php echo $_SESSION['user']['admin_name']; ?>
            <?php endif ?>
        </div>
</a>
<?php 
    // include_once('config.php');
    
    $sql1 = "SELECT * FROM `sub_user`";
    $run1 = mysqli_query($db,$sql1) or die("Query Not run2");
    $data1 = mysqli_fetch_assoc($run1)
       ?>
<!-- Divider -->
<hr class="sidebar-divider my-0">

    <li class="nav-item active">
        <a class="nav-link" href="index.php">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            <span style="font-size:18px;">Dashboard</span></a>
    </li>
    <hr class="sidebar-divider my-0">
    <li class="nav-item">
        <?php  if (isset($_SESSION['user'])) :
        $sqll = "SELECT * FROM `tbl_seo` WHERE se_id=1";
        $runl = mysqli_query($db,$sqll) or die("Query Not run");
        $datal = mysqli_fetch_assoc($runl);
        $wspath=$datal['site_path'];
        ?>
        <a target="_blank" class="nav-link collapsed" href="<?php echo $wspath?>">
            <i class="fas fa-fw fa-globe" style="font-size:22px;"></i>
            <span>Visit Website</span>
        </a>
        <hr class="sidebar-divider my-0">
        <?php endif ?>
    </li>
    <?php
    if (isset($_SESSION['user']) && $_SESSION['user']['user_type'] == 'supadmin') {
        echo '<hr class="sidebar-divider my-0">
        <li class="nav-item">
        <a class="nav-link" href="manage-seo.php">
            <i class="fas fa-fw fa-tools" style="font-size:24px;color:red"></i>
            <span>Manage SEO</span><i style="padding-left:20px;" class="fas fa-fw fa-chevron-right"></i></a>
    </li>
    <hr class="sidebar-divider my-0">
        <li class="nav-item">
        <a class="nav-link" href="manage-sitedown.php">
            <i class="fas fa-fw fa-globe" style="font-size:24px;color:yellow"></i>
            <span>Site Down</span><i style="padding-left:20px;" class="fas fa-fw fa-chevron-right"></i></a>
    </li>
    <hr class="sidebar-divider my-0">';
}
?>
    <li class="nav-item">
        <a class="nav-link" href="manage-admin.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage Admin</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
    <li class="nav-item">
        <a class="nav-link" href="manage-about.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage About</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
    <li class="nav-item">
        <a class="nav-link" href="manage_query.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage Enquries</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
    <li class="nav-item">
        <a class="nav-link" href="manage-certificates.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage Certificates</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
    <li class="nav-item">
        <a class="nav-link" href="slider-list.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage Slider</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
    
    <!--    <li class="nav-item">-->
    <!--    <a class="nav-link" href="carrer-list.php">-->
    <!--        <i class="fas fa-fw fa-user"></i>-->
    <!--        <span style="font-size:18px;">Manage Carrer</span>-->
    <!--    </a>-->
    <!--</li>-->
    
    <?php
    if (isset($_SESSION['user']) && $_SESSION['user']['user_type'] == 'supadmin') {
        echo '<li class="nav-item">
        <a class="nav-link" href="seo_area_list.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Services by Area</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
    
    <li class="nav-item">
        <a class="nav-link" href="manage_services.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage Services</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">';
}
?>


<?php 
 if(! $data1['features'] == '' ){
     if($data1['features']=='yes'){
?>
    <li class="nav-item">
        <a class="nav-link" href="manage-feature.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage Features</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
<?php }
     else{}
 }elseif($data1['features']==''){
?><li class="nav-item">
        <a class="nav-link" href="manage-feature.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage Features</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
<?php } ?>
    <li class="nav-item">
        <a class="nav-link" href="social-link.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage Social Links</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
    <li class="nav-item">
        <a class="nav-link" href="manage-clients.php">
            <i class="fas fa-fw fa-user"></i>
            <span style="font-size:18px;">Manage Clients</span>
        </a>
    </li>
    <hr class="sidebar-divider my-0">
    
    <script>
                $(document).ready(function(){
                    setTimeout(function(){
                        window.location.href= 'logout.php';
                    }, 1000*60*10);
                });
            </script>

</ul>

MMCT - 2023