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

101 Commits

Author SHA1 Message Date
Mehdi Achour
2002c50ec4 fix #27529 2004-03-08 22:44:02 +00:00
Gabor Hojtsy
0bd5157228 Add back the link to the CVS interface, and add that there is no support for this... 2004-01-20 15:39:59 +00:00
Gabor Hojtsy
222c8c0f26 More information on what should work and how, so we hopefully get better
bug reports in the future.
2004-01-20 13:36:47 +00:00
Gabor Hojtsy
09c9196a00 the full function list generation code is now available in CVS, so we can fix the bugs reported, and generate updated function lists as required 2003-11-21 11:14:16 +00:00
Gabor Hojtsy
ef29a6d81c Pointer to the file with JS uncompressed 2003-11-14 17:16:02 +00:00
Gabor Hojtsy
0119e1d6e5 Try to avoid confusion by disabling the search form (which
does not contain anything else, but the same as the top right part)
2003-11-07 20:08:06 +00:00
Gabor Hojtsy
a7e8def0e7 Integrate functions.js into the search page for public beta testing
(announcement will come later)
2003-10-26 16:02:12 +00:00
Gabor Hojtsy
1f1bb00255 Add some sensible information on non-php.net pages when mod.php is visited.
Also disallow the indexing of mod.php and remove duplicate exclusion
of search.php (it is already included in robots.txt)
2003-08-24 12:13:41 +00:00
Gabor Hojtsy
48130753c4 Do not index the search page 2003-08-18 09:51:53 +00:00
Gabor Hojtsy
58f07d1381 Drop out the useless (and unused) parts from here, and clean
up the rest:
 -> use new includes and base page specification
 -> better support for redirection in case of high load
 -> reuse code - mirror_redirect()
 -> also make the whole page XHTML compliant on the way
2003-08-16 12:17:55 +00:00
Gabor Hojtsy
b0d1d55abe Use <hr /> instead of the overcomplicated hdelim() 2003-08-08 12:58:27 +00:00
Gabor Hojtsy
9755f2f748 XHTML fixes: <p> cannot contain <ul> and <pre>,
<ul> needs to have an <li>, <select> has no
width="" param, etc.
2003-06-14 19:01:00 +00:00
Gabor Hojtsy
5bc08a1522 Tabs -> spaces on top, and override $lang with
$LANG if $lang was empty or not set, given that
$LANG is always set to some useable language
code
2003-06-04 08:40:09 +00:00
Andrew Lindeman
eb2eb53218 use www.php.net instead of the mirror for the site option in google, in
case a mirror hasn't been indexed by google.
2003-05-24 21:11:40 +00:00
Wez Furlong
0b233b7d24 google doesn't like trailing slash on site 2003-05-23 01:58:26 +00:00
Wez Furlong
39f1bd1030 switch to google; alltheweb isn't quite as smart just yet 2003-05-23 01:54:09 +00:00
Wez Furlong
b7c0ecfb61 deprecate ht://dig in favour of alltheweb.
alltheweb has better results than ht://dig and allows us to utilize all mirrors
equally for load balancing.
2003-05-23 01:30:20 +00:00
Wez Furlong
eb342bd893 google only www.php.net 2003-05-23 00:52:34 +00:00
Wez Furlong
747a239eca &amp;! 2003-05-23 00:48:40 +00:00
Wez Furlong
9726770502 better googling 2003-05-23 00:42:32 +00:00
Wez Furlong
1d9cdd7e2e Unconditionally dump manual searches onto mirrors (that are search capable). 2003-05-22 21:40:04 +00:00
Wez Furlong
25a318e8a7 Add loadavg checks here too 2003-05-22 17:37:49 +00:00
Gabor Hojtsy
661cd64838 Add new mirror_setcookie() function to set
a cookie for all mirror sites, and use it for
country and last language cookies set by our
code

Also add code to remember the last search term
and selected search option in a cookie (JS code
will come to handle this on the client side)
2003-05-17 12:45:51 +00:00
Jacques Marneweck
0143fb470c * More sysstat reducing stuff.
* Also added CVS Id: tags to files missing them at the top.

--jm
2003-05-15 23:22:13 +00:00
Gabor Hojtsy
f638146c23 Be closer to XHTML in the form, and also reflect the
'internals' list name change (in a comment)
2003-05-15 16:18:14 +00:00
Gabor Hojtsy
ec1b4d6414 Make the horizontal bars look similar in Mozilla
then in Internet Explorer (black, one pixel high).
Also have hdelim()s in the same color all the time
2003-05-14 19:20:41 +00:00
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