Marcin Kurczewski
37ff4705a6
Changed post permalink handling
2014-08-23 20:36:54 +02:00
Marcin Kurczewski
40e774cce9
Reorganized code to reduce comments
2014-08-09 20:35:31 +02:00
Marcin Kurczewski
c7f077d89a
Fixed thumbnails for deleted Youtube videos
2014-07-25 23:15:36 +02:00
Marcin Kurczewski
e2f6440e18
Fixed logging of tag removal in mass tag
2014-07-17 08:51:36 +02:00
Marcin Kurczewski
427f305101
Split post page view and post download privileges
2014-06-10 21:12:14 +02:00
Marcin Kurczewski
a3c9338386
Added custom favicon and assets support to config
...
Also, moved title key to [appearance] section
2014-06-10 12:01:15 +02:00
Marcin Kurczewski
d242eedb31
Improved checks for concurrent post edits
2014-06-10 10:49:11 +02:00
Marcin Kurczewski
538165e3ff
Moved job context management to interface
2014-06-10 10:48:08 +02:00
Marcin Kurczewski
e32e569296
Fixed default thumbnail retrieval
2014-06-01 14:16:05 +02:00
Marcin Kurczewski
bf8e6e9e00
Simplified thumbnail and content retrieval code
2014-06-01 13:51:29 +02:00
Marcin Kurczewski
8b48ba727e
Added option to disallow anonymous uploads
2014-05-26 12:40:02 +02:00
Marcin Kurczewski
34b5de72f5
Moved some config keys
2014-05-26 12:30:23 +02:00
Marcin Kurczewski
50e4b40721
Upgraded to newest chibi
...
- Separate non-static router class
- Moved some setup code to new method, Core::init
- Persistent database connection between tests
2014-05-23 23:34:50 +02:00
Marcin Kurczewski
2a8493fa69
Fixed log in post featuring
2014-05-23 17:20:33 +02:00
Marcin Kurczewski
fee19c61bc
Added support for custom avatars
2014-05-20 23:00:25 +02:00
Marcin Kurczewski
e12308d3cc
Changed thumb to thumbnail for consistency
2014-05-20 23:00:24 +02:00
Marcin Kurczewski
118cf31ab1
Refactored enums
2014-05-18 22:30:08 +02:00
Marcin Kurczewski
9f99ccd78f
Restricted some jobs from public execution
2014-05-18 21:59:56 +02:00
Marcin Kurczewski
e59b7e8b7b
Refactored privilege system a bit
...
- Jobs specify main privilege and sub privileges separately
Rationale: increase maintenance, restrict what can be done runtime
- Renamed ChangeUser* to EditUser* (consistency with EditPost*)
- Simplified enum names and configuration reading
- IJob interface members must be explicitly implemented
Rationale: reduce chances of forgetting something, or typos in
inherited method names
- Invalid privileges names in configuration yield exceptions
2014-05-18 21:59:56 +02:00
Marcin Kurczewski
de078677fe
Reduced job hierarchy
2014-05-18 21:59:56 +02:00
Marcin Kurczewski
634d0061d4
Added API documentation prototype
2014-05-18 21:59:56 +02:00
Marcin Kurczewski
03a6809510
Added API controller
2014-05-18 21:59:56 +02:00
Marcin Kurczewski
c501ccdff1
Fixed issues with variable types
...
- False booleans were serialized as NULLs, which lead to problems with
queries like 'SELECT ... WHERE NOT x'
- Fixed anonymous uploads
- More robust integer and boolean parsing in jobs
2014-05-18 21:32:47 +02:00
Marcin Kurczewski
e84f8096bd
Removed legacy functions
2014-05-17 00:02:01 +02:00
Marcin Kurczewski
c7250ae0a9
Improved thumbnail generating
...
- Moved thumbs folder to public_html/
- Users can supply custom thumbs of any size and the system will treat
them like normal image
- Removed distinction between various thumb sizes in file system
- Introduced custom rewrite rule, which isn't exactly good-looking, but
its benefits far outweigh its shortcomings
- Loading up to 75 times faster (was: 100-300ms, is: 4-10ms on my
machine) thanks to removal of PHP proxying
2014-05-14 23:44:48 +02:00
Marcin Kurczewski
1bc219a162
Added job for property reading
2014-05-14 19:14:16 +02:00
Marcin Kurczewski
95e37e55eb
Restored support for anonymous setting changes
2014-05-14 19:06:43 +02:00
Marcin Kurczewski
2e12e4f39d
Added jobs for user settings manipulation
2014-05-14 19:06:43 +02:00
Marcin Kurczewski
a2507370cc
Fixed thumb generating
...
New thumbs worked only after refreshing the page and showed placeholder
thumb prior to that. Now they load correctly without need to reload.
2014-05-13 21:21:24 +02:00
Marcin Kurczewski
561ebd5508
Made ARG_QUERY optional
2014-05-13 19:11:21 +02:00
Marcin Kurczewski
ae12fdeaec
Changed logger so it avoids blank lines
2014-05-13 19:11:21 +02:00
Marcin Kurczewski
d30dd3c05a
Fixed JobPager - returns integers, not floats
2014-05-13 19:11:21 +02:00
Marcin Kurczewski
4b907f6121
Added missing property definitions
2014-05-13 14:00:25 +02:00
Marcin Kurczewski
5d9513bac0
Modified post path management
2014-05-13 00:01:28 +02:00
Marcin Kurczewski
b8bb2c865e
Moved setRelationsFromText logic to controller
2014-05-12 22:39:14 +02:00
Marcin Kurczewski
4395087a7c
Fixed confirming user registration by staff
2014-05-12 20:10:19 +02:00
Marcin Kurczewski
d8808df091
Fixed canEditAnything method in EditUserJob
2014-05-12 19:39:58 +02:00
Marcin Kurczewski
3cd07a38ca
Fixed password reminder
2014-05-12 19:30:16 +02:00
Marcin Kurczewski
96ebd2c89f
Fixed entity retrievers
2014-05-12 19:00:04 +02:00
Marcin Kurczewski
098f11bd09
Increased API readability
...
- Removed Abstract*Job hierarchy
- Introduced EntityRetrievers
- Introduced JobPager
- Moved files around
2014-05-12 18:00:24 +02:00
Marcin Kurczewski
484adbbf49
Added argument checking system
2014-05-12 15:15:50 +02:00
Marcin Kurczewski
4ba83e6834
Changed job arguments convention back
...
Restored JobArgs approach. Previous introduction of hierarchic argument
definitions has backfired: it was confusing what class to take arguments
from, the concept of sharing arguments between different jobs was
unintelligible and one never knew where given argument was actually
defined.
This appraoch makes it easier to maintain the arguments list and
simplifies the code a lot.
2014-05-12 00:13:18 +02:00
Marcin Kurczewski
8aa499a0b9
Fixed automatic featuring post
...
- Fixed main page view
- Code moved from StaticPagesController to PostModel
- Code split into semantically meaningful methods
- Allowed anonymous featuring through API
- Added protection against automatic featuring of hidden post
2014-05-11 23:43:35 +02:00
Marcin Kurczewski
9882e84aa6
Finished user validation; increased readability
2014-05-09 21:23:54 +02:00
Marcin Kurczewski
26e27e3339
Ban job returns user
2014-05-09 21:08:34 +02:00
Marcin Kurczewski
8ee80ea170
Continued work on getter/setters: post cached keys
2014-05-09 20:29:14 +02:00
Marcin Kurczewski
a14afd8e27
Improved names of entity retrieval methods
2014-05-08 08:54:53 +02:00
Marcin Kurczewski
e4ee4589a8
Fixed/refactored tag validation
2014-05-08 08:54:53 +02:00
Marcin Kurczewski
acf8cf28e8
Made anonymous upload parameter optional
2014-05-08 08:54:48 +02:00
Marcin Kurczewski
20ee47e596
Continued work on getter/setters: staff confirm
2014-05-07 21:30:38 +02:00