1
0
mirror of https://github.com/php/web-php.git synced 2026-03-31 19:52:29 +02:00
Commit Graph

75 Commits

Author SHA1 Message Date
Gabor Hojtsy
d4a57bf01d Make the $SEARCH_BASE creation independent, fixing bug #23336 2003-04-25 12:06:08 +00:00
Gabor Hojtsy
b4bbf1c907 prev/next links should not be relative to
the originating server
2003-04-23 20:05:02 +00:00
Gabor Hojtsy
c289439c2e Fix another comment... 2003-04-23 19:56:23 +00:00
Gabor Hojtsy
d3be9d1174 Provide a base URL for relative PHP.net links on the search page
[and only on the search page], so when someone uses remote searching,
he can get back to the original mirror with any relative link on the
page.
2003-04-23 16:50:59 +00:00
Gabor Hojtsy
1c4e5691eb PHP adds slashes to quotes, not quotes
[correction in comment] ;)
2003-04-23 16:29:36 +00:00
Gabor Hojtsy
60e9064645 Recover from another htdig error 2003-04-23 16:21:11 +00:00
Gabor Hojtsy
0ce2585c4f Getting rid of php.net's search bug once and for all... 2003-04-23 16:07:11 +00:00
Jacques Marneweck
d6f9e9d11d * Fixes the images not appearing on the sites using the old htdig search
like http://ch.php.net/ since the /gif/ --> /images/ move a while back.

--jm
2003-03-14 23:31:06 +00:00
Gabor Hojtsy
560eb16e95 Less code is needed to handle language now in search.php as it is in langchooser.inc.
Also provide better default in case $show is not set

Only print out the $LANG parameter in the searchbar, when explicit...
2003-03-02 16:22:14 +00:00
Gabor Hojtsy
332acb9790 Fallback to ch.php.net instead of www.php.net, because our search engine does not work... 2003-02-01 22:39:58 +00:00
Gabor Hojtsy
30505c7b0b Use new spacer image function 2003-01-19 13:23:36 +00:00
Gabor Hojtsy
33b6db218a Move $base test out of if, as it is a general variable prepare action.
Use isset() to check for $base value and not NO_BASE...

Now the search script should work without the base if on the same site.
This makes URLs shorter...
2003-01-18 21:03:55 +00:00
Gabor Hojtsy
18e53a695b Ups, no need to have a line break. Also using make_link seems more
appropriate here...
2003-01-18 18:22:54 +00:00
Gabor Hojtsy
62ea83e386 Remove htdig logo from search page, and reword powered by text slightly... 2003-01-18 18:20:11 +00:00
Gabor Hojtsy
4d52272bb9 Supress warning message. is_executable() outputs a warning in case there is
no such file...
2003-01-10 09:59:23 +00:00
Gabor Hojtsy
e5659eb0fb Properly use those security related checks... 2003-01-06 10:42:33 +00:00
Gabor Hojtsy
ebb80c0664 Damn.... 2003-01-04 19:32:26 +00:00
Gabor Hojtsy
2f21e6e733 Never return results from the howto. Also add a / after howto, so page with
names starting with howto will show up...
2003-01-04 18:41:43 +00:00
Gabor Hojtsy
b23410c7db Harmonize the different $base sources. Let $base end in / so all things work
this way now (as $MYSITE also ends in /).

Apply urlencode to URL parts needed encoding in prev and next links

Adding a security check for show, so there is no need to escape it anywhere

Also add security check for lang and move language detection to up (will be
replaced with langchooser.inc functionality).

Apply $base modification to new search link too...
2003-01-04 18:33:02 +00:00
Gabor Hojtsy
562215c41f Drop out all have_search() calls. Now the central search registry is
updated automatically from local information. This means:

 - There is no need to contact mirrors@php.net to activate local search
   anymore.
 - Unofficial mirror sites can also support searching without any tweaks.

Made base check more intelligent, so there is no need to list all special
.php.net sites. Check for mirror pattern in the name. There is only one
exception here "qa.php.net" which looks like a mirror ;)

More secure page number handling and exclude handling

Urlencode != htmlspecialchars, so use urlencode for URL parameters on
"no documents found" page

Use preg instead of ereg everywhere for consistency

Add language information to manual search dropdown
2003-01-04 17:14:48 +00:00
Gabor Hojtsy
d2ce7f3434 Try to avoid problems coming up because of the bogus htdig
index db of php.net. See bug #20870 for more info... The index
should be updated, but it does not seem to happen, or bogus
entrys keep staying there...
2003-01-04 16:46:14 +00:00
Gabor Hojtsy
ddc1db9425 Go with executable check now... 2003-01-03 20:28:33 +00:00
Gabor Hojtsy
c940b54fd2 Ups, one more dot needed here. 2003-01-03 13:23:14 +00:00
Gabor Hojtsy
055771420d Adding support for preferred_language() selection, in case the language
was not specified.

Adding exact bug number jump in search form

Preserve language preference when falling back to php.net search (no local
search)
2003-01-03 13:20:49 +00:00
Gabor Hojtsy
90a3d0aa54 Use the new MQ variable 2002-12-21 11:10:10 +00:00
Gabor Hojtsy
06297ea990 Adding some code to handle the output of the
latest htdig properly (which uses a <dl> to
present a result)
2002-12-19 13:14:34 +00:00
Gabor Hojtsy
ba1bfc856a Make all these files short_open_tags = off compatible.
As far as I have seen all the other files use the standard
<?php tag, which should be used in all places!
2002-12-16 20:02:27 +00:00
Gabor Hojtsy
746c8d1413 Three more "nosource" => "wholesite" modifications. No
more left as far as I can see.
2002-12-16 18:02:02 +00:00
Gabor Hojtsy
2bd6721148 More sensible name for the whole site search 2002-12-16 17:57:51 +00:00
Gabor Hojtsy
97fff3c328 Put an end to any future infinite loops, check if
the central mirror site has a problem, and just print
out a failure notice then...
2002-12-16 15:16:57 +00:00
Gabor Hojtsy
56dd672d24 Another check if the htsearch program is really an executable
(is in place, and PHP can excute it).

Still commented, so my mails sent out recently will still
be valid ;). After those problems are sorted out, this
can be uncommented, and will provide another check for
local search mirror sites before they go into an error.
2002-12-15 18:29:09 +00:00
Gabor Hojtsy
8c768b6f78 Aaargh, fix that define call... 2002-12-14 18:37:30 +00:00
Gabor Hojtsy
d7126bcc91 The exact two requirements for the search to work are
the have_search() true return value and the
$htsearch_prog variable's existance
2002-12-14 18:25:38 +00:00
Gabor Hojtsy
8c09307394 I'll tell what have I done here after this goes online... 2002-12-14 17:56:13 +00:00
Gabor Hojtsy
81a5f75a4b Shorten redirect URL's codes and add a comment... 2002-12-14 16:21:13 +00:00
Gabor Hojtsy
23c6f30359 Doh, separate multiple excludes with a bar (as the docs says ;) 2002-12-14 15:57:17 +00:00
Gabor Hojtsy
a8e2851f37 A major overhaul of the search page:
- Reorganize code to have two parts instead of four
   (form processing, no form processing)

 - Clean up code, adding comments (use switch instead
   of a series of ifs, use list() instead of several
   value copies, etc.)

 - Try to at least preserve the $lang setting (which
   is still not used, as before)

 - Always exclude "printed" and "printed with notes"
   pages from search results

 - Provide better defaults, if the search page is
   invoked directly (for form target and language)

 - Removed long unused search targets (phplib mls, phpkb)

 - Resolved a few bugs in parameter passing in
   "remote search mode"

 - Introduced XHTML formatting to direct output from
   this script (like in other files)

 - Made the result page's navigation more accessible
   for non-image browsers (already discussed for manual
   pages)

 - Probably other improvements I cannot remember now ;)

This still needs some work, particularly on the language
side, and if any bugs arise from this new code (regarding
the printed page exclusions for example). I hope this is
a good start at least...
2002-12-14 14:40:08 +00:00
jim winstead
07ec7e3edc update url for marc mailing list archives 2002-11-24 19:17:18 +00:00
Sander Roobol
234ca3a727 Typo 2002-11-22 19:51:34 +00:00
Rasmus Lerdorf
6e22a428fe Just a little hack to be able to specify that an unofficial mirror has
search capabilities.
2002-11-22 18:52:17 +00:00
Sander Roobol
bf81c04ed8 Fix referer detection - only allow .php.net domains - fixes #20055
# Note: untested except for php -l
2002-10-24 13:51:54 +00:00
Mark Kronsbein
d1c02d69e1 Typo 2002-09-26 17:55:58 +00:00
Mark Kronsbein
d76b74a622 Adding links to AllTheWeb and Google, if there is no search result 2002-09-26 17:55:32 +00:00
Gabor Hojtsy
9ba469a407 AFAIK we do not index source code for quite a long time now 2002-09-15 11:33:29 +00:00
jim winstead
6d1ac3f6f7 one more xss hole 2002-07-03 00:06:21 +00:00
Rasmus Lerdorf
9d7e86a2de Make search area sticky 2002-06-29 00:30:51 +00:00
Sander Roobol
0bcde0d181 Remember language when using that quickref thingy; #14985 2002-06-16 20:09:45 +00:00
jim winstead
67090a66b9 get rid of prevsearch stuff. it doesn't play nice with caching. 2002-05-02 19:50:04 +00:00
jim winstead
2545bc803b protect against cross-site scripting attack via "base" parameter 2002-03-25 19:20:23 +00:00
Egon Schmid
dd2f899afb This should be the correct name for ht://Dig. 2002-02-21 20:48:47 +00:00