1
0
mirror of https://github.com/php/web-php.git synced 2026-04-27 08:58:12 +02:00
Commit Graph

948 Commits

Author SHA1 Message Date
Gabor Hojtsy 57f8ededa8 tabs2spaces 2003-08-14 13:20:53 +00:00
Gabor Hojtsy d8b234d5fc Fix for silly IE which thinks that an empty base can be real... 2003-08-14 09:20:00 +00:00
Gabor Hojtsy c08b02a16d Much, much, much more news archives, one as old, being
publised in January 1998 ;) Also add generic interlinking
2003-08-13 18:40:04 +00:00
Gabor Hojtsy 0e45964dc3 Never allow www.php.net to be the preferred mirror site 2003-08-13 16:03:21 +00:00
Gabor Hojtsy 23784ab672 Modify mirror listing tables to use classes instead of inline bgcolor
and <small>, which makes the HTML standards compatible and
much smaller. Also make the table look more like the other
standard tables on PHP.net (spacing)
2003-08-13 14:35:12 +00:00
Gabor Hojtsy fb4f7c4825 Convert right/left image alignment to CSS floating 2003-08-13 13:48:03 +00:00
Gabor Hojtsy 78136503d7 Fix a few XHTML validity problems and remove already
commented search support information
2003-08-13 13:30:17 +00:00
Gabor Hojtsy 22ae0f3870 Provide the interface for user selected mirror site redirection
to the website users, as well as adhere to these settings in
the load distribution script
2003-08-13 13:11:55 +00:00
Gabor Hojtsy b368542543 Add functionality to make user specified mirror redirection work 2003-08-13 13:11:09 +00:00
Gabor Hojtsy 9b5bf7a15b Make the different mirror data returning functions E_NOTICE safe 2003-08-13 12:39:33 +00:00
Gabor Hojtsy 21ec0d31e0 Apply coding conventions 2003-08-13 12:15:09 +00:00
Gabor Hojtsy f2cf0babf6 This book is not sold anymore 2003-08-10 11:39:41 +00:00
Gabor Hojtsy 1c5c752e6b Do not require register_globals 2003-08-09 16:51:24 +00:00
Gabor Hojtsy eb015354f1 Movet get_download out of the website root, as it is not supported
to access this directly. Download mirror selections are supported
via the /get/$filename/from/a/mirror URLs
2003-08-09 16:43:45 +00:00
Gabor Hojtsy c1c8c28d59 Kill delims once and for all. 2003-08-09 13:22:54 +00:00
Gabor Hojtsy f325f7d644 delim() and hdelim() are not used anymore 2003-08-09 12:25:32 +00:00
Gabor Hojtsy 89c55fc27e Not used anymore (was a predecessor of prepend.inc) 2003-08-09 12:24:58 +00:00
Gabor Hojtsy 6943eed5e3 Use pregs instead of eregs for consistency and make the code
more readable
2003-08-09 12:16:08 +00:00
Gabor Hojtsy a3cf8e365e No need to make $_SERVER global anymore, we have 4.1.x+
as a requirement currently...
2003-08-09 11:54:51 +00:00
Gabor Hojtsy 000324618f Revert my last commit (add sams book info back), and XHTMLize
<br>s
2003-08-09 09:07:06 +00:00
Gabor Hojtsy 5c572e7ce1 No HTML code should go into the info part... 2003-08-09 08:41:50 +00:00
Gabor Hojtsy cf48605f54 Proper base setting for printed pages with notes 2003-08-09 08:30:01 +00:00
Gabor Hojtsy 0945e1c67b Fix entity usage and URLs for HTML compatibility 2003-08-08 14:26:31 +00:00
Gabor Hojtsy 9cc1cf7138 Wups, this needs to be global... 2003-08-08 14:07:33 +00:00
Gabor Hojtsy e09380cbb4 Do not allow non-online languages as user preferred ones 2003-08-08 14:04:13 +00:00
Gabor Hojtsy 538b86e9c4 Replace .. in file based searches for security reasons 2003-08-08 13:43:39 +00:00
Gabor Hojtsy 6cddadf78e Fix XHTML 1.0 validity problems 2003-08-08 13:08:26 +00:00
Gabor Hojtsy a3d3cfcc36 Fix $_SERVER varname 2003-08-07 17:34:24 +00:00
Gabor Hojtsy db0e38a42a Fix page title, and make the explicit language input field placed
more finely in the HTML output
2003-08-07 12:36:33 +00:00
Gabor Hojtsy edc3012cf6 Adding the new CSS based header and footer on an experimenting page
(thanks.php), also removing time measurement code from prepend.inc
and layout.inc
2003-08-07 09:30:05 +00:00
Gabor Hojtsy 6509db6d9c Put the repeating codes into functions, tabs2spaces and use
more descriptive variable names
2003-08-04 09:45:32 +00:00
Gabor Hojtsy 3737c3e083 Use str_replace for performance reasons, and also
honor the starting spaces on lines, discarded by browsers,
but do replace two nbsps with one and a space, as it is
rendered the same way, and is much smaller.
2003-08-03 17:23:03 +00:00
Gabor Hojtsy 14abb0f22d Add support for highlighting PHP code with CSS classes used, and
use it on the new zend engine 2 page (code idea from livedocs)
2003-08-03 10:17:21 +00:00
Gabor Hojtsy 4f22331f48 Disallow robots to index the printer friendly pages 2003-08-01 12:29:24 +00:00
Gabor Hojtsy 4135039c22 Increase chunk read size from 8K to 12K
because of long old notes
2003-07-29 17:05:15 +00:00
Gabor Hojtsy 2e420296e5 Only set language if properly specified, and fill in the blanks
when saving settings, so they will come back in the right
position in the preference list from the cookie
2003-07-29 12:55:24 +00:00
Gabor Hojtsy 9bd0cc6639 Change default URL shortcut search fallback type to be
the function list search (so users won't get redirected to
google). Also provide the option to force the site to redirect
to do a documentation seach (on google currently) in case
a user is used to this
2003-07-29 11:35:24 +00:00
Gabor Hojtsy 18df8ff1ef Fix a bug, which made language specifying shortcuts
(eg. /it/books) not work.
2003-07-25 16:54:07 +00:00
Gabor Hojtsy 654aaeded5 This is a gif, not a jpg 2003-07-25 15:44:12 +00:00
Gabor Hojtsy 0c96f1df1e Adding Larry's new books [first round] 2003-07-25 11:32:01 +00:00
Gabor Hojtsy c9a1e81413 Don't display edit options, when there is no ID [ie.
when previewing a note]
2003-07-23 18:36:10 +00:00
Andrew Lindeman 90e595890a fixing error in previous commit by goba that made it impossible to
submit a note.
2003-07-23 14:14:51 +00:00
Gabor Hojtsy bc57569536 Manual (and user note) functions remake:
- introduce a new PHP friendly naming scheme,
   like: manual_setup(), manual_header, etc.
 - use PEAR coding standards (except naming)
 - get rid of nasty globals, use one $PGI global for
   all page related information storage
 - get rid of unneded multiple function calls
   (sendManualHeaders and manualHeader)
 - reformat TOC information on pages, use modern CSS
   styled divs, instead of tables and spacers
 - get rid of email obfuscation code in user note handling,
   it is done now on the rsync server (TODO: user note
   text formatting should also be done there)
 - getting rid of extra parameters, as info is always
   available in $PGI
 - XHTML friendly environment for printer friendly pages,
   using CSS instead of nasty tables and other tricks
 - Also provide BC functions, so the sites won't break
   with the new code

Tested on a local mirror. This partically cleans the way
for livedocs, as it provides a much cleaner functional
interface of manual pages.

This commit is accompanied with the phpdoc modifications
to generate files with the new function calls in the future.
2003-07-21 16:41:54 +00:00
Gabor Hojtsy 59435032f7 Also specify BASE_PAGE on manual pages, so it can
be used to print out the show source link properly on pages
accessed with shortcuts

Use the BASE_HREF on manual pages to provide a backlink
to the previous page after user note submissions, so thse
will work from shortcut accessed pages too

These two fixes hopefully close all the problems related to
manual URL shortcut page displays
2003-07-21 13:14:33 +00:00
Gabor Hojtsy 9fd21b55e3 - Get rid of BASE_FOR_MANPAGE in favor of the more
generic _SERVER['BASE_HREF'], which we will use on all
pages

- Remove the old commented mirror switching part, which
was never used, and not going to be used

- Also employ BASE_HREF for the printed version, so the
right server name will be used, and XHTMLize the printed
page's header
2003-07-20 13:44:36 +00:00
Gabor Hojtsy 9a5cd6b532 Implement some more general handling of the base
parameter, to support the usage of webpage shortcuts
without redirections in the future

Also keep the two old base handling methods, until they
can be replaced by this general one
2003-07-13 20:02:10 +00:00
Gabor Hojtsy 72f47439a1 Ups, BASE_FOR_MANPAGE does not start with /manual...
Fix my previous fix...
2003-07-13 19:46:05 +00:00
Gabor Hojtsy d8dc179499 Don't display local search support information for now 2003-07-13 19:39:41 +00:00
Gabor Hojtsy bb99efb3cf Use the base computed for the request, instead of the request
URI, so the dropdown will work for shortcut accessed pages
too. Thanks to Hartmut for the bugreport :)
2003-07-13 13:25:26 +00:00
Andrew Lindeman 1a73113231 correct link, the other went to a p0rn site... 2003-07-08 18:11:40 +00:00