@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb007 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
wordpress
/
wp-content
/
plugins
/
ktai_style
/
admin
/
Path :
Upload File :
New :
File
Dir
//homepage/wordpress/wp-content/plugins/ktai_style/admin/menu-header.php
<?php /* ================================================== * Ktai Admin Display the Menu * based on wp-admin/menu-header.php of WP 2.3 ================================================== */ global $Ktai_Style, $KS_Admin, $menu, $submenu, $parent_file, $submenu_file; $menu_items = array(); $self = preg_replace('|^.*' . preg_quote($Ktai_Style->get('plugin_dir'), '|') . '/admin/|i', '', $_SERVER['PHP_SELF']); if (strcmp($self,'index.php') == 0) { $self = './'; } get_admin_page_parent(); foreach ($menu as $item) { // 0 = name, 1 = capability, 2 = file $is_current = ((strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))); if (! empty($submenu[$item[2]])) { $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index. $m = array('link' => $submenu[$item[2]][0][2], 'desc' => $item[0]); } else if ( current_user_can($item[1]) ) { $m = array('link' => $item[2], 'desc' => $item[0]); } if ($is_current) { $menu_items[] = $m['desc']; } else { $menu_items[] = '<a href="' . $KS_Admin->add_sid($m['link']) . '">' . $m['desc'] . '</a>'; } } echo implode(' | ', $menu_items) . ' [<a href="' . ks_plugin_url(FALSE) . $KS_Admin->add_sid('login.php?action=logout') . '">' . __('Log Out', 'ktai_style') . '</a>]'; // Sub-menu if ( isset($submenu["$parent_file"]) ) : $menu_items = array(); foreach ($submenu["$parent_file"] as $item) : if ( !current_user_can($item[1]) ) { continue; } if ((isset($submenu_file) && $submenu_file == $item[2]) || (! isset($submenu_file) && ((isset($plugin_page) && $plugin_page == $item[2]) || ( !isset($plugin_page) && $self == $item[2])))) { $menu_items[] = $item[0]; } else { $menu_items[] = '<a href="' . $KS_Admin->add_sid($item[2]) . '">' . $item[0] . '</a>'; } endforeach; echo '<hr color="#4f96c8"/>' . implode(' | ', $menu_items); endif; ?>