| 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 : |
<?
/* K-Rate
(C) Rinalds Uzkalns, 2003-2004. All Rights Reserved
http://turn-k.net
Version: 1.00 (22.09.04)
*/
?>
<html>
<head>
<link rel=stylesheet type="text/css" href="css.css">
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><? echo $_softname; ?> administrator panel</title>
<?
//get admin menu settings
include '../mwf_config/admin/admin_menu_style.php';
# Group
function show_commands($mod_data) {
global $menucnt, $menuid;
# Commands
unset($mod_data['priority']);
foreach ((array)$mod_data as $command => $title) {
$submenuid = 'm'.(++$menucnt);
$title = addslashes($title);
echo " oCMenu.makeMenu('$submenuid','$menuid','$title','index.php?req=$command'); \n";
}
}
foreach ($display as $gr_name => $group) {
$exp = 1-(int)$menu['groups'][$gr_name]['noexpand'];
$top = '';
if ($gr_name != '') {
$menuid = 'm'.(++$menucnt);
$name = addslashes($gr_name);
echo "oCMenu.makeMenu('$menuid','',' $name','index.php?req=module_select&id=".base64_encode($gr_name)."',''); \n";
$top = $menuid;
}
$test2 = $group;
$test = @array_pop($test2);
if (is_array($test)) {
# Modules
foreach ($group as $mod_name => $mod_data)
{
$menuid = 'm'.(++$menucnt);
$name = addslashes($mod_name);
echo "oCMenu.makeMenu('$menuid','$top',' $name','index.php?req=module_select&id=".base64_encode($mod_name)."',''); \n";
show_commands($mod_data);
}
}
else {
show_commands($group);
}
}
?>
oCMenu.construct();
</script>
<br><br>
<table width=100%>
<tr><td width=180 valign=top>
<? if (isset($modules[$active_module])) { ?>
<b><u><? echo $modules[$active_module]['name']; ?></u></b><Br>
<br>
<? foreach ($modules[$active_module]['adm_menu'] as $key => $value) echo '<a href="index.php?req='.$key.'">'.$value.'</a><br>'; ?>
<Br>
<? } ?>
<?
//show bookmarks
$bookm = unserialize(base64_decode($admin['adm_bookmarks']));
if (is_array($bookm) && count($bookm) > 0) {
echo "<b><u>Bookmarks</u></b><Br><Br>";
foreach ($bookm as $key => $value)
echo '<a href="index.php?req='.$key.'">'.$value.'</a><br>';
echo '<br>';
}
//show history
$history = unserialize(base64_decode($admin['adm_history']));
if (is_array($history)) {
$history = array_reverse($history);
foreach ($history as $key => $value) {
foreach ($modules as $k => $v)
foreach ($v['adm_menu'] as $ke => $va)
if ($ke == $key) {
if (!$histshown) {
echo '<b><u>History</u></b><Br><Br><table>';
$histshown = true;
}
//get icon
$icon = $modules[$k]['menu_icons'][$ke];
$bn = pathinfo($icon);
$ic = basename($bn['basename'],'.'.$bn['extension']);
$img = isset($icon) ? '<a href="index.php?req='.$ke.'"><img src="../modules/'.$k.'/icons/'.$ic.'-small.'.$bn['extension'].'" border=0 align=left></a>' : '';
echo '<tr><td>'.$img.'</td><td><a href="index.php?req='.$ke.'">'.$va.'</a></td></tr>';
}
}
if ($histshown)
echo '</table>';
echo '<br>';
}
?>
</td>
<script language=javascript>
function loadScript (url) {
if (document.layers) {
window.location.href = url;
}
else if (document.getElementById) {
var script = document.createElement('script');
script.defer = true;
script.src = url;
document.getElementsByTagName('head')[0].appendChild(script);
}
}
function ch_options (url, value) {
if (value == 'all') return false;
url = url.concat('&cat=').concat(value);
loadScript(url);
}
</script>
<td valign=top>
<!-- page content -->