Projekt

Obecné

Profil

<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++) {
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]."&amp;lng=".$_GET['lng']."&amp;".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]."&amp;lng=".$_GET['lng']."&amp;stahni=1&amp;".SID."\">".$nazvy_v_menu[$i]."</a></td>";
}
}
}
for ($i=0;$i<sizeof($menu_system);$i++) {
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]."&amp;lng=".$_GET['lng']."&amp;".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]."&amp;lng=".$_GET['lng']."&amp;".SID."\">".$menu_system[$i]."</a></td>";
}
}
?>
</tr>
</table>
(9-9/20)