"; echo " "; echo $display_text; echo " | "; echo "
"") { foreach($config['installedpackages']['menu'] as $menuitem) { if($menuitem['section'] != $section) continue; if($menuitem['url'] <> "") { $addresswithport = getenv("HTTP_HOST"); $colonpos = strpos($addresswithport, ":"); if ($colonpos !== False){ //my url is actually just the IP address of the pfsense box $myurl = substr($addresswithport, 0, $colonpos); } else { $myurl = $addresswithport; } $description = str_replace('\$myurl', $myurl, $menuitem['url']); } else { $description = '/pkg.php?xml=' . $menuitem['configfile']; } $extarray[] = array($menuitem['name'], $description); } } return $extarray; } function output_menu($arrayitem, $target="") { foreach($arrayitem as $item) { if($target) $targetinfo = "target='{$target}'"; echo '
", "", $noticemsg); $noticemsg = str_replace("
", "", $noticemsg); $noticemsg = str_replace("", "", $noticemsg); $noticemsg = str_replace("", "", $noticemsg); $noticemsg = str_replace("
"; echo " "; echo $display_text; echo " | "; echo "