1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00
Commit Graph

59 Commits

Author SHA1 Message Date
Sara Golemon
2735e5f03f Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
1/n - Update / and /include/ only.
2019-05-31 11:19:09 -04:00
Peter Kokot
dd8d8bf863 Sync final and leading newlines
This patch adds some missing newlines, trims some multiple redundant
final newlines into a single one, and trims few redundant leading
newlines.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-17 12:37:26 +02:00
Peter Kokot
e235f79473 Trim trailing whitespace
This patch cleans all redundant trailing whitespace across the
repository except for the icalendar files.
2018-10-17 10:51:08 +02:00
Peter Kokot
0f95b8c709 Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-10-17 07:29:46 +02:00
Hannes Magnusson
0b8dff5f62 Simplify & add a link to the google search 2013-11-21 20:45:45 -08:00
Hannes Magnusson
55cd8f3f1a Cleanup
Don't use Google here, its really annoying
Also, no need to list every single filename here when people navigate
to this page directly, thats pretty useless. Lets redirect to the
search page instead
Cleaned up some dead code, and no longer supported search options
2013-11-20 17:56:53 -08:00
Rasmus Lerdorf
966a13442a Turn off the API search here too 2013-10-30 15:31:10 -07:00
Daniel P. Brown
3cc9491588 Change multiple checks and references from 'www.php.net' to plainly 'php.net' to reduce 301's, fix a few broken items, and ease a bit of the load off the server (multiple connections per page when statically referenced as 'www.php.net.' 2012-12-05 11:09:23 -05:00
Peter Cowburn
5551124c2c anchor quickref.php regex
The previous regex stumbled on some pages. For example,
reflectionfunction.construct.php was included in the list since
it matches function.<something>.php
2012-08-19 12:38:44 +01:00
Philip Olson
3cd800c78b Added default google CSE search. 2012-08-16 00:04:06 -07:00
Philip Olson
f52321368b Used our standard includes format (which uses DOCUMENT_ROOT) 2012-08-02 10:28:20 -07:00
Philip Olson
51b7a544f9 Panic, and hacked in a custom google search until this bing-is-no-longer-free issue is resolved. 2012-08-02 10:20:01 -07:00
Rasmus Lerdorf
9f809b52c7 Get rid of the nasty table here and start adding more of the
"Other ways to search" links to get closer to this being the
one true initial landing page for the redesign.
2011-07-21 03:41:21 +00:00
Philip Olson
2dcc1fbc61 notfound is already escaped inside manual-lookup.php, so it was escaped twice. Bug discovered by Chris Jones 2011-07-19 23:16:41 +00:00
Philip Olson
4f8bc3d78a Added rudimentary search snippets feature. Common searches result in snippets of text. See also the comments. And feel free to improve the text. 2011-07-19 06:15:22 +00:00
Rasmus Lerdorf
3b13dff2b9 Add a limited intermediate result display cache 2011-07-17 00:02:14 +00:00
Rasmus Lerdorf
fe0d183de3 Right float the bing attribution 2011-07-16 17:55:54 +00:00
Rasmus Lerdorf
ce4f971e93 Make this page a bit more compact so it is easier to scan for actual content 2011-07-16 17:25:58 +00:00
Rasmus Lerdorf
bf3831c9d9 Don't send proxy attempts through the backend web search 2011-07-16 07:07:46 +00:00
Rasmus Lerdorf
aad52615ab Distinguish between 404s and explicit searches and don't log mirrortest 2011-07-16 06:51:35 +00:00
Rasmus Lerdorf
8ee6e6ed92 Do a web search from the manual-lookup page when a function is not found 2011-07-16 05:45:51 +00:00
Philip Olson
8db37aad07 Linked search string to our various search types. Not ideal or working perfectly today, but Y! BOSS v2 will inspire greatness. 2011-07-06 23:51:03 +00:00
Hannes Magnusson
60d5c3b903 Add current config option (ignored in old-web), and FIXME placeholders for pages
not in any menu yet
2010-12-28 11:09:09 +00:00
Hannes Magnusson
6a76d716e2 Fixed bug#44054 (partial function name search returns incomplete result) 2008-03-19 12:20:52 +00:00
Gabor Hojtsy
62eab30df7 apply E_ALL patch sent by Toni Viemero 2004-08-03 21:14:05 +00:00
Gabor Hojtsy
bb9335cb97 That <!--i--> does not seem to help, so remove it... Mozilla includes
the first link after the results in the listing for some reason...
2004-01-19 17:02:32 +00:00
Gabor Hojtsy
0219e1b29f Better list item start marking, so Mozilla will parse the results better 2004-01-19 14:38:21 +00:00
Gabor Hojtsy
cf99f5a07c doh, tabs... 2004-01-19 13:21:41 +00:00
Gabor Hojtsy
83c2e69249 better result list start and end printing for Mozilla Search Bar 2004-01-19 13:13:24 +00:00
Gabor Hojtsy
0033373d06 If there is no manual in the language selected by the user,
then this service is unable to work, so inform the user on this
2003-09-06 09:16:51 +00:00
Gabor Hojtsy
1e359f1dca Fallback to English in case there is no user prefered language available
(will be better handled with livedocs)
2003-08-31 19:21:25 +00:00
Gabor Hojtsy
d82bc71994 Do not allow the indexing of this page, if it is a result of a search
(this will hopefuly clean up the google listings of pages which only
give a search page)
2003-08-15 10:47:22 +00:00
Gabor Hojtsy
e30ed1aa3d Migrate more pages to use the new header and footer functions 2003-08-14 11:56:42 +00:00
Gabor Hojtsy
4d1b1cbbf3 Include base page information 2003-08-08 13:38:32 +00:00
Gabor Hojtsy
4d5338d76b Quickref remake:
- updating code to use modern control structures
and variables
- double the size of "found functions" for searches
- distribute results and the big function list in 3 columns,
instead of 2, as there is many data, and there is plenty
of space for that
- make use of the user's language preference while
searching, so only results available in the preferred
language will be returned
2003-07-20 15:18:15 +00:00
Jacques Marneweck
a98315831b * This seems to be included else where. Reversing the require
'./include/prepend.inc' to require_once 'prepend.inc'

--jm
2003-05-17 22:13:15 +00:00
Andrew Lindeman
2431a65576 correct ID tags 2003-05-16 00:02:09 +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
9cad282a3b Quick fix for the languages issue. Now we have a $LANG var contanining
the language to use...
2003-03-06 18:13:15 +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
Colin Viebrock
313162c7c6 fix broken search stuff 2002-09-11 16:39:53 +00:00
jim winstead
fa2ef33486 similar_text forces third argument to be references 2002-02-20 01:43:39 +00:00
jim winstead
9cb0cb0ea4 use htmlspecialchars when redisplaying search request 2001-08-31 07:59:17 +00:00
Gabor Hojtsy
06d27e2a3e Make this print out the space there 2001-08-16 09:13:29 +00:00
Gabor Hojtsy
7cac9ac5a6 Some more cosmetics... 2001-07-08 12:13:49 +00:00
jim winstead
6b304c4237 hide the $MIRRORS array behind some access functions, for the most part 2001-07-07 01:17:41 +00:00
Gabor Hojtsy
32d0d331b3 Just a technical patch (hope it wont brake anything)
Useing <?php standard open tags instead of the
shorter one

At least trying to be short_tags off compatible.

more to come...
2001-07-01 09:55:13 +00:00
jim winstead
9e5ea7913a make sure language exists before linking to it 2001-06-13 16:06:45 +00:00
Sascha Schumann
f5b5237fa4 Don't automatically include the full PHP function list in failed
manual lookups.
2001-06-12 14:37:36 +00:00
Mark Kronsbein
267deeb027 Missing </P> 2001-05-19 00:04:38 +00:00