One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens
/
inc
/
Edit File:
page_sidebar.php
<?php /** * page_sidebar.php * * Author: pixelcave * * The main sidebar of each page * */ ?> <!-- Main Sidebar --> <div id="sidebar"> <!-- Sidebar Brand --> <div id="sidebar-brand" class="themed-background"> <a href="index.php?page=dashboard" class="sidebar-title"> <i class="fa fa-anchor"></i> <span class="sidebar-nav-mini-hide"> </span> </a> </div> <!-- END Sidebar Brand --> <!-- Wrapper for scrolling functionality --> <div id="sidebar-scroll"> <!-- Sidebar Content --> <div class="sidebar-content"> <?php if ($primary_nav) { ?> <!-- Sidebar Navigation --> <ul class="sidebar-nav"> <?php foreach( $primary_nav as $key => $link ) { $link_class = ''; $li_active = ''; $menu_link = ''; // Get 1st level link's vital info $url = (isset($link['url']) && $link['url']) ? $link['url'] : '#'; $active = (isset($link['url']) && ($template['active_page'] == $link['url'])) ? ' active' : ''; $icon = (isset($link['icon']) && $link['icon']) ? '<i class="' . $link['icon'] . ' sidebar-nav-icon"></i>' : ''; $agent = ""; if($url == "index.php?page=utility/agent"){ $sql = " SELECT SUM(1) tot FROM user_register a LEFT JOIN kod_syarikattemp b ON b.idSyarikat=a.idSyarikat WHERE a.flagUser=2 AND a.flagApprove='N'"; $data = mysqli_prepare_all($sql,$param_type = "auto",$param_data); $usr = $data->fetch_assoc(); $totagt = $usr['tot']; $agent = (isset($totagt) && $totagt && $totagt>0) ? "<span style='font-size:10px;float:right'><span class='badge label-info'>{$totagt}</span></span>" : "" ; } // Check if the link has a submenu if (isset($link['sub']) && $link['sub']) { // Since it has a submenu, we need to check if we have to add the class active // to its parent li element (only if a 2nd or 3rd level link is active) foreach ($link['sub'] as $sub_link) { if (in_array($template['active_page'], $sub_link)) { $li_active = ' class="active"'; break; } // 3rd level links if (isset($sub_link['sub']) && $sub_link['sub']) { foreach ($sub_link['sub'] as $sub2_link) { if (in_array($template['active_page'], $sub2_link)) { $li_active = ' class="active"'; break; } } } } $menu_link = 'sidebar-nav-menu'; } // Create the class attribute for our link if ($menu_link || $active) { $link_class = ' class="'. $menu_link . $active .'"'; } ?> <?php if ($url == 'separator') { // if it is a separator and not a link ?> <li class="sidebar-separator"> <i class="fa fa-ellipsis-h"></i> </li> <?php } else { // If it is a link ?> <li<?php echo $li_active; ?>> <a href="<?php echo $url; ?>"<?php echo $link_class; ?>><?php if (isset($link['sub']) && $link['sub']) { // if the link has a submenu ?><i class="fa fa-chevron-left sidebar-nav-indicator sidebar-nav-mini-hide"></i><?php } echo $agent; echo $icon; ?><span class="sidebar-nav-mini-hide"><?php echo $link['name']; ?></span></a> <?php if (isset($link['sub']) && $link['sub']) { // if the link has a submenu ?> <ul> <?php foreach ($link['sub'] as $sub_link) { $link_class = ''; $li_active = ''; $submenu_link = ''; // Get 2nd level link's vital info $url = (isset($sub_link['url']) && $sub_link['url']) ? $sub_link['url'] : '#'; $active = (isset($sub_link['url']) && ($template['active_page'] == $sub_link['url'])) ? ' active' : ''; // Check if the link has a submenu if (isset($sub_link['sub']) && $sub_link['sub']) { // Since it has a submenu, we need to check if we have to add the class active // to its parent li element (only if a 3rd level link is active) foreach ($sub_link['sub'] as $sub2_link) { if (in_array($template['active_page'], $sub2_link)) { $li_active = ' class="active"'; break; } } $submenu_link = 'sidebar-nav-submenu'; } if ($submenu_link || $active) { $link_class = ' class="'. $submenu_link . $active .'"'; } ?> <li<?php echo $li_active; ?>> <a href="<?php echo $url; ?>"<?php echo $link_class; ?>><?php if (isset($sub_link['sub']) && $sub_link['sub']) { ?><i class="fa fa-chevron-left sidebar-nav-indicator"></i><?php } echo $sub_link['name']; ?></a> <?php if (isset($sub_link['sub']) && $sub_link['sub']) { ?> <ul> <?php foreach ($sub_link['sub'] as $sub2_link) { // Get 3rd level link's vital info $url = (isset($sub2_link['url']) && $sub2_link['url']) ? $sub2_link['url'] : '#'; $active = (isset($sub2_link['url']) && ($template['active_page'] == $sub2_link['url'])) ? ' class="active"' : ''; ?> <li> <a href="<?php echo $url; ?>"<?php echo $active ?>><?php echo $sub2_link['name']; ?></a> </li> <?php } ?> </ul> <?php } ?> </li> <?php } ?> </ul> <?php } ?> </li> <?php } ?> <?php } ?> </ul> <!-- END Sidebar Navigation --> <?php } ?> <!-- Color Themes --> <!-- Preview a theme on a page functionality can be found in js/app.js - colorThemePreview() --> <!-- <div class="sidebar-section sidebar-nav-mini-hide"> <div class="sidebar-separator push"> <i class="fa fa-ellipsis-h"></i> </div> <ul class="sidebar-themes clearfix"> <li> <a href="javascript:void(0)" class="themed-background-default" data-toggle="tooltip" title="Default" data-theme="default" data-theme-navbar="navbar-inverse" data-theme-sidebar=""> <span class="section-side themed-background-dark-default"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-classy" data-toggle="tooltip" title="Classy" data-theme="css/themes/classy.css" data-theme-navbar="navbar-inverse" data-theme-sidebar=""> <span class="section-side themed-background-dark-classy"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-social" data-toggle="tooltip" title="Social" data-theme="css/themes/social.css" data-theme-navbar="navbar-inverse" data-theme-sidebar=""> <span class="section-side themed-background-dark-social"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-flat" data-toggle="tooltip" title="Flat" data-theme="css/themes/flat.css" data-theme-navbar="navbar-inverse" data-theme-sidebar=""> <span class="section-side themed-background-dark-flat"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-amethyst" data-toggle="tooltip" title="Amethyst" data-theme="css/themes/amethyst.css" data-theme-navbar="navbar-inverse" data-theme-sidebar=""> <span class="section-side themed-background-dark-amethyst"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-creme" data-toggle="tooltip" title="Creme" data-theme="css/themes/creme.css" data-theme-navbar="navbar-inverse" data-theme-sidebar=""> <span class="section-side themed-background-dark-creme"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-passion" data-toggle="tooltip" title="Passion" data-theme="css/themes/passion.css" data-theme-navbar="navbar-inverse" data-theme-sidebar=""> <span class="section-side themed-background-dark-passion"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-default" data-toggle="tooltip" title="Default + Light Sidebar" data-theme="default" data-theme-navbar="navbar-inverse" data-theme-sidebar="sidebar-light"> <span class="section-side"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-classy" data-toggle="tooltip" title="Classy + Light Sidebar" data-theme="css/themes/classy.css" data-theme-navbar="navbar-inverse" data-theme-sidebar="sidebar-light"> <span class="section-side"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-social" data-toggle="tooltip" title="Social + Light Sidebar" data-theme="css/themes/social.css" data-theme-navbar="navbar-inverse" data-theme-sidebar="sidebar-light"> <span class="section-side"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-flat" data-toggle="tooltip" title="Flat + Light Sidebar" data-theme="css/themes/flat.css" data-theme-navbar="navbar-inverse" data-theme-sidebar="sidebar-light"> <span class="section-side"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-amethyst" data-toggle="tooltip" title="Amethyst + Light Sidebar" data-theme="css/themes/amethyst.css" data-theme-navbar="navbar-inverse" data-theme-sidebar="sidebar-light"> <span class="section-side"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-creme" data-toggle="tooltip" title="Creme + Light Sidebar" data-theme="css/themes/creme.css" data-theme-navbar="navbar-inverse" data-theme-sidebar="sidebar-light"> <span class="section-side"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-passion" data-toggle="tooltip" title="Passion + Light Sidebar" data-theme="css/themes/passion.css" data-theme-navbar="navbar-inverse" data-theme-sidebar="sidebar-light"> <span class="section-side"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-default" data-toggle="tooltip" title="Default + Light Header" data-theme="default" data-theme-navbar="navbar-default" data-theme-sidebar=""> <span class="section-header"></span> <span class="section-side themed-background-dark-default"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-classy" data-toggle="tooltip" title="Classy + Light Header" data-theme="css/themes/classy.css" data-theme-navbar="navbar-default" data-theme-sidebar=""> <span class="section-header"></span> <span class="section-side themed-background-dark-classy"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-social" data-toggle="tooltip" title="Social + Light Header" data-theme="css/themes/social.css" data-theme-navbar="navbar-default" data-theme-sidebar=""> <span class="section-header"></span> <span class="section-side themed-background-dark-social"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-flat" data-toggle="tooltip" title="Flat + Light Header" data-theme="css/themes/flat.css" data-theme-navbar="navbar-default" data-theme-sidebar=""> <span class="section-header"></span> <span class="section-side themed-background-dark-flat"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-amethyst" data-toggle="tooltip" title="Amethyst + Light Header" data-theme="css/themes/amethyst.css" data-theme-navbar="navbar-default" data-theme-sidebar=""> <span class="section-header"></span> <span class="section-side themed-background-dark-amethyst"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-creme" data-toggle="tooltip" title="Creme + Light Header" data-theme="css/themes/creme.css" data-theme-navbar="navbar-default" data-theme-sidebar=""> <span class="section-header"></span> <span class="section-side themed-background-dark-creme"></span> <span class="section-content"></span> </a> </li> <li> <a href="javascript:void(0)" class="themed-background-passion" data-toggle="tooltip" title="Passion + Light Header" data-theme="css/themes/passion.css" data-theme-navbar="navbar-default" data-theme-sidebar=""> <span class="section-header"></span> <span class="section-side themed-background-dark-passion"></span> <span class="section-content"></span> </a> </li> </ul> </div> --> <!-- END Color Themes --> </div> <!-- END Sidebar Content --> </div> <!-- END Wrapper for scrolling functionality --> </div> <!-- END Main Sidebar -->
Simpan