2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-22 17:52:30 +00:00

203 Commits

Author SHA1 Message Date
Daniel James
40688e1552 Update links for https
Mostly in comments. Might be better to use relative links from html.
2018-04-13 09:14:48 +01:00
Daniel James
3ea5b26f2e Don't send error headers if headers have already been sent 2017-09-14 16:34:06 +01:00
Daniel James
f31c2898b1 Close comment 2017-08-03 18:50:43 +01:00
Daniel James
696ea6ee6e Store 'params' as member variables in BoostArchive 2017-07-30 19:20:49 +01:00
Daniel James
baad1c756e Add some php-doc comments to BoostArchive 2017-07-23 13:43:12 +01:00
Daniel James
c106968b3e Remove some redundant code from BoostArchive::display_raw_file 2017-07-23 13:43:12 +01:00
Daniel James
a8d10c4211 Remove special case for HEAD requests
It's not really any more efficient than GET, so it's mostly pointless.
I still want to go through the motions of the unzip for a HEAD request,
as I want it to fail when a GET request would fail. They're almost never
used to efficiency isn't much of a concern.
2017-02-19 01:09:02 +00:00
Daniel James
5034261b57 Revert http_repsonse_code Changes
It isn't available on the server.
2017-02-17 21:46:53 +00:00
Daniel James
a604fa9df3 Convert a couple more places to use http_response_code 2017-02-09 13:28:46 +00:00
Daniel James
8abdbd3938 Remove a load of old TODO notes
boost_archive.php:

For mime types, the current list seems fine, and a full list doesn't
seem feasable.

boost_filter_text.php:

For supporting other character sets, could possibly use
mb_detect_encoding to guess the file's encoding, but it's not currently
installed on the server, and I think guesses are probably no better than
just assuming everything is UTF-8. The alternative would be some
mechanism to specify a file's (path's?) encoding, but I'm sure that can
be done if the need arises.

boost_library.php:

If it turns out that a better exception is needed, then it will be
handled then, so I'm not concerned with that TODO note.

boost_pages.php:

Sourceforge is redirecting downloads to the right place, so I'll not
bother with '/download' at the end. It's probably better if the download
URLs have the right filename.

boost_simple_template.php:

I don't think the simple template class really needs to support tricky
edge cases, so I'll just leave that alone.

doc/libraries.php:

I don't think anyone's desperate to see the library list for ancient
versions. If they are, they can get the it in json format using:
http://www.boost.org/doc/libraries.json.php?version=1.11.1

site-tools/git-prep-beta.sh:

Coming back to this, I think the answer is no. A change on master is
only really made when it has been pushed to remote, if it's only local
then it might get rebased.

This script doesn't actually get much use now that there are long
standing unmerged changes in beta, but it used to work well for me.

site-tools/update-doc-list.php:

Other TODO note was to make the script a little more automatic when run
against a local git tree, but I don't think that's a use case to support
in general. The tree might not be fully synced, or might be checked out
from a tag, which would be harder to check.
2016-11-30 01:53:57 +00:00
Daniel James
451e564c26 Use exceptions for http errors
Not how I'd normally do this, but seems cleaner than exiting the script
in the middle of a constructor.
2016-11-30 01:30:37 +00:00
Daniel James
9c8ab72da9 Remove unused parameter from unzip_error. 2016-06-04 15:44:17 +01:00
Daniel James
3f7ba6f770 Fix regression documentation. 2016-05-25 14:41:07 +01:00
Daniel James
886b3e1a7a A little bit of final BoostArchive cleanup. 2016-03-06 22:23:07 +00:00
Daniel James
81219c6d06 Make all functions in boost_archive.php member functions. 2016-03-06 22:23:07 +00:00
Daniel James
28573d56db Simplify parameter handling in boost_archive.php 2016-03-06 22:23:07 +00:00
Daniel James
199988591b Store zipfile details in variables instead of $params. 2016-03-06 22:23:07 +00:00
Daniel James
ef3381a3f0 Remove all mentions of $params from unzip code. 2016-03-06 22:23:07 +00:00
Daniel James
81f32dd5c0 Remove 'key' member of params. 2016-03-06 22:23:06 +00:00
Daniel James
ecc736254a Get pattern when needed. 2016-03-06 22:23:06 +00:00
Daniel James
0d809fcb0b Don't mutate params member in BoostArchive 2016-03-06 22:23:06 +00:00
Daniel James
d2fba3ead4 Inline get_archive_location 2016-03-06 22:23:06 +00:00
Daniel James
fe3dcc08b7 Rejig BoostWeb::error_page. 2016-03-06 22:23:06 +00:00
Daniel James
dbf576d8cf Simplify error reporting for unzip. 2016-03-06 22:23:06 +00:00
Daniel James
3c18dc4f42 Remove some more old stuff from BoostArchive. 2016-03-06 22:23:06 +00:00
Daniel James
cc4686cb7b Extract some of the common code into a new file.
It's a bit arbitrary, so might reconsider later.
2016-03-06 22:23:06 +00:00
Daniel James
5b64662904 Clean up 'last_modified' handling, not need in BoostArchive 2016-03-06 22:23:06 +00:00
Daniel James
94a7c9bc6c Remove remaining version handling code. 2016-03-06 22:23:06 +00:00
Daniel James
93278056ac Remove expiry date handling from BoostArchive. 2016-03-06 22:23:06 +00:00
Daniel James
ced0d34835 Remove HTML processing functions from BoostArchive 2016-03-06 22:23:05 +00:00
Daniel James
b0faef60f2 Remove 'archive_subdir' support from BoostArchive. 2016-03-06 22:23:05 +00:00
Daniel James
aeeb9af7e9 Remove 'extractor' stuff from BoostArchive. 2016-03-06 22:23:05 +00:00
Daniel James
60ea43d74b Remove the 'zipfile' parameter, and supporting code.
Now BoostDocumentation is always from the file system. BoostArchive
always from a zipfile.
2016-03-06 22:23:05 +00:00
Daniel James
ffc3b72a43 Support json files. 2016-03-05 10:10:24 +00:00
Daniel James
e2a0580191 Proper support for HEAD in display_raw_file. 2015-12-18 08:50:14 +00:00
Daniel
8f04920749 Merge branch 'feature/error-message' 2015-12-18 08:49:43 +00:00
Daniel James
a53ed74520 Try reactivating corrupt zipfile error.
Unzip appears to have started returning that status correctly. Will have
to wait and see if it causes the problems it used to cause.
2015-11-06 15:13:18 +00:00
Daniel James
a60840c0c1 Update $params in extract_file/unzip_error, and use with error_page. 2015-09-20 13:12:12 +01:00
Daniel James
f1bd8d55e7 A more flexible error page. 2015-09-20 13:08:31 +01:00
Daniel James
9800b5df2c Tweak error message. 2015-09-20 12:52:59 +01:00
Daniel James
2d41fa59a4 Fix for PHP 5.3 2015-09-20 12:47:37 +01:00
Daniel James
075c84e98c Appropriate HTTP codes for unzip error messages. 2015-09-20 12:42:11 +01:00
Daniel James
b17e5d64bc More detail in unzip error message. 2015-09-18 13:29:45 +01:00
Daniel James
3abfe38677 Add a 'min version' parameter to the matcher list.
Will match for any versions later than the given version. Note that the
first match is the successful one, so will need to put versions in
reverse order, as will be seen in next commit.
2015-08-23 17:25:23 +01:00
Daniel James
2cd61259d8 Add an error message to development sites for missing extractors. 2015-08-04 23:30:21 +01:00
Daniel James
d197f0e805 Serve SVG files. 2015-08-04 22:34:04 +01:00
Daniel James
6b8859aeba Display regression docs from a local repo clone. 2015-04-12 15:18:06 +01:00
Daniel James
b78601ebfb Only use 301 redirect for releases. 2015-04-02 12:04:32 +01:00
Daniel James
796b9511ab Display xsl files on website.
Fixes https://svn.boost.org/trac/boost/ticket/11007
2015-02-23 09:08:39 +00:00
Daniel James
d23d58ff30 Bump the date again. 2015-02-07 21:44:14 +00:00