- use highlight_php() to highlight notes, so PHP code will
be color coded in user note text
- better URL recognition, and open stuff in new window
- drop code converting strings back and forth, and fixing old
formatting stuff
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.
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
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
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
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
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
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 ;)
the correct URI of a manual page which is currently served.
The code uses no external calls, it is based on config params
provided by sendmanualheaders() and manualheaders(), which
are always properly parameterized on all manpages and are
always called.
The <base> printout is added with a comment now,
so we can see if it works correcly. If yes, that the
comment signs can be removed, making that effective.
Then all the manual shortcuts can be changed to include()
manual pages instead of redirecting to them. Relative
links will work.
# phpweb guys: please make it a point to try and use make_image() function
# for generating images where you can. It allows us to manage the load
# a little easier
country bold. This JS file will be expanded in the future
to add features like last search keyword / last selected
search option remembering
This JS was tested in Mozilla, Galeon and Konqueror
with success and the code was human checked against
MSDN for Internet Explorer questions. It also includes
a BC check for browsers without DOM support.