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

30 Commits

Author SHA1 Message Date
Gabor Hojtsy b368542543 Add functionality to make user specified mirror redirection work 2003-08-13 13:11:09 +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 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 bc78f8032c Remove PHP < 4.1.0 BC code
- the creation of $_.. vars
 - global-ing them before usage

These are not needed anymore, we have all mirrors with
PHP > 4.1.0, and those having old versions are disabled
2003-05-27 16:40:05 +00:00
Gabor Hojtsy eab7a75a1b Comment the BC code for pre 4.1.0 mirrors as we have
them disabled now, so autoglobal vars should work on
all mirrors without special preparation

Use $_SERVER['DOCUMENT_ROOT'] for includes
instead of a user defined constant, as the docroot
value is always available [even before prepend.inc]
This ensures consistency and causes no stat() calls

Add myphpnet_...() functions to load, get/set and save
the user preferences, and use them everywhere. This
enables us to easily add new preferences to the same
cookie. Every preference will last for a year this way,
and the cookie will only be set again, if someone
modifies his data on my.php

If this works nicely, then we can easily add a preferred
mirror site setting (and more)

[These changes seem to work on my local mirror]
2003-05-24 19:50:37 +00:00
Ilia Alshanetsky 19d6196627 Optimized include logic.
# As it now stands phpweb uses EXTREMELY inefficient way of including files
# by relying on the include_path parameter. Which causes at least 2 useless
# stat() calls for every include. By prefixing all includes & requires for
# files from include/ with the __PHPWEB_INC_PATH__ constants this is avoided.
2003-05-23 13:35:56 +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 06f9980889 Let's have a var, named $COUNTRY which identifies
the user's country (much like what $LANG 'does' for
the language)
2003-05-03 15:33:16 +00:00
Gabor Hojtsy 701059352b Let the ip-to-country code be part of the site 2003-05-02 20:05:46 +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
Gabor Hojtsy 46b8602758 Prevent any funny guys from stealing our links... 2003-04-23 16:51:52 +00:00
Gabor Hojtsy 01e408cd68 Provide default content-type, charset and language information on all pages 2003-03-02 16:53:32 +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 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 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 3b826487ea Adding info on cache HTTP headers URL to common prepend file.
Modifying manual headers to have a last modified date and have
no cache header. See if it works well... See bug #18897
2003-01-03 13:57:11 +00:00
Gabor Hojtsy 0f0ea9a2ff Removing geoip include to make pages run quicker.
Also adding comment into geoip include file, that
it is there for future use (not left there from
sometime from the past).
2002-12-21 13:39:30 +00:00
Gabor Hojtsy b494b203c2 Adding MQ variable used instead of
calling get_magic_quotes_gpc, because it's short ;)
2002-12-21 11:09:50 +00:00
Gabor Hojtsy cb76709977 Add unset_variables() for future use 2002-12-14 19:38:03 +00:00
Gabor Hojtsy c56145e9d5 Ups, some language modifications and adding success
return value to function (in case someone would like
to check it)
2002-12-14 19:05:41 +00:00
Gabor Hojtsy 009b8c3d11 Add the import_vars() function to make our life easier
in cases, when we need to import some variables from
an array into the global scope. This ensures security
if used properly, as no other variable can snap into the
global scope, only those explicitly requested.

This function is for future use in phpweb scripts.
2002-12-14 19:03:08 +00:00
Gabor Hojtsy a93863e864 Add some code to handle variables nicely in scripts,
and a bit cleaning up (same comment signs, using
include_once, etc.)
2002-12-14 12:41:50 +00:00
Gabor Hojtsy 1da94f42db Fixing XSS bug reported by Stefan Esser (and Derick) 2002-11-26 20:41:26 +00:00
James Cox fc44869164 Part of our getting the new server is that we allow the hosting provider to display a banner. We would like to give other mirrors this opportunity too -- instructions in the readme.
also, some mirror redirection stuff ended up in here, but i felt it important to commit (with commented out code) and start from there, as my code was getting quite stale.
2002-08-13 02:14:44 +00:00
Rasmus Lerdorf ba77a7c013 Oops, let's unset it instead 2001-08-02 15:08:27 +00:00
Rasmus Lerdorf 8d672a80ee Initialize RSIDEBAR_DATA 2001-08-02 14:17:29 +00:00
Gabor Hojtsy 290b36d2ca Cosmetics done in the include dir too :)) 2001-07-08 13:06:38 +00:00
Gabor Hojtsy 6056368752 No need to tweek with separate logos (as there are only one),
and sizes (as it is determined automatically)
2001-06-29 17:51:20 +00:00
jim winstead 33c01cb600 here goes nothing. the new php site look. let the torrent of
bitter and angry "i hate change" emails begin.
2001-03-08 00:18:15 +00:00