Commit graph

646 commits

Author SHA1 Message Date
Marcin Kurczewski
eb7c507359 (WIP) Added spinner (#39) 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
a16a2d3235 Added posts listing (closed #7) 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
15eb2342b9 Moved public data to public_html/
This is going to improve caching.
2014-10-18 18:48:24 +02:00
Marcin Kurczewski
55f4f4430b Added post content and thumbnail presenter 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
4ac91374b9 Unified style for clickable buttons 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
b4d2c5ecbb Fixed retrieving total record count 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
932407a571 Fixed unserializing enum values 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
815a37cf9a Allowed setting e-mail to empty after activation 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
aee6ed7dbf Fixed bad message when setting e-mail to empty 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
6a721a0f90 Added privileges for staff to view e-mails 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
aa46b4a14b Changed access rank <select> to radio boxes 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
4751270228 Beautified checkboxes and radioboxes 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
4fc130e840 Centered help text in login form 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
bd8d1811e3 Added border to focused input 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
eafc47bfb3 Fixed forms width on Chrome 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
8176184b51 Changed times on user profile to relative form 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
4c3bc0004b Hidden user tabs if only basic info is available 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
1a41e60515 Improved stylesheet 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
f032460621 Fixed MIME retrieval for files 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
ef451d93ac Added protection against too big uploads 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
c155cc3e5c Fixed file size check in FileService::download() 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
c8f0cb6e56 Removed print_r from banned functions
Used by HttpHelper to report json encoding problems.
2014-10-18 18:48:23 +02:00
Marcin Kurczewski
d72c6c5d6e Fixed page exit confirmation 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
ac312ccb49 Added test for anonymous uploads 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
ef1a3b9843 Minified exception traces 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
0ebe4d5d3e Added checks for malformed JSON data 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
047c84ec3a Bypassed phpcs warnings that shouldn't be there 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
bb7b1f3321 Turned errors into exceptions 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
6e196637eb Moved type conversion to EntityConverters 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
f6df009085 Split EntityConverter to separate strategies
Reflection turned out to be bad, since I cannot implement my own method
in entities, like Post::setUser() instead of Post::setUserId().
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
b53e2752ca Reduced post upload presenter complexity somewhat 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
0ca03cae60 Moved functions to outer scope 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
6035cf89b7 Added transaction manager 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
f71fd106f0 Fixed privilege checks for changing avatars 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
e6073ba7c7 Fixed extra spaces between items in top navigation 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
3e1aaebf89 Fixed account activation for first user
Until now, AuthService used to check for empty e-mail in order to tell
whether an account is activated. This was wrong for following scenario:

1. User doesn't enter any e-mail.
2. Because he is about to become the first user to register, he will
   become an administrator.
3. Administrators don't need to confirm their e-mail address. Activation
   e-mail is not sent, code for e-mail activation is run instead.
4. The user succeeds to create an e-mail-less administrator account.
5. The user fails to login due to unconfirmed e-mail.
6. The code that activates an e-mail just moves unconfirmed e-mail to
   primary e-mail. That was the bug, there's no e-mail to confirm.

Things got (hopefully) simpler now, since I added separate column for
indicating whether account is activated.
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
cf0312ce43 Changed EntityConverter inner workings
In order to understand data types returned by DB engine better,
EntityConverter was changed to use getter/settter methods instead of raw
properties. That way, the methods inside entities can cast to desired
data types when accessed.
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
f0a077f2b4 Fixed vendor autoloader placement 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
4526345e5b Switched to sqlite (closed #38) 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
d450f5794e Fixed magic strings in Dao layer 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
2d9865f1d3 Fixed unused variable in abstract search service 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
76f78d61bd Turned on notifications about unused variables 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
0548890d97 Introduced entity property getters/setters 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
847117a408 Shifted data transform responsibility from service 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
dfb1198143 Worked on post uploads (#11) - added GUI 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
7ec3715cdd Removed unnecessary values 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
23f5100cf8 Changed file dropper to autodetect "allowmultiple" 2014-10-18 18:48:21 +02:00