sourceforge/nodemin/trunk/menu.php @ 644
4 | batix | <table align="left" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|||
<?
|
|||
$nazvy_v_menu=file("menu.dat");
|
|||
for ($i=0,$a=0,$b=0;$i<sizeof($nazvy_v_menu);$i++) {
|
|||
if (strstr($nazvy_v_menu[$i],"*")) {
|
|||
$menu_system[$a]=str_replace("*","",chop($nazvy_v_menu[$i]));
|
|||
$menu_system_male[$a]=strtolower($menu_system[$a]);
|
|||
$a++;
|
|||
continue;
|
|||
}
|
|||
$nazvy_v_menu[$b]=chop($nazvy_v_menu[$i]);
|
|||
$nazvy_v_menu_male[$b]=strtolower($nazvy_v_menu[$b]);
|
|||
$b++;
|
|||
}
|
|||
include "lock.php";
|
|||
//echo $_SESSION['online_user_prava'];
|
|||
//strtolower
|
|||
if ($_SESSION['online_user_serverIP']!="") {
|
|||
for ($i=0;$i<sizeof($nazvy_v_menu);$i++) {
|
|||
8 | batix | if ($nazvy_v_menu[$i]=="") continue;
|
|
4 | batix | if (!strstr($_SESSION['online_user_prava'],".".$nazvy_v_menu[$i].".|")) continue;
|
|
if ($sekce[$nazvy_v_menu_male[$i]]=="lock") echo "<td align=\"center\" class=\"tdMenu3\"><a class=\"aMenuLock\" href=\"?id=".$nazvy_v_menu_male[$i]."&lng=".$_GET['lng']."&".SID."\">".$nazvy_v_menu[$i]."</a></td>";
|
|||
else {
|
|||
if ($_GET['id']==$nazvy_v_menu_male[$i]) echo "<td align=\"center\" class=\"tdMenu1\"><b>".$nazvy_v_menu[$i]."</b></td>";
|
|||
else echo "<td align=\"center\" class=\"tdMenu2\" ><a class=\"aMenu\" href=\"?id=".$nazvy_v_menu_male[$i]."&lng=".$_GET['lng']."&stahni=1&".SID."\">".$nazvy_v_menu[$i]."</a></td>";
|
|||
}
|
|||
}
|
|||
}
|
|||
for ($i=0;$i<sizeof($menu_system);$i++) {
|
|||
8 | batix | if ($menu_system[$i]=="") continue;
|
|
4 | batix | if (!strstr($_SESSION['online_user_prava'],".".$menu_system[$i].".|")) continue;
|
|
if ($sekce[$menu_system_male[$i]]=="lock") echo "<td align=\"center\" class=\"tdMenu3\"><a class=\"aMenuLock\" href=\"?id=".$menu_system_male[$i]."&lng=".$_GET['lng']."&".SID."\">".$menu_system[$i]."</a></td>";
|
|||
else {
|
|||
if ($_GET['id']==$menu_system_male[$i]) echo "<td align=\"center\" class=\"tdMenu1\"><b>".$menu_system[$i]."</b></td>";
|
|||
else echo "<td align=\"center\" class=\"tdMenu2\" ><a class=\"aMenu\" href=\"?id=".$menu_system_male[$i]."&lng=".$_GET['lng']."&".SID."\">".$menu_system[$i]."</a></td>";
|
|||
}
|
|||
}
|
|||
?>
|
|||
</tr>
|
|||
</table>
|