function sidebar_content($notfound, $maybe) { $poss_matches = "<h2>Hack and PHP Function List</h2>"; if (!empty($notfound) && count($maybe) > 0) { $poss_matches .= "<p><b>" . $notfound . "</b> function doesn't exist. Closest function matches:</p>"; $poss_matches .= quickref_table($maybe, false); } else { $poss_matches .= "<p><b>" . $notfound . "</b> function doesn't exist. No close matches either.</p>"; } return $poss_matches; }
$head_options = array("noindex"); } else { $head_options = array(); } site_header("Manual Quick Reference", $head_options + array("current" => "help")); // Note: $notfound is defined (with htmlspecialchars) inside manual-lookup.php $notfound_enc = urlencode($notfound); if ($snippet = is_known_snippet($notfound)) { echo "<h1>Related snippet found for '{$notfound}'</h1>"; echo "<p>{$snippet}</p>"; } ?> <h1>PHP Function List</h1> <?php if (!empty($notfound) && count($maybe) > 0) { ?> <p> <b><?php echo $notfound; ?> </b> doesn't exist. Closest matches: </p> <?php quickref_table($maybe, false); $config = array("sidebar" => '<p class="panel"><a href="/search.php?show=all&pattern=' . $notfound_enc . '">Full website search</a>'); site_footer($config); }
?> </li> <li><?php print_link('http://marc.info/?r=1&w=2&q=b&l=phpdoc&s=' . $notfound_enc, 'Documentation mailing list'); ?> </li> </ul> <br clear="left"/> <p> For a quick overview over all documented PHP functions, <?php print_link('quickref.php', 'click here'); ?> . </p> <?php site_footer(); exit; } ?> <p> Here is a list of all the documented PHP functions. Click on any one of them to jump to that page in the manual. </p> <?php quickref_table($functions); site_footer();