1
0
mirror of https://github.com/php/web-php.git synced 2026-04-24 07:28:16 +02:00
Commit Graph

186 Commits

Author SHA1 Message Date
Gabor Hojtsy 837473ee25 Add sitemap to footer 2003-08-16 13:38:56 +00:00
Gabor Hojtsy 928b95845e Add shortcut function to print out news images (right aligned images
in the /images/news dir, pointing to an URL and having an ALT)
2003-08-16 08:42:28 +00:00
Gabor Hojtsy 262623adca Add the ability to specify that a page should not be indexed 2003-08-15 10:46:40 +00:00
Gabor Hojtsy 76fd80c28c Support site_header customization through a config array,
and handle language related things here too
2003-08-14 13:32:37 +00:00
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 fb4f7c4825 Convert right/left image alignment to CSS floating 2003-08-13 13:48:03 +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 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 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 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 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
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 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 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
Rasmus Lerdorf edbe4e40bf New categorized look for the calendar sidebar
Might take a couple of hours for the backend data and this new frontend
ui to get in synch.
2003-06-01 19:16:54 +00:00
Rasmus Lerdorf ddc3732b3b More work on the event categorization 2003-06-01 15:52:37 +00:00
Gabor Hojtsy c0c7276f29 This base seems to be correct to me on mirror
sites too, so enable it
2003-05-24 11:10:51 +00:00
Gabor Hojtsy bc55d94455 Add $BASE_FOR_MANPAGE which will always contain
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.
2003-05-23 20:45:39 +00:00
Jacques Marneweck 979269e7f1 - Fixed $www_static_root not being echo'ed which caused stylesheet and a
couple of graphics to not load.
2003-05-20 22:08:51 +00:00
Jacques Marneweck 5997e36ffd - Fixed parse error with the } on line 5.
--jm
2003-05-20 22:03:34 +00:00
Sascha Schumann 0c04ec780b More work on moving accesses to static resources 2003-05-20 21:49:38 +00:00
Sascha Schumann f9644502ad Refactor code, use static.php.net and load style.css, favicon.ico,
and userprefs.js from there.

For the latter, cookies need to be set to "domain = .php.net"!
2003-05-20 21:45:24 +00:00
Gabor Hojtsy 485e1761e1 $COUNTRY is not needed here... 2003-05-17 09:16:21 +00:00
Jacques Marneweck 37a267d343 * More of the E_NOTICE fixes. Also make the spacer.gif pull from the
seperate images server if www.php.net

--jm
2003-05-15 21:16:21 +00:00
Wez Furlong 6ea5f27387 Route images via thttpd for www.php.net site itself.
# 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
2003-05-15 16:36:04 +00:00
Gabor Hojtsy ec5a78f5e9 Adding client side JS to make events in the user's
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.
2003-05-15 13:27:40 +00:00
Gabor Hojtsy 24137bf133 Ugh... 2003-05-14 20:21:14 +00:00
Gabor Hojtsy ec1b4d6414 Make the horizontal bars look similar in Mozilla
then in Internet Explorer (black, one pixel high).
Also have hdelim()s in the same color all the time
2003-05-14 19:20:41 +00:00
James Cox a7423ced2a ok, so actually we get even more of a gain by removing the /user/css.php stuff.
Flame me later, but this is going to stay.. we can't afford the apache hit this causes on every page load.
2003-05-13 21:16:38 +00:00
Gabor Hojtsy f1dd4aaa39 Display local events in bold on the calendar page too
Also polish the display_event function and print out
the country information too about the event in brackets
2003-05-12 11:48:36 +00:00
Gabor Hojtsy 44c0612239 Get a bit closer to standards.
- use CSS instead of proprietary margin attributes
 - remove table height attribute, as it was nonsene
   (the table was much higher that it was specified anyway)
 - use CSS class instead of <font> which is not allowed
   to contain anything but inline elements

Tested these changes on my local mirror, it seems to be
perfect [identical display to current php.net] with
Mozilla and Konqueror
2003-05-12 11:14:18 +00:00
Andrew Lindeman 5413c1f17a oops, I forgot to replace that while I was messing around with the code... 2003-05-04 16:10:51 +00:00
Andrew Lindeman a817de3d63 My last commit didn't work, because there is no 'note' CSS class. Just convert <P> tags to <br>'s, to keep everything looking the same. 2003-05-04 15:36:44 +00:00
Gabor Hojtsy fc6bfedd98 Remove geoip code to decrease any confusion
that may arise. We are using ip-to-country
2003-05-04 11:27:51 +00:00
Andrew Lindeman 2a6ef74b1a code -> note -- what was I thinking :-/ 2003-05-03 21:37:42 +00:00
Andrew Lindeman 4566793f1a <p> tags in user notes really screw up the style of the page. Make sure these tags stay in the 'code' class 2003-05-03 21:36:30 +00:00
Gabor Hojtsy 9ae10bf244 Jumpstart our new ip-to-country service by marking
events in the user's country with bold letters, right on
the frontpage

This implementation is expected to be cache friendly,
and separates user based content from usual content.
If the CSS output of user/css.php is cached, then we
need to add more aggressive non-cacheing headers.
2003-05-03 16:29:40 +00:00
Gabor Hojtsy f0ac4a2f3d Apply E_ALL fixes provided by Hans Zaunere
with slight modifications

Also remove all whitespace at the end of lines

Use !empty() instead of isset() in sidebar checking,
so it will work if the variable is set, but empty
2003-05-02 20:56:38 +00:00
Gabor Hojtsy 698a7304f9 $page_creation_start should be global
for this measuring to work...
2003-05-01 13:11:11 +00:00
Gabor Hojtsy 683f853079 Add getmicrotime() and measure page creation
time from prepend.inc to commonFooter()

Remove ending ?> from files for header() safety
reasons
2003-05-01 12:17:54 +00:00