403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/baberankings.com.bak/members/kernel/admin/menu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/baberankings.com.bak/members/kernel/admin/menu/load_admin_menu.php
<?
/* K-Rate
(C) Rinalds Uzkalns, 2003-2004. All Rights Reserved
http://turn-k.net

Version: 1.00 (22.09.04)
*/
?>
<?
//get user menu data
        $menu = unserialize($admin['adm_menu']);

//need to update?
        if ($req == 'setexp') {
                $menu[$en['what']][$en['id']]['noexpand'] = $en['value'];
                sql_query("UPDATE $admtable SET adm_menu='".sql_escape_string(serialize($menu))."' WHERE adm_id=".$admin['adm_id']);
                ob_clean();
                header('Location: '.base64_decode($en['return']));
                exit;
                }

//sort modules by priority
        function priority_sort ($a, $b) {
                global $display;
                if ($display[$a]['priority'] == $display[$b]['priority']) return 0;
                return ($display[$a]['priority'] > $display[$b]['priority']) ? -1 : 1;
                }

//make default layout
        foreach ($modules as $key => $value)
            if (is_array($value['adm_menu']) && (int)$value['adm_sect'] == 1) {
              # Separate section in admin menu
                foreach ($value['adm_menu'] as $k => $v)
                    if ((!isset($act_perms[$k]) || $admin_rights[$act_perms[$k]] == 1 || $admin['adm_superadm'] == 1)) //check permissions
                       {

                        $display[$value['group']][$value['name']][$k] = $v;

                        $display[$value['group']][$value['name']]['priority'] = (int)$value['priority'];
                        if ($display[$value['group']]['priority'] < $value['priority'] || !$display[$value['group']]['priority']) {
                                $display[$value['group']]['priority'] = (int)$value['priority'];
                                }

                        }

                }

//move modules without group up
        if (is_array($display[''])) {
                foreach ($display[''] as $key => $value)
                        $display[$key] = $value;
                unset($display['']);
                }

        unset($display['priority']);
        uksort($display, "priority_sort");

        foreach ($display as $key => $value)
                unset($display[$key]['priority']);

//show main module page if only one display section instead of admin home page
        if (count($display) == 1 && $en['req'] == '') {
        
                $en['req'] = 'module_select';
                $en['id'] = base64_encode(key($display));

                }

?>

Youez - 2016 - github.com/yon3zu
LinuXploit