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

759 Commits

Author SHA1 Message Date
Gabor Hojtsy
d661afe206 Better explicit language handling, including REQUEST vars now... 2003-03-02 16:16:04 +00:00
Gabor Hojtsy
22c1c68d29 Only print out language, if explicitly specified (on manual pages).
Otherwise, the language to use for the search can be computed on the
fly from other implicit sources (which won't change between the two
requests, unlike the explicit spec).
2003-03-02 15:51:36 +00:00
Gabor Hojtsy
f62e1d8900 Also count with explicit language specifications for search forms... 2003-03-02 15:47:42 +00:00
Gabor Hojtsy
6c6ecd674c Use the $LANG var, which always contains the used
language, and default_language() cannot help...
2003-03-02 11:09:51 +00:00
Gabor Hojtsy
96c0018daa Provide a default for the stipped URI, so it works if the
language is not specified...
2003-03-01 20:50:46 +00:00
Gabor Hojtsy
196a7f04c0 Integrate the langauge chooser to the main site flow, and update the
documentation pages to use the new $LANG var to display documentation
download pages "customized" to the user

This also makes preferred_language()'s remove, as $LANG is perfect for
this purpose...
2003-03-01 16:14:35 +00:00
Gabor Hojtsy
64906f9b38 Provide an URL version with language code stripped off for cleaner
shortcut handling
2003-03-01 16:03:44 +00:00
Gabor Hojtsy
4a5b9f90f0 Ups, $idx is not needed. Keep the code simple and clean too ;)) 2003-03-01 13:53:56 +00:00
Gabor Hojtsy
ae05da2ba1 Applying KISS, taking account the user's Accept Language browser setting
(without bothering with the priority values provided by the UA, as those
are not applicable for us).
2003-03-01 13:52:46 +00:00
Gabor Hojtsy
82cefa6e39 The new Wrox books title does not include, and we have the authors list
thanks to Mitja
2003-02-27 18:12:20 +00:00
Gabor Hojtsy
55ad4b8356 Adding new Wrox books, with unknown authors list... 2003-02-25 22:24:40 +00:00
Gabor Hojtsy
a5d194d6c9 Go with new better looking URLs which are also ok for IE...
http://php.net/get/{filename}/from/a/mirror => opens the mirror selection page
http://php.net/get/{filename}/from/this/mirror => download from this mirror
http://php.net/get/{filename}/from/{mirrorname}/mirror => download from {mirrorname} mirror

This is wget friendly. and avoids the extension on the end of the URL,
which made some IEs and download managers go mad to think that a HTML
page is actually an exe or a zip file... The URLs are also good to read out :)
2003-02-09 10:56:17 +00:00
Gabor Hojtsy
b392b73595 Try to hide extension from dumb browsers... 2003-02-07 15:17:21 +00:00
Gabor Hojtsy
df5a172554 OK, now my tests shows that new /get links work quite well, so go with
them, and wait for error reports...

New links: /get/{filename} opens up the mirror selection page
           /get/{filename}/from/{mirrorname} send the file for download

These are wget friendly and look quite nice in newsletters, etc...
2003-02-05 19:59:35 +00:00
Gabor Hojtsy
4174d89a58 Use the new book image names (ISBN number) 2003-02-03 21:21:57 +00:00
Gabor Hojtsy
cfa3ab9627 Start the switch to /images instead of /gifs 2003-02-03 21:20:47 +00:00
Simone Cortesi
f62afcbd9b fixing typo 2003-02-03 01:18:36 +00:00
Gabor Hojtsy
7fcc901f23 Two smalls is a bit too much small for the form... 2003-02-02 12:28:55 +00:00
Gabor Hojtsy
dbd21f362d Close form after text, so it is not displayed on the next line 2003-02-02 11:43:24 +00:00
Gabor Hojtsy
a1814d4d7d Align last modified date properly 2003-02-02 11:33:19 +00:00
Gabor Hojtsy
9f42ebb5d9 Correct class 2003-02-02 11:32:02 +00:00
Gabor Hojtsy
131956b8b6 Add mirror information page link 2003-02-02 11:00:43 +00:00
Gabor Hojtsy
e5134b2955 Switch language / print change links to a dropdown, to comsume less
space on the screen, as discussed before.
2003-02-02 10:14:35 +00:00
Gabor Hojtsy
a7900e5540 Adding new Wrox book 2003-01-27 15:35:26 +00:00
Gabor Hojtsy
d9edcfcac0 Make the toc table always 100% wide (make the line looks better under the TOP link) 2003-01-26 10:20:05 +00:00
Gabor Hojtsy
ec08d5989b Hide underline from left sidebar links 2003-01-25 12:00:37 +00:00
Gabor Hojtsy
de25050d9d Put a space after "mirror sites", so it is not that far right... 2003-01-24 20:19:15 +00:00
Gabor Hojtsy
b2a46030f4 Make the title of the current page bold 2003-01-24 20:16:37 +00:00
Gabor Hojtsy
bdeacea5f7 We need spacing not padding, so standard compliant browsers will
really display that one pixel high line as a one pixel high line.
2003-01-24 19:48:03 +00:00
Gabor Hojtsy
fad5d896fb Override central stats setting if local vhost setting is specified
Add new is_official_mirror function to query if this is a registered
mirror site
2003-01-19 17:50:34 +00:00
Gabor Hojtsy
44ddc8d344 Really make that row one pixel high, and print newlines after doc TOC entries,
so the HTML is easier to debug...
2003-01-19 17:32:41 +00:00
Gabor Hojtsy
c2873628b4 Separate navigation controls and user notes 2003-01-19 13:30:32 +00:00
Gabor Hojtsy
04e136e352 - Allow spacer() to return string if needed.
- Use default parameters if possible...
- Add spacer to manual sidebar to make it look the same in Mozilla then in IE
2003-01-19 13:24:41 +00:00
Gabor Hojtsy
0fddf6baf0 Moving spacer gif to images dir... 2003-01-19 13:14:11 +00:00
Gabor Hojtsy
6a2374b0d9 There is no need for a base, as the search page is always on the same server... 2003-01-18 21:49:49 +00:00
Gabor Hojtsy
0bd36027a7 Also take in account the array of available langauges,
so we need not check for files which should not be there...
2003-01-18 15:16:03 +00:00
Gabor Hojtsy
05fbc7093e Override central language setting with local language preference... 2003-01-18 15:13:59 +00:00
Gabor Hojtsy
d3757924b2 Let the common URL handler choose the right page to redirect to... 2003-01-11 12:40:05 +00:00
Gabor Hojtsy
89365927f6 Separate data from presentation. Move books data to include/books.inc, as
all other "tabular" data is somewhere there... This also makes books.php
more editable, as it means less load to the rsync server if the display
logic changes.
2003-01-11 12:32:52 +00:00
Gabor Hojtsy
f48f493b50 Get back to our normal logo... 2003-01-08 18:29:06 +00:00
Gabor Hojtsy
1a8c63483e Use preg for consistency 2003-01-08 09:05:31 +00:00
Gabor Hojtsy
893f85aa23 Add a comment on why the parentheses replace is there (it was not obvious for
me for the first time, just after I thought about it ;)).
2003-01-08 08:11:51 +00:00
Gabor Hojtsy
4f966f1d88 Add new mirror_redirect() function to redirect to some local or remote URI.
Use $MYSITE instead of $SERVER_NAME for local redirects. It's always the
"best name" for the mirror, most probably the mirrors real mirror name if
it's found.

Use this new function to greatly simplify redirects in the URL handler script.

Also use a switch instead of multiple IFs to react to some special shortcuts.

Still more to come...
2003-01-08 08:06:07 +00:00
Gabor Hojtsy
76f33c14ae Adding Id CVS attr to many include files, and also adding C++ format header,
for anybody who uses it, just for consistency ;)
2003-01-07 22:15:57 +00:00
Gabor Hojtsy
cc22cda4be Remove empty cvsignore and not used cvs-auth file (it is now on master.php.net) 2003-01-07 22:11:56 +00:00
Gabor Hojtsy
eeeb079430 Reworked code. Better variable names, comments added, etc. Functionality
not changed in any way, but modern code structures are used ;) ie. foreach
instead of while(each())...
2003-01-07 22:05:00 +00:00
Gabor Hojtsy
8bd25d842e Update manual copyright date... 2003-01-07 20:23:52 +00:00
Gabor Hojtsy
2cba76df96 Make correction, as requested by Dallas Thunder... 2003-01-07 19:56:45 +00:00
Gabor Hojtsy
03199a69df Prevent the ENV language setting coming up in $LANG, when it is not set otherwise... 2003-01-06 10:43:26 +00:00
Gabor Hojtsy
a0828a862d Echo that string out... 2003-01-05 20:37:41 +00:00