1
0
mirror of https://github.com/php/web-php.git synced 2026-04-28 09:23:14 +02:00
Commit Graph

427 Commits

Author SHA1 Message Date
Peter Cowburn 5223f48cbe Curly braces for string offset access are deprecated 2020-02-05 20:40:49 +00:00
Sara Golemon aad64a2d07 Preserve absolute href when stripping host. 2019-07-24 11:22:15 -04:00
Peter Cowburn 39daeda954 use updated "Strip http://php.net" method for more news links
Following on from a similar change in 47f8ecc688, update more places
where we manipulate the URL.
2019-07-23 20:07:25 +01:00
Derick Rethans b2b48ca1e0 Remove references, redirects, and selection of mirrors 2019-04-01 11:27:09 +01:00
Peter Kokot b5edd2d17b Change dirname(__FILE__) to shorter __DIR__ 2018-10-23 17:30:55 +02:00
Peter Kokot dd8d8bf863 Sync final and leading newlines
This patch adds some missing newlines, trims some multiple redundant
final newlines into a single one, and trims few redundant leading
newlines.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-17 12:37:26 +02:00
Peter Kokot e235f79473 Trim trailing whitespace
This patch cleans all redundant trailing whitespace across the
repository except for the icalendar files.
2018-10-17 10:51:08 +02: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
Adam Harvey 4c768cf0f8 Update the 2017 archive to always show everything.
This also removes the $vevent appendix in print_news(), whereby we
walked every category even if we'd already found our match to set
$vevent, then didn't use it again because it wasn't needed in the new
design. That should fix global warming.
2017-06-08 11:19:49 -07:00
Scott 77089b5ed9 Parse HTTPS urls as well 2015-10-05 20:02:36 -07:00
Hannes Magnusson d3d5ba6fb0 Fix markdown syntax highlighting 2015-04-30 10:10:18 -07:00
Hannes Magnusson 8b26df29fb Avoid unset error on some pages, likely do-download pages?
This is causing lots of notices in the www error logs :)
2015-02-03 11:50:27 -08:00
Hannes Magnusson e437f8ce41 remove unused function 2015-02-03 11:48:28 -08:00
Anthony Ferrara 686c4181e3 Fix potential file-include vulnerability
Fix potential file-include vulnerability by adding `EXTR_SKIP` to extract so it doesn't overwrite `$params` array.
2015-01-20 16:10:19 -05:00
Michael 27628e547a Use css class instead inline style 2014-06-06 23:55:53 +02:00
Michael d766dd3c67 Drop support for < 5.3 from highlight_php()
...to use HTML5
2014-06-05 19:57:40 +02:00
Michael 113c86286d Also remove XHTML from .inc files 2014-06-04 19:50:50 +02:00
Hannes Magnusson 468b736548 Always use 3letter country codes - except when parsing usergroups.js
This quickfixes invalid flags, default listing, links, and makes it consistent with the rest of
the site
2014-03-28 00:24:21 -07:00
Hannes Magnusson 9eddd61629 Merge pull request #35 from heiglandreas/feature/addUgFromLiveData
Optimizes Usergroup-display

* heiglandreas/feature/addUgFromLiveData:
  Removes unnecessary code
  Optimizes Usergroup-display
2014-03-26 07:20:56 -07:00
Andreas Heigl 3e0eb4f6e3 Removes unnecessary code 2014-03-24 07:15:27 +01:00
Andreas Heigl 1ac8ba63b8 Optimizes Usergroup-display
This comit adds three things:

1. Support for 2-letter Countrycodes as defined in ISO 3166-1 alpha2.
For that I added a list of country codes from
http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements

2. Caching of retrieved usergroup-information. For that the list of
usergroups as well as the iCalendar-files of the single usergroups are
loaded one every 24 hours into files on the filesystem. those files are
then used for information retrieval

3. Slight optimization of UG-display.
For that I've changed display-style from an unordered to a definition
list. I've also set the date before the meeting-information as that
visually calms the whole list a bit.
2014-03-23 05:42:38 +01:00
Levi Morrison 116fb105d6 Converted news layout to HTML5. Began standardizing dates.
Dates formatted for human readability will be 'd M Y'; dates
formatted for computers will be RFC 3339 (or W3C).
2014-03-14 08:54:53 -06:00
Hannes Magnusson e7a8701a50 %c does not mean single char 2014-01-22 22:11:16 -08:00
Hannes Magnusson 6e1cd72453 List upcoming event, if available. Also list all countries with known UGs 2014-01-22 21:55:14 -08:00
Hannes Magnusson ea7631f971 No need to show the tip after we've seen the list 2014-01-22 16:56:17 -08:00
Hannes Magnusson 8bb3bdedb0 Show "headsup" (tips) on how many UGs are in my country 2014-01-22 16:39:01 -08:00
Hannes Magnusson 1a43ba3ce8 We are not in beta 2014-01-22 15:25:10 -08:00
Rasmus Lerdorf 9d983f6872 Without pinning the year this array will change from year to year 2014-01-12 09:10:11 -08:00
Hannes Magnusson e1c09fe163 Document the local page search shortcut 2013-12-28 19:07:21 -08:00
Hannes Magnusson 1c311cc448 Add a "headsup" bar when we add new news entries 2013-12-26 15:16:51 -08:00
Hannes Magnusson c1ac5f0722 This var isn't used anymore 2013-12-26 15:16:28 -08:00
Hannes Magnusson 36e805e147 Bring back the mega dropdown, toggled with "?" keyboard shortcut 2013-12-26 13:34:43 -08:00
Hannes Magnusson f320ea32fd Reimplement the news archive caching 2013-12-26 10:05:11 -08:00
Hannes Magnusson c61c0b9398 Kill STATIC_ROOT, its not helpful. Also use MYSITE for all js/css 2013-12-04 12:10:54 -08:00
Hannes Magnusson c63bbd008a Fix/enable archive sidebar 2013-12-03 18:12:55 -08:00
Hannes Magnusson 7cf8424edf Remove wrappers for the beta design, and the old code 2013-11-20 16:29:56 -08:00
Hannes Magnusson d366d46472 Kill the beta warning on all pages 2013-11-19 18:37:33 -08:00
Stanislav Malyshev 989246fb3b fix signature link 2013-11-17 15:52:01 -08:00
Stanislav Malyshev 17380e9c9d add signature to d/l link 2013-11-17 15:14:25 -08:00
Hannes Magnusson d82ced1d0b Fixed bug#66030 php.net website script error
Load the custom "header tags" (such as javascript things) after we
have loaded our required js
2013-11-04 09:32:36 -08:00
Hannes Magnusson be1bcf78cf Remove annoying javascript error on all pages except docs 2013-10-28 16:22:02 -07:00
Hannes Magnusson 8e87088c3f Remove funcitons.js. Only used by search.php which hasn't made sense for many many many
years.

Could be the reason why Google is blocking us today..
2013-10-24 00:55:27 -07:00
danbrown ac441eb9b4 Fixes bug #55387. 2013-10-01 15:55:27 -04:00
Adam Harvey 59a721e4f2 Tidy up a few validator warnings and errors on the change log.
Fixes bug #65713 (Incorrect HTML on http://www.php.net/ChangeLog-5.php#5.5.4).
2013-09-20 13:19:09 -07:00
Levi Morrison a609b332d5 Merged in responsive; hopefully didn't break much if anything. 2013-09-15 12:58:48 -06:00
Sherif Ramadan dcda705e85 Fix Bug #65402
Loading out-dated version of jQuery is unnecessary here.
2013-08-06 06:02:45 -04:00
Levi Morrison 72e6b7738d Added option to site_header to allow a custom span(for twitter bootstrap). Calendar page needed this. Other minor updates. 2013-07-10 15:31:16 -06:00
Levi Morrison 50265cbadf Crazy amounts of refactoring. Still in progress but really needed to commit so I don't lose everything. 2013-07-06 23:18:23 -06:00
Owen McKenna d1583fc085 search field needs a label or a title for accessibility reasons 2013-06-25 14:00:37 -07:00
Paul Dragoonis c5df2247da [beta site] Making beta mode kick in since setbeta uses cookies and needs an additional page load to kick in 2013-06-23 12:44:27 +01:00