Commit graph

65 commits

Author SHA1 Message Date
Marcin Kurczewski
d082d74716 Added information about memory usage to footer 2014-05-14 19:38:42 +02:00
Marcin Kurczewski
67e4272f3e Changes to privilege system 2014-05-05 17:47:30 +02:00
Marcin Kurczewski
7c1b8ca4d5 Renamed LogController methods and moved to API 2014-05-03 19:25:59 +02:00
Marcin Kurczewski
396ea97cad PrivilegesHelper shortened to Access
Methods are shorter, too
2014-04-29 23:53:47 +02:00
Marcin Kurczewski
81e43286b5 Newest chibi-core 2014-04-29 21:35:29 +02:00
Marcin Kurczewski
da1f5d8ab2 Split long lines in views 2014-04-27 16:01:50 +02:00
Marcin Kurczewski
60208407ea Shorthand php echo 2014-04-27 16:01:50 +02:00
Marcin Kurczewski
4847448a26 Little fixes for small layouts 2014-04-20 11:39:26 +02:00
Marcin Kurczewski
34b9a80ba7 Moved Sql and Database.php to remote project 2014-02-28 20:44:35 +01:00
Marcin Kurczewski
82b0d9a63a Newest chibi-core 2014-02-27 15:04:36 +01:00
Marcin Kurczewski
e43881e03f Better debug 2014-02-24 16:50:16 +01:00
Marcin Kurczewski
395ac3033f Fixed HTML validation 2014-02-22 19:47:33 +01:00
Marcin Kurczewski
6af3a0e42b SQL overhaul: introducing tree-like queries
Reason: until now, PostSearchService was using magic to get around the biggest
limitation of SqlQuery.php: it didn't support arbitrary order of operations.
You couldn't join with something and tell then to select something from it.
Additionally, forging UPDATE queries was a joke. The new Sql* classes replace
SqlQuery completely and address these issues. Using Sql* classes might be
tedious and ugly at times, but it is necessary step to improve model layer
maintainability.

It is by no menas complete implementation of SQL grammar, but for current needs
it's enough, and, what's most important, it is easily extensible.

Additional changes:
* Added sorting style aliases
  - fav_count
  - tag_count
  - comment_count
* Sorting by multiple tokens in post search is now possible
* Searching for disliked posts with "special:disliked" always yields results
  (even if user has disabled showing disliked posts by default)
* More maintainable next/prev post support
2014-02-22 19:40:10 +01:00
Marcin Kurczewski
620d1204f7 Changed footer appearance 2014-02-16 12:33:52 +01:00
Marcin Kurczewski
35cdc0cf3a Refactored scripts and stylesheets
Styles, scripts and page titles are no longer set from controllers level.
Changed because it was breaking MVC pattern and led to spaghetti code.

Also, optimized JS/CSS inclusions a bit.
2014-02-01 11:24:03 +01:00
Marcin Kurczewski
1fcced20f1 Misc CSS tweaks 2014-01-06 19:25:27 +01:00
Marcin Kurczewski
5607cfc353 Models rewrite; removed RedBeanPHP; misc changes
Pages load 1.5-2x faster
Exception trace in JSON is now represented as an array
Fixed pagination of default favorites page in user pages
Fixed thumbnail size validation for non-square thumbnails
2013-12-18 15:17:49 +01:00
Marcin Kurczewski
1c6b10f966 Fixed 1px bug 2013-12-14 16:49:43 +01:00
Marcin Kurczewski
8f906d83bf Added active section indicator 2013-12-05 23:57:33 +01:00
Marcin Kurczewski
b8e37a234a Better looking query debug 2013-12-05 22:22:11 +01:00
Marcin Kurczewski
0d3bb32e9c Refactor to HTML structure
- <script> moved outside <ul>
- Youtube posts pass W3C validation
2013-12-01 15:16:10 +01:00
Marcin Kurczewski
5a231b19c3 Bugfix to JS (unknown variable error) 2013-11-30 01:10:58 +01:00
Marcin Kurczewski
3dd3ca5d99 Optimalization: moved <script> from HEAD to footer 2013-11-30 01:10:58 +01:00
Marcin Kurczewski
aa37ee66ff Various JS optimizations 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
20022ea4ab Next/prev links are bound to latest search query 2013-11-25 22:23:45 +01:00
Marcin Kurczewski
fb5e851a13 Closed #66 2013-11-21 22:44:28 +01:00
Marcin Kurczewski
17bd7a7572 Added support for OpenGraph
- Linking to index and individual posts produces thumbs on sites like Facebook
- Thumbnails theoretically support custom sizes
2013-11-18 14:33:43 +01:00
Marcin Kurczewski
a5d0a3f9ef HTML validation 2013-11-18 14:00:54 +01:00
Marcin Kurczewski
da63c0fd19 Closed #61 2013-11-17 14:53:17 +01:00
Marcin Kurczewski
7b473ba06f Low-level refactor to core.php 2013-11-17 14:24:39 +01:00
Marcin Kurczewski
7faf46beb9 Changed .ini a bit 2013-11-10 11:18:00 +01:00
Marcin Kurczewski
b3f15dc049 Header becomes less bloated in favor of tabs 2013-11-01 12:58:54 +01:00
Marcin Kurczewski
ac506e8c95 Added mass tag to header 2013-11-01 12:05:06 +01:00
Marcin Kurczewski
b55a8f1dce Closed #52 - fixes for anonymous accounts
- Anonymous account is no longer created when commenting/uploading
- Anonymous users can now switch safety, if it's available
- Anonymous users can delete their own posts
- Refurbished session and logging in/out mechanism
- Possible fixes for registration/activation/account deletion issues
2013-10-27 20:39:32 +01:00
Marcin Kurczewski
ff3e4bc287 Closed #47 2013-10-21 14:24:34 +02:00
Marcin Kurczewski
f2947a2550 Added "random" tab 2013-10-21 13:13:10 +02:00
Marcin Kurczewski
07f36c710a Added versioning; changed repo name 2013-10-20 11:12:56 +02:00
Marcin Kurczewski
e15910b637 Closed #41 2013-10-19 22:56:56 +02:00
Marcin Kurczewski
4b5c13519c Added optional SQL queries debug 2013-10-19 12:53:49 +02:00
Marcin Kurczewski
019e7eea7f Closed #43 2013-10-18 00:09:50 +02:00
Marcin Kurczewski
6dd6163833 Added SQL query count in footer 2013-10-16 19:45:57 +02:00
Marcin Kurczewski
39db2a64e1 Closed #32 2013-10-16 18:07:23 +02:00
Marcin Kurczewski
28c1ce68b4 Closed #20
Changed Enum::toString() calls
Fixed chrome ghost margin
2013-10-16 08:33:45 +02:00
Marcin Kurczewski
f42ed135fa Slightly better header 2013-10-15 22:49:01 +02:00
Marcin Kurczewski
23fc89c30c User safety settings 2013-10-14 00:25:40 +02:00
Marcin Kurczewski
e125ecc1c7 Fixed HTML injection 2013-10-13 21:05:20 +02:00
Marcin Kurczewski
6c4affe454 Closed #10 2013-10-13 12:28:16 +02:00
Marcin Kurczewski
eb858bfbe1 Closed #19 2013-10-12 22:55:10 +02:00
Marcin Kurczewski
67dcc7c4f8 Better looking post view 2013-10-12 12:38:49 +02:00
Marcin Kurczewski
b92f925e94 Post viewing - sidebar 2013-10-12 10:46:15 +02:00