1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Commit Graph

298 Commits

Author SHA1 Message Date
Derick Rethans
b2b48ca1e0 Remove references, redirects, and selection of mirrors 2019-04-01 11:27:09 +01:00
Derick Rethans
b02257864c https://www.php.net is the canonical web site address now
This change is needed so that https://www.php.net/git-php.php does not end up
in a redirect loop.
2019-03-25 14:40:16 +00: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
Hannes Magnusson
69702f8d56 Fix XSS reported by Francisco Alonso @ Red Hat Product Security 2014-09-04 14:27:04 -07:00
Adam Harvey
4df6d17ccf Revert "Attempt to fix the php.net cross-domain issues once and for all."
This reverts commit d89cf4ec47.
2014-07-03 09:50:16 -07:00
Adam Harvey
d89cf4ec47 Attempt to fix the php.net cross-domain issues once and for all.
(But this is a terrible hac...)

ONCE AND FOR ALL.
2014-07-02 18:17:31 -07: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
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
Hannes Magnusson
70a4a7f386 Fixed bug #66336 Endless redirect loop on /git-php.php 2013-12-22 11:35:13 -08:00
Hannes Magnusson
b5f9af79fa Logic++ 2013-12-18 11:35:19 -08:00
Hannes Magnusson
14c7b07c47 Hack in https support 2013-12-18 11:31:35 -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
3985d40e3d Arg, Fixed bug #66146 - mirror links wrong 2013-11-22 09:21:50 -08:00
Hannes Magnusson
af21c99842 Download system tweaks
Remove reduntant/duplicate code between do-download and get-download

Also make this page more interesting when the download is missing from
this specific mirror by give the choise of going to other mirrors to check.
Rather then blindly go to the download file though we go to the same page
on the other mirror so we can check if the file exists there before giving
the link to the actual real file.

This also makes it a lot easier to work with on developers checkouts
2013-11-21 11:25:45 -08:00
Hannes Magnusson
9050dae5ab Revert "Remove the filename from BASE_HREF (used for <base />), fixes bug#66138"
This reverts commit cc3a7dccac.
2013-11-21 10:55:09 -08:00
Hannes Magnusson
eec766fe11 Revert "Un-taint the base tag with "./" things :)"
This reverts commit 0bc5a56ab7.
2013-11-21 10:55:05 -08:00
Hannes Magnusson
0bc5a56ab7 Un-taint the base tag with "./" things :) 2013-11-21 10:00:58 -08:00
Hannes Magnusson
cc3a7dccac Remove the filename from BASE_HREF (used for <base />), fixes bug#66138 2013-11-21 09:29:29 -08:00
Hannes Magnusson
703abfd16b Prettify the download page 2013-11-20 14:04:58 -08:00
Ferenc Kovacs
2d5f7af0f3 $MYSITE is www.php.net on the primary site now, so this check(without the www. prefix) would always fail 2013-04-10 00:14:58 +02:00
Daniel P. Brown
3cc9491588 Change multiple checks and references from 'www.php.net' to plainly 'php.net' to reduce 301's, fix a few broken items, and ease a bit of the load off the server (multiple connections per page when statically referenced as 'www.php.net.' 2012-12-05 11:09:23 -05:00
Hannes Magnusson
fbbbe6b072 The CC.php.net has been removed for this array.
Look up the IP in the array (allthough this could give lot of false positives and incorrect sponsoring credits!!)
And if it exists, proceed with the current hostname

This should fix the weird base name the manual pages are getting
2012-10-11 08:39:50 +02:00
Daniel P. Brown
64b4e80525 Nearing the completion of the 'missing sponsor data' bug for the round-robin CC.PHP.NET base. 2012-10-10 15:43:54 -04:00
Hannes Magnusson
cbf00c0299 Add back shorturl to betaweb, and update the canonical version of pages 2011-01-01 21:37:30 +00:00
Hannes Magnusson
c94dfb1a21 I really hate SVN. Remove duplicate features. entry 2011-01-01 20:50:28 +00:00
Hannes Magnusson
afd9bcbb44 feature-? There are no such files, this should 2011-01-01 20:46:12 +00:00
Hannes Magnusson
b6a1709abe Do not overwrite $MYSITE unless the new version actually exists 2010-12-28 11:42:50 +00:00
Philip Olson
05d194f15a 'Temp' fix for a bug on us3.php.net where only curl works... so moving the curl option of fetch_contents() to the top 2010-06-22 22:49:32 +00:00
Philip Olson
c8d3284d5b Added to debugging when using file_get_contents() 2010-05-04 20:15:49 +00:00
Philip Olson
efac7dcb5b Added debugging info to fetch_contents(), and enabled track_errors until we require 5.2+ and/or do better error handling. Reveals too much info? Helps deal with bugs like #51679 2010-05-04 18:08:14 +00:00
Hannes Magnusson
8be460f4db Add support for rev=canonical
# examples:
# http://www.php.net/manual/en/control-structures.continue.php
#  => http://php.net/continue
# http://www.php.net/manual/en/function.strpos.php
#  => http://php.net/strpos
# http://www.php.net/manual/en/language.oop5.overloading.php
# => http://no.php.net/oop5.overloading
2009-04-10 09:50:49 +00:00
Philip Olson
302014466f Edited sqlite check to include checking of every possible sqlite version 2009-04-07 17:05:40 +00:00
Hannes Magnusson
255fc99512 Make it possible to run on different ports then 80 (patch by zoe@) 2009-02-03 17:01:57 +00:00
Hannes Magnusson
78a8a792c2 Add more debug info
(Still trying to figure out why some mirrors don't like this)
2008-06-08 19:46:14 +00:00
Philip Olson
a8c1c45240 fix 2008-06-07 19:13:17 +00:00
Hannes Magnusson
b506a2d662 - Use file_get_contents() if possible
- Set default context if possible (needed for get_headers())
2008-06-07 10:29:45 +00:00
Philip Olson
c1a37615f4 oops, context requires php 5+ ...
# /me curses at user-agent headers
2008-06-07 05:05:19 +00:00
Philip Olson
7f584ca407 reduced mirror requirement from 5.1 to 4.3 (closes bug #45198) 2008-06-07 02:34:53 +00:00
Hannes Magnusson
7237aa8fe1 Send out user-agent headers 2008-06-06 21:05:12 +00:00
Hannes Magnusson
fc23b9c5fd Add compatibility function for file_get_conents() and get_headers() 2008-04-21 11:00:33 +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
foobar
d61d17e25f HTTP_HOST -> SERVER_NAME (they said it is safe..) 2005-05-10 09:03:53 +00:00
Gabor Hojtsy
e8ae1f70da Drop the need to specify that a redirection is really external, as
this is already in the first parameter. If there is a protocol part,
then it is external. Reflect this change in the errorhandler too.
2003-08-16 11:58:34 +00:00
Gabor Hojtsy
b1b69ccaa2 Be a bit more kind to those who run non-official mirror sites
for some reason (like I do for testing stuff :), and allow setting
of My PHP.net settings on these sites too. But do notify users
that unofficial mirror site settings are not goint to carried to the
official mirror sites.
2003-08-16 10:55:08 +00:00
Gabor Hojtsy
9b5bf7a15b Make the different mirror data returning functions E_NOTICE safe 2003-08-13 12:39:33 +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
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