1
0
mirror of https://github.com/php/web-php.git synced 2026-04-24 15:38:06 +02:00
Commit Graph

932 Commits

Author SHA1 Message Date
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
Gabor Hojtsy 55838d5faa Arabic is also not available online 2003-06-18 07:39:01 +00:00
Gabor Hojtsy 8fe303bc05 Use divs to present the TOC items on manual
pages on the left side of the window

Add images according to php.net rules to these
two styles (toca, toci) depending on what mirror
they are used on

Also rewrite the TOC generator code a bit, so it
identifies items properly when their title and titleabbrev
differ [was a bug on many pages]

Also wrap too long function names, so we have the
same amount of content and nav area on pages with
long function names in the TOC [eg. xml functions]

The new div based approach means that we have *much*
less HTML to output, and the layout of the menu is better
than before, as the box images are aligned to the text.
Tested with Mozilla and Konqueror. Apart from pages with
long function names in the TOC, this should look very similar
to the display of the TOC before
2003-06-14 18:28:56 +00:00
Gabor Hojtsy 7db579e003 Korean language code fix 2003-06-13 15:29:19 +00:00
Philip Olson cda59ef3cc Add back the popup link functions, as used by the user comments. 2003-06-08 02:17:10 +00:00
Gabor Hojtsy c2ae6b78fe Allow the caller of make_image() to opt out from
automatic image sizing

Use this feature and convert the border attribute
in make_submit() to output an [X]HTML compatible
<input> tag
2003-06-07 20:17:34 +00:00
Gabor Hojtsy e32ad79275 Tab => spaces and remove ending ?> for consistency 2003-06-07 20:01:53 +00:00
Gabor Hojtsy 6b19498e74 Tabs to spaces, and several rewrites among the common
layout functions. eg. the code for make_image() got optimized

Also employ coding style (comments, spaces, bracing)

Remove the popup link function which are not used for a very
long time...

Put the static root to $_SERVER['STATIC_ROOT'] so it can
easily go around the functions

The header and footer functions are still not rewritten, and
more work is needed on make_submit() to make it [X]HTML
compliant

These changes seem to work on my local mirror
2003-06-07 20:01:07 +00:00
Gabor Hojtsy 413fc3c506 Do a very different SQL query in case of a dot
is provided in the URL, which indicates a better
qualified URL type. All such shortcuts are the end
of filenames, so search for them in this form
2003-06-07 18:54:26 +00:00
Gabor Hojtsy 1d86bcff06 Define the new searchHistory() JS function to restore
the last search done by a user

Include this in the onload event handler of the index page,
and in all other pages, where an onload handler is not already
defined

Add name to form, so we can call it by it's name

JS tested with Mozilla. As the functions and objects used
are rather old, it should work with all browsers. In case someone
knows a better way, go and fix it ;)
2003-06-05 19:41:55 +00:00
Gabor Hojtsy 69d4b58e86 Reflect the phpdoc changes in the comments 2003-06-04 18:34:22 +00:00
Gabor Hojtsy 89200e688e Hide the left side bar and the top and bottom navbars
from mnogosearch, so the indexing will be a bit faster,
and the results will be more accurate. Mnogo will still
find all the pages starting from the TOCs and indexes

Also use $MYSITE instead of $SERVER_NAME and
$SERVER_PORT, as we have the mirrors detected
name in $MYSITE

Also remove some unused code from the user note
handling functions
2003-06-04 09:12:11 +00:00
Gabor Hojtsy 98679b4e1f Only use a non-empty requested language 2003-06-04 08:38:31 +00:00
Gabor Hojtsy 7eca1945e0 Also set the explicit lang if it was specified in a shortcut
(eg. /hu/echo) as we include the page now, and don't
redirect
2003-06-04 08:18:37 +00:00
Derick Rethans 8a3dc36b34 - Make it global too :) 2003-06-02 09:49:46 +00:00
Derick Rethans 40849db79b - Remove inactive languages from this list too 2003-06-02 08:40:18 +00:00
Derick Rethans 6751cf78ab - Make it possible to disable languages that should not show up as available
language online.
2003-06-02 08:36:54 +00:00