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

98 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth 817a3e7fd9 Move myphpnet_* functions to the UserPreferences class (#1075) 2024-11-11 11:50:15 +03:00
Maurício Meneghini Fauth f252981e5b Replace MYPHPNET global var with the UserPreferences class (#1071) 2024-09-17 15:55:10 +08:00
Pablo Nicolas Guillamondegui 65de05d556 Enhancement: Use heredoc strings to print cse_snippet and remove end of file delimiter (#1066) 2024-09-12 09:02:05 +03:00
Andreas Möller 45d49c7e95 Fix: Remove emacs instruction (#876) 2023-12-07 11:44:39 +00:00
Andreas Möller a8c736a079 Enhancement: Enable void_return fixer (#661)
* Enhancement: Enable void_return fixer

* Fix: Run 'make coding-standards'
2023-12-05 14:06:29 +01:00
Kamil Tekiela 9a5e56d966 Improve code for language selection (#709) 2022-09-29 10:29:51 +01:00
Andreas Möller 1ebc2c4996 Enhancement: Enable binary_operator_spaces fixer
Closes GH-667.
2022-08-22 19:17:38 +02:00
Andreas Möller d9bcfed482 Enhancement: Enable array_syntax fixer
Co-authored-by: MathiasReker <mathias@reker.dk>

Closes GH-659.
2022-08-22 18:59:14 +02:00
Andreas Möller f127de5db9 Enhancement: Enable strict_param fixer
We set strict param to false to ensure current behavior,
except for two cases where it is safe to go with true.

Closes GH-658.
2022-07-15 14:48:44 +02:00
Christoph M. Becker 5c9eab2f38 Fix CS violations (case of null, false and true) 2022-07-15 14:05:50 +02:00
Andreas Möller b575ebd409 Enhancement: Include *.inc files (with exceptions)
Closes GH-662.
2022-07-15 13:57:08 +02:00
Andreas Möller f24a9f3906 Fix: Remove unused parameters
Closes GH-577.
2022-07-11 18:39:48 +02:00
Ayesh Karunaratne d40890db1b Micro Optimizations - Round #2
* .gitignore: Remove redundant entry

* Minor optimizations with ternary operators

* Use `const` instead of `define()` where appropriate

`const` is quite faster because of the compile-time optimizations. Because the replaced statements are not declaring constant conditionally, it's safe to use `const` in all of these places.

Closes GH-608.
2022-07-03 20:33:22 +02:00
Sara Golemon 9bc507afae Opt out of FLoC 2021-04-20 01:25:47 +00:00
Sara Golemon 735fd755df Fix think-o, this should have been in the last commit. 2021-04-19 15:26:42 +00:00
Sara Golemon 7a66d68a9c Avoid spilling local vars to global scope 2021-04-19 15:02:28 +00:00
Sascha Schumann 30a2f6d7b6 deactivate zlib compression; triggers significant issues towards delivery machines 2020-02-13 14:17:49 +01:00
Sara Golemon cfc6b38ec8 Goodbye Magic Quotes 2019-07-10 13:45:01 -04:00
Sara Golemon 2735e5f03f Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
1/n - Update / and /include/ only.
2019-05-31 11:19:09 -04:00
Derick Rethans b2b48ca1e0 Remove references, redirects, and selection of mirrors 2019-04-01 11:27:09 +01:00
Peter Kokot 0f95b8c709 Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-10-17 07:29:46 +02:00
Bilge e33abc2cc7 Changed Google Custom Search to no longer open links in new window. 2018-08-22 18:30:55 +02:00
Peter Cowburn 426758701b update cse code
The old CSE code stopped working Dec 4th, use the new
recommended way of embedding CSE.

Thanks Philip!
2017-12-06 13:40:05 +00:00
Kalle Sommer Nielsen 2c73b63d0e Fixed bug #69352 (Support loading Google JSAPI over HTTPS) 2015-04-02 04:03:19 +02:00
Pascal Borreli 42497c72fb Fixed typos 2014-05-21 22:57:36 +01:00
Hannes Magnusson 26af598f90 Fix Clickjacking Attacks. Reported by Joel Melegrito 2014-05-08 10:21:22 -07:00
Hannes Magnusson 46ce29d9d2 Show the ug tips to lucky few, depending on time 2014-01-22 17:01:11 -08:00
Hannes Magnusson 032ea400f0 Fix a unset notice for old cookies 2014-01-22 17:00:33 -08:00
Hannes Magnusson f2a8c4af49 Add enable/disable myphpnet setting for the UG beta listing 2014-01-22 16:37:58 -08:00
Hannes Magnusson 03f249395e Fix Origin headers when browsing locally (e.g. using localhost) 2014-01-22 16:34:28 -08:00
Hannes Magnusson 0abf586bc4 There is nothing that uses APC anymore 2013-12-26 15:17:17 -08:00
Hannes Magnusson 4f51795635 Whops. fail fail. Set the hostname when no port is set 2013-12-10 17:31:32 -08:00
Hannes Magnusson e0dd9f1bf9 Fix same origin policy errors
Maybe this fixes stuff for Opera?
It fixes some issues in Chrome fetching the elephpants for example
on http://php.net (as the elephants requests www.php.net).

The policy check will automatically support all php.net subdomains
2013-12-04 00:41:53 -08:00
Hannes Magnusson a11e8ce9bd Enable compression on all pages
Dear god. How come I always thought this setting was PHP_INI_SYSTEM?!??!
And why has noone ever done this before?
2013-12-03 23:22:14 -08:00
Adam Harvey c8ca8630eb Make the search results page friendlier to users without JS.
Fixes bug #66133 (Search silently brokes is Javascript is not enabled).
2013-11-20 17:17:23 -08:00
Hannes Magnusson d24120761c We have a usable search now, which isn't actually link to this feature anyway 2013-11-20 16:49:46 -08:00
Hannes Magnusson 7cf8424edf Remove wrappers for the beta design, and the old code 2013-11-20 16:29:56 -08:00
Kalle Sommer Nielsen f53bb99457 Remove references to the php.net beta design in my.php and always make myphp[dot]net_beta() return true 2013-11-20 04:50:25 +01:00
Hannes Magnusson a038985372 GO LIVE WITH NEW DESIGN. GO GO GO GO!
Disables the cookie check too, so people that had it stored will now always
see the new design, even if they opted-out of it originally.

The only way to view the "original" page is adding ?beta=0 to the url
2013-11-19 18:43:25 -08:00
Hannes Magnusson d366d46472 Kill the beta warning on all pages 2013-11-19 18:37:33 -08:00
Hannes Magnusson bb25868f0c Quickfix for PHP builtin webserver 2013-11-19 18:37:33 -08:00
Adam Harvey d65d9304a2 Remove unused parse_url() call. That was dumb. Sorry. 2013-08-07 20:34:43 -07:00
Adam Harvey fedea42b2d Redirect back to the original page, not the home page, when setting beta mode. 2013-08-07 20:32:19 -07:00
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