Commit graph

38 commits

Author SHA1 Message Date
rr-
2702518e31 Switched to spaces 2015-06-28 10:07:56 +02:00
rr-
79df9b56d3 Added FPM-based support for too big files 2015-06-28 09:59:47 +02:00
rr-
c74edbee51 Fixed overwriting redirection HTTP status codes 2015-06-27 18:35:21 +02:00
rr-
8407a3f70e Fixed getRequestHeaders for CGI servers 2015-06-27 18:07:31 +02:00
Marcin Kurczewski
24d8bf5295 Improved search error messages 2015-05-23 10:46:17 +02:00
Marcin Kurczewski
5412ac14b9 Added GIF detection 2015-05-23 10:05:05 +02:00
Marcin Kurczewski
116522498d Removed obsolete method in InputReader 2014-11-22 14:47:25 +01:00
Marcin Kurczewski
f2b1e3bedb Changed post uploads
Post uploads no longer encapsulates file content in base64.
This means dramatic speed up for sending on local networks.
2014-11-22 14:37:00 +01:00
Marcin Kurczewski
77983d8e20 Changed and/or to &&/|| 2014-11-10 19:14:58 +01:00
Marcin Kurczewski
6ebd1e56ee Removed fileinfo dependency
Recent changes in thumbnail generators revealed that finfo module cannot
be relied on - I found a GIF file that started with usual "GIF87a", and
yet finfo reported its mime type to be "application/octet-stream".

This change removes reliance on finfo module and implements detecting
common file types supported by szurubooru in manual fashion. This might,
of course, introduce some bugs that weren't present when using finfo.
However, this change was made exactly because of such bug - while
previously such edge cases were impossible to fix, now they can be
dealt with accordingly in our own code.

Also from what I saw on the Internet, getting fileinfo to work on
Windows is a lot of trouble, so this change is welcome from that angle,
too.
2014-10-25 23:59:07 +02:00
Marcin Kurczewski
fc13fb1342 Changed default access rank to restricted user 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
6c9954f298 Reduced responsibilities of HttpHelper 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
632bac8661 Added "use ..." statements
This version ditches backwards compatibility with PHP earlier than 5.6.
2014-10-18 18:48:36 +02:00
Marcin Kurczewski
0e59147423 Added safety browsing settings to post searching 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
c021c9a1c0 Added type: support to post searching 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
9edc74f9a5 Added post history 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
aff5965091 Added basic information to post view 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
42001d3edf Refactored thumbnail system 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
fbdb4e5128 Changed mime detection to be case insensitive 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
a3f9382671 Changed file mgmt to use entities' lazy getters 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
932407a571 Fixed unserializing enum values 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
f032460621 Fixed MIME retrieval for files 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
0ebe4d5d3e Added checks for malformed JSON data 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
bc8e1b05a6 Implemented post uploads (closed #11) 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
9bd114e5b6 Moved base64 decoding to FormData 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
20b3dfc76d Added additional type safety 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
0548890d97 Introduced entity property getters/setters 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
45e18a9ba3 Improved PHP style 2014-10-18 18:48:19 +02:00
Marcin Kurczewski
a5c89bc48e Improved avatar loading speed 2014-10-18 18:48:19 +02:00
Marcin Kurczewski
ee2ca7fbaf Added account settings management and avatars 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
73214396ce Added test for basic controller validity 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
8e8e983f28 Refactored privilege system 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
2ecb79a2fa Added passive authorization 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
ee9fde5402 Added proof of concept for pagination and search 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
7be8061aa8 Fixed serializing classes in Dispatcher 2014-10-18 18:48:16 +02:00
Marcin Kurczewski
45e32c4e50 Implemented InputReader 2014-10-18 18:48:16 +02:00
Marcin Kurczewski
db949dd361 Added proof of concept for authorization system 2014-10-18 18:48:15 +02:00
Marcin Kurczewski
b7de8ae0bf Added proof of concept for Dao system
Fixup first commit
2014-10-18 18:48:15 +02:00