1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 15:22:19 +01:00
Commit Graph

55 Commits

Author SHA1 Message Date
Paul Dragoonis
59d501dc9a Removing session usage because it's naughty 2013-06-21 21:39:10 +01:00
Paul Dragoonis
fc14dad109 [beta site] implementing betasite=1 or betasite=0 parameter. this keeps the banners setting working like the myphpnet_beta setting to give a consistent user experience without the need for beta=0 or beta=1. 2013-06-21 21:27:19 +01:00
Jakub Vrana
95787bec37 Open custom search results in the same window 2013-04-30 16:58:44 -07:00
Philip Olson
3cd800c78b Added default google CSE search. 2012-08-16 00:04:06 -07:00
Philip Olson
f505daa643 re-enable prototype. to always show beta mode (sorry about that), and make docs. default to beta mode but respect the my.php cookie. 2011-07-02 01:02:49 +00:00
Philip Olson
fcfe49ab03 Allow my.php cookie to also affect docs/prototype, but leave default for them as true. 2011-06-29 01:26:25 +00:00
Hannes Magnusson
af1130ab20 Also enable betaweb by default on docs.php.net, since that is really the only
mirror with everything setup properly
2011-01-02 12:35:53 +00:00
Hannes Magnusson
916b912758 Ignore the cookie and always enable the beta in prototype.php.net 2010-12-28 11:45:44 +00:00
Hannes Magnusson
17fd73b279 Make ?beta=0 disable the new version on per-page basis (philip) 2010-12-28 09:26:01 +00:00
Hannes Magnusson
cd262feb6c Make it possible to quickly compare/switch to beta via ?beta=1 2010-12-26 16:40:00 +00:00
Hannes Magnusson
a3033fe6cd Return english as language fallback, in betamode 2010-12-26 16:07:07 +00:00
Hannes Magnusson
c416fc0dcc Add beta feature 2010-12-26 16:06:23 +00:00
Adam Harvey
a74b0895b9 Fix bug #52204 (htmlentities E_WARNINGs). Patch by Kalle. 2010-10-29 12:08:16 +00:00
Lukas Smith
ddbd2081e4 php 5.3.0RC4 news 2009-06-19 09:09:47 +00:00
Hannes Magnusson
f0fb034bb0 set a "default value" for the url fallback choice (patch by kalle) 2009-05-15 11:53:31 +00:00
Philip Olson
91b6bfe0d1 Alter MQ code, and added "TODO: Remove MQ dependencies from phpweb" 2009-03-26 22:41:08 +00:00
Hannes Magnusson
7f227c358c Set timezone if php.ini is configured incorrectly 2009-01-30 11:45:54 +00:00
Hannes Magnusson
21efa66aab Add support for PHP 5.3 and 6 *sigh* 2008-02-24 22:16:44 +00:00
Hannes Magnusson
cd3d790704 Make sure we don't have runtime magic quoting enabled 2007-03-02 14:53:46 +00:00
Gabor Hojtsy
33ddcceae9 removed unused functions 2006-09-12 12:05:43 +00:00
Rasmus Lerdorf
0454b9b936 Default to utf-8 instead of 8859-1 2006-02-28 16:49:54 +00:00
Rasmus Lerdorf
18bb98f5c2 Some new search options 2006-02-28 08:23:28 +00:00
Rasmus Lerdorf
4b2d0dc2e9 These are the two most accessed file. Remove the bad habit of always
using include_once when all of these files are only ever included from
here and these files themselves are only ever included once.
2006-02-21 20:46:45 +00:00
Gabor Hojtsy
79b77ec894 buglet 2004-12-24 10:43:50 +00:00
Gabor Hojtsy
d744af4159 introduce the function search suggestions on all php.net pages (with possibility to opt-out) 2004-12-22 17:18:11 +00:00
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