2020include_once $ _SERVER ['DOCUMENT_ROOT ' ] . '/include/errors.inc ' ;
2121include $ _SERVER ['DOCUMENT_ROOT ' ] . '/include/results.inc ' ;
2222
23- // Constant values for the display
24- define ("COLUMNS " , 4 );
25- define ("SHOW_CLOSE " , 20 );
26-
2723if (empty ($ notfound )) {
2824 mirror_redirect ("/search.php " );
2925}
@@ -37,8 +33,6 @@ function quickref_table($functions, $sort = true)
3733 echo "<!-- result list start --> \n" ;
3834 echo "<ul id= \"quickref_functions \"> \n" ;
3935 // Prepare the data
40- $ i = 0 ;
41- $ limit = ceil (count ($ functions ) / COLUMNS );
4236 if ($ sort ) {
4337 asort ($ functions );
4438 }
@@ -97,7 +91,7 @@ function quickref_table($functions, $sort = true)
9791 foreach ($ temp as $ file => $ p ) {
9892
9993 // Stop, if we found enough matches
100- if (count ($ maybe ) >= SHOW_CLOSE ) { break ; }
94+ if (count ($ maybe ) >= 30 ) { break ; }
10195
10296 // If the two are more then 70% similar or $notfound is a substring
10397 // of $funcname, then the match is a very similar one
@@ -116,7 +110,7 @@ function quickref_table($functions, $sort = true)
116110if (count ($ maybe ) > 0 ) { $ head_options = array ("noindex " ); }
117111else { $ head_options = array (); }
118112
119- site_header ("Manual Quick Reference " , $ head_options +array ("current " => "docs " ));
113+ site_header ("Manual Quick Reference " , $ head_options +array ("current " => "help " ));
120114
121115// Note: $notfound is defined (with htmlspecialchars) inside manual-lookup.php
122116$ notfound_enc = urlencode ($ notfound );
@@ -137,38 +131,13 @@ function quickref_table($functions, $sort = true)
137131 <b><?php echo $ notfound ; ?> </b> doesn't exist. Closest matches:
138132</p>
139133
140- <?php quickref_table ( $ maybe , false ); ?>
141- <br clear="left"/>
134+ <?php
135+ quickref_table ( $ maybe , false );
142136
143- <h1>Other forms of search</h1>
137+ $ config = array (
138+ "sidebar " => '<p class="panel"><a href="/search.php?show=all&pattern= ' . $ notfound_enc . '">Full website search</a> ' ,
139+ );
144140
145- <p>
146- To search the string "<b><?php echo $ notfound ; ?> </b>" using other options, try searching:
147- </p>
148-
149- <ul id="quickref_other">
150- <li><?php print_link ('search.php?show=manual&pattern= ' . $ notfound_enc , 'Only the documentation ' ); ?> </li>
151- <li><?php print_link ('search.php?show=wholesite&pattern= ' . $ notfound_enc , 'The entire php.net domain ' ); ?> </li>
152- <li><?php print_link ('search.php?show=pecl&pattern= ' . $ notfound_enc , 'pecl.php.net ' ); ?> </li>
153- <li><?php print_link ('http://bugs.php.net/search.php?cmd=Display+Bugs&status=All&bug_type=Any&search_for= ' . $ notfound_enc , 'The Bug DB ' );?> </li>
154- <li><?php print_link ('http://marc.info/?r=1&w=2&q=b&l=php-general&s= ' . $ notfound_enc , 'php-general mailing list ' );?> </li>
155- <li><?php print_link ('http://marc.info/?r=1&w=2&q=b&l=php-internals&s= ' . $ notfound_enc , 'Internals mailing list ' );?> </li>
156- <li><?php print_link ('http://marc.info/?r=1&w=2&q=b&l=phpdoc&s= ' . $ notfound_enc , 'Documentation mailing list ' );?> </li>
157- </ul>
158- <br clear="left"/>
159- <p>
160- <?php
161- site_footer ();
162- exit ;
141+ site_footer ($ config );
163142}
164- ?>
165-
166- <p>
167- Here is a list of all the documented PHP functions.
168- Click on any one of them to jump to that page in the
169- manual.
170- </p>
171143
172- <?php
173- site_footer ();
174- ?>
0 commit comments