Commit Graph

77 Commits

Author SHA1 Message Date
984c9702ec The great MIMEing 2020-06-25 00:42:34 +01:00
63b2601e67 Mime type handling overhaul
Changed mime type map to deal with the reality that certain file types have multiple extensions and/or multiple mime types, as well as constants supporting all of the data. Created new functions using the updated mime type map to resolve mime types and extensions. Updated various items around the project that determine mime/extension to take advantage of the new functions.
2020-06-03 19:47:40 +01:00
ba599d5d1b Added count to alias editor import 2020-03-02 15:42:09 +00:00
f0f3cc7aa0 merge layout stuff into Page class 2020-02-01 18:11:11 +00:00
6d3ca01424 format 2020-01-29 00:49:26 +00:00
615da9e9d2 fix all the tests (for sqlite, php7.4, osx, at least) 2020-01-28 21:19:59 +00:00
9eb5acf2dc use strict types 2020-01-26 16:27:56 +00:00
bafdb1c769 crud update 2019-12-26 16:04:04 +00:00
7b7febea55 better validation 2019-12-15 16:01:32 +00:00
d705578f79 formatting 2019-12-15 15:31:44 +00:00
79e21cec7f microcrud for aliases 2019-12-01 01:02:18 +00:00
f79eafc91e format 2019-11-04 00:42:06 +00:00
d17e207984 Have get_arg never return null
90% of places assume it will never return null, and they will break in
weird ways if it does return null
2019-11-04 00:40:10 +00:00
a6bb15d859 formatting 2019-09-29 14:30:55 +01:00
de98e86938 ExtensionInfo conversions what have I done 2019-08-07 15:40:01 -05:00
00464d2579 Implemented a nav link generating system so that extension power what shows up in the menus rather than being hard-coded in the themes. 2019-08-05 09:01:20 -05:00
5ceb6f4193 Update main.php 2019-08-01 08:40:15 -05:00
cb1e9c0075 Permissions to constants 2019-08-01 08:07:05 -05:00
826c623538 PageMode constants 2019-06-18 21:04:31 -05:00
34b05cca7c PSR-2. I'm not a huge fan, but ugly consistency beats no consistency... 2019-05-28 17:59:38 +01:00
5ec3e89884 php7.1 all the things 2019-05-28 17:31:20 +01:00
977c3db1e3 PHP7 type annotations 2017-09-21 05:21:42 +01:00
845543b2ba fixes #478 - import now uses AddAliasEvent rather than manually adding itself 2015-04-18 10:39:09 +01:00
6289402f2e make sure aliases.csv is downloaded, and not opened in browser
SEE: http://stackoverflow.com/questions/6468517
2015-04-18 10:38:57 +01:00
52dc36cfa6 str_getcsv rather than explode, for handling quotes 2015-01-30 03:53:58 +00:00
8fd532e5a8 More linting and removing dead code. 2014-04-28 02:43:49 -04:00
b241390fa4 Removing the closing PHP "?>" tag as per style guidelines. 2014-04-24 22:34:45 -04:00
7b68d8ebfd use new-style constructors everywhere 2014-03-22 09:00:59 +00:00
48e40a6712 trim whitespace when adding aliases 2013-07-06 10:42:25 +01:00
03b0c82887 Better CSV validation
When uploading a CSV, check every entry before executing the INSERT. The checks are the same as with the normal add except that no errors are shown.
2013-07-06 00:33:31 +02:00
e49e90f9ab fff, php 2013-03-07 03:23:35 +00:00
e013d86b56 disallow aliases to other aliases 2013-03-03 18:32:56 +00:00
239e028662 flash messages everywhere~ 2012-06-10 04:21:03 +01:00
e538181fa1 add alias after finishing the mass tag edit 2012-03-30 16:40:14 +01:00
cd8ec7bf41 sort alias CSV file the same way as the table 2012-03-25 03:32:32 +01:00
af7704825b use HTTP status codes with error messages 2012-02-16 15:37:05 +00:00
0698b780f9 remove regular Extension, have SimpleExtension take its place, optimise the event system based on SimpleExtension methods 2012-02-08 12:07:01 +00:00
0589f9d72e fine grained permission bits 2012-02-07 15:15:18 +00:00
dab85e5f26 merge type hints 2012-02-02 14:16:14 +00:00
cc8f1f35a5 more type hints 2012-02-02 14:14:33 +00:00
75b9bc2650 typo in merged code 2012-01-31 14:46:19 +00:00
c89eb46800 alias_editor: More PDO compatibility 2011-02-22 17:35:07 -05:00
ee3c24117b more pdo compat, database bits 2011-01-03 15:18:24 +00:00
d6baeab977 more pdo compat 2011-01-01 16:28:04 +00:00
97db78d29e get rid of extra bits 2010-05-15 14:20:40 +01:00
0d7efd0256 class type hints for hiphop's benefit 2010-05-15 12:17:32 +01:00
ba814aebaa mysql can go choke on a bucket of cocks 2010-04-27 11:36:07 +01:00
8a08571325 'offset ? limit ?' is supported by more than 'limit ?, ?' 2010-04-23 16:10:46 +01:00
9ab6fec30a remove carridge returns when parsing alias CSVs 2010-03-27 04:01:29 +00:00
a295c210a2 limit/offset incompatability blah 2010-02-02 13:15:24 +00:00