require_once("wpldap/inc/setup.php"); require_once("wpldap/inc/build_cert_dn.php"); if (($linkPrefix!="")&&($adminDN==$certDN)){ $menuLevel=2; }; //menu definitions //anonymous $menu[0][] = "Hladanie;/wpldap/"; //$menu[0][] = "Rozsirene hladanie;/wpldap/hladaj.php"; $menu[0][] = "Login;/wpldap/cert_required/"; $menu[0][] = "O aplikacii;/wpldap/help.php?about"; //user $menu[1][] = "Hladanie;/wpldap/cert_required/"; //$menu[1][] = "Rozsirene hladanie;/wpldap/cert_required/hladaj.php"; $menu[1][] = "Edituj vlastny zaznam;/wpldap/cert_required/edit.php?".urlencode($certDN); ; $menu[1][] = "Logout;/wpldap/"; $menu[1][] = "O aplikacii;/wpldap/help.php?about_user"; //administrator $menu[2][] = "Hladanie;/wpldap/cert_required/"; //$menu[2][] = "Rozsirene hladanie;/wpldap/cert_required/hladaj.php"; $menu[2][] = "Edituj vlastny zaznam;/wpldap/cert_required/edit.php?".urlencode($certDN); //$menu[2][] = "Pridaj zaznam;/wpldap/cert_required/add.php?"; $menu[2][] = "Logout;/wpldap/"; $menu[2][] = "O aplikacii;/wpldap/help.php?about_admin"; //help a about sekcie $menu[3][] = "Naspat;".$_SERVER["HTTP_REFERER"]; //assert - level 1 - the basic menu level out of range if (($menuLevel<0) || ($menuLevel>=count($menu))) die("wrong menuLevel (".$menuLevel.")"); //assert - level 2 - the menu sublevel out of range if (($menuSubLevel<0) || ($menuSubLevel>=count($menu[$menuLevel]))) die("wrong menuSubLevel (".$menuSubLevel.")"); //menu paint //gap [px] between menu sections $menuGap = 3; echo '
"; if ($i == $menuSubLevel){ echo " | "; } else { echo " | "; }; echo "$linkName | \n"; }; ?>