1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-05 04:18:03 +01:00
Commit Graph

653 Commits

Author SHA1 Message Date
Marcin Łabanowski
61fdd0c72b fileboard support 2015-04-22 06:19:50 +02:00
8n-tech
5ea7541817 (Hopefully) fixed last hour counts.
Also added extensive comments and adjusted logical branches.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-21 12:00:29 +10:00
8n-tech
3de0e897be Multiple boardlist enhancements.
#467 - Reduced and modified columns.
#467 - Styling changes across all supported stylesheets.
#467 - PPH now reflects last hour's posts count and has average in title.
#467 - Removed precision, except for boards that have between 0~1 posts.
#467 - Fixed issue where inline board tags pointed to the HTML file, rendering them nonfunctional for noJS users.
Misc - Fixed quote color in certain stylesheets.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-21 11:08:47 +10:00
8n-tech
c240c96ea8 Javascript ammendments, dio_ on Windows.
#475 - Fixed both issues.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-21 01:39:44 +10:00
Fredrick Brennan
afe69248aa Merge pull request #473 from 8n-tech/master
Completely rebuild paragraph parser.
2015-04-20 08:34:17 -04:00
8chan
d2168fbe56 Fix post deletion 2015-04-20 04:20:17 -07:00
8n-tech
d7b511270a Completely rebuild paragraph parser.
The paragraph parser will now encapsulate entire blocks in <p> tags.

#471 - Code tags are fixed. Old posts will need to be regenerated. :(
#458 - Parser improved.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-20 20:44:57 +10:00
8chan
53e2d65419 Merge https://github.com/ctrlcctrlv/infinity 2015-04-19 08:18:20 -07:00
8chan
96411813b4 Rollback file_write function 2015-04-19 08:16:35 -07:00
8n-tech
2c39452190 Fixed some styling issues with the latest update.
#201 - Increased top padding of post blocks.
#458 - Fixed meme arrows.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-20 00:51:45 +10:00
8n-tech
558152790d More board directory stuff.
#456 - Fixed issue where the CLI was generating the wrong index.
#456 - Fixed issue where the user was requesting 100% of the boards on pagination.
#456 - Fixed issue where board active users tracked the last hour and not the last 72 hours.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-19 23:00:39 +10:00
8n-tech
5f5dbbd163 #456 - boards.php no longer generates a cache file or forbids direct access if a $_GET is specified.
#456 - boards.php now generates a boards.json and boards-top20.json when accessed directly.
#456 - Added API compatibility to board-search.php ('max' and 'ppd')
#456 - Fixed an issue with listBoards() that caused an SQL error if you only asked for indexed.

fuck I hope this works

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-19 22:11:56 +10:00
8n-tech
32061668a3 #456 #458 - Completed language support on boards list.
#461 - "Post a reply" button JS added.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-19 13:10:13 +10:00
8n-tech
62380bfbde #458 - Issue Added RTL support for Arabic writers.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-17 04:02:11 +10:00
8n-tech
95e92c40a8 Bug fixes.
- board-search.php Fixed an issue with tag weight where all tags have an equal prominance
- inc/functions.php Fixed an issue where board stats were incorrectly assuming all recent activity was in the last hour.
- js/board-directory.js JS will now repopulate the tag list.
- Improved handling of the load more button.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-16 19:41:52 +10:00
8n-tech
ecfe072a4f - IMPORTANT: Now EXPLICITLY defines $post['time'] as PHP time() instead of relying on database NOW().
- Increased memory management in all of my recent work.
- board-search.php Fetches activity from board_stats and now includes timestamp as a search option.
- boards.php Correctly fetches board activity and formats numbers.
- inc/functions.php Completely reworked activity fetching.
- inc/functions Wrote updateStatisticsForPost() which streams new posts in statistics.
- post.php Writes into updateStatisticsForPost() for streaming new posts.
- Added styling for tags (in progress work).
- tools/migrate_board_stats.php Now correcty defines author_ip_count.

Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-15 01:01:32 +10:00
8n-tech
316e681bbd New CLI tool for upgrade: tools/migrate_board_stats.php
- Adds new coumn to `boards` for easy-access post total storage.
- Migrates the AUTO_INCREMENT number to the `posts_total` column for every board. This ensures accurate post count measurement.
- Adds `board_stats` table for recording histric data.
- Retroactively records all boards into `board_stats`.

- inc/functions.php Added handling for `posts_total` column in `boards`.
- inc/functions.php Removed some bogus data from fetchBoardActivity
- board-search.php Fixed issue with SFW filtering.
- board-search.php Now accurately sends `posts_total` data for board sum posts.
- boards-search.html Various form fixes so search now submits correctly.
- boards-table.html Fixed `posts_total` value.


Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-14 05:36:38 +10:00
8n-tech
6d1eb9961d - board-search.php can now act as an include as well as a direct request.
- boards.php completely rewritten to work with new board-search.php. Functions (sort-of) without JavaScript.
- inc/functions.php fetchBoardActivity() now pulls total board counts with a more reliable and faster method.
- inc/functions.php fetchBoardActivity() & fetchBoardTags() now expect db prefixes.
- stylesheets/stylesheet.css now handles title search bar.
- boards-tags.html completely thrown out for flat tag list styling.
- boards-search.html added for the new page layout.
- boards-table.html added for the <tbody> contents.


Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-14 01:40:45 +10:00
8n-tech
0ceb814ab3 - Added board-search.php with improved board directory searching.
- Added new functions to functions.php for fetching board meta.
- Added new styling for non-index page 12-col layouts.
- Modified templating for board directories.
- Moved CSS from the index page to CSS files.


Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
2015-04-13 14:24:55 +10:00
8n-tech
ee7c624517 Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
inc/functions.php
- Fixed issues with dio on windows machines.

inc/lib/Twig/Extensions/Extension/Tinyboard.php
- Added strict (int) typecasting to avoid critical errors in timestamp formatting.

index.php
- Fixed issue where opening index.php would whitepage.

static/nsfw.png
static/swf.png
- Added missing static files.
2015-04-09 20:11:48 +10:00
czaks
798121060c infinity/smart-build: missing slugify patchset fix 2015-04-06 22:22:30 +02:00
czaks
be4bf70278 infinity/smart-build: don`t include gettext php lib if a shared object is loaded: adaptation of vichan-devel/cbbebc 2015-04-06 20:00:18 +02:00
czaks
d67313f9fa groups were not defined 2015-04-06 19:31:27 +02:00
czaks
0969d1b538 cache_config: fix debug notice 2015-04-06 19:31:08 +02:00
czaks
18e5de9a1f cache_config preliminary release 2015-04-06 19:30:52 +02:00
czaks
9907ae29b8 rearrange config processing a bit 2015-04-06 19:29:43 +02:00
czaks
8da7ec3bde try_smarter: fix two bugs. 1. uncovered by the second, during a bump only the page the thread was on and first page were rebuild, despite threads rearranging their positions on the remaining pages. happening always. 2. during smart build, the page wasn`t ordered to be rebuilt 2015-04-06 19:17:00 +02:00
czaks
3368ca1141 optimization: locale caching, so we don`t have to reparse instance-config every single time 2015-04-06 19:14:41 +02:00
czaks
0e84743f7a optimization: get rid of one more sql query related to installed themes 2015-04-06 19:14:13 +02:00
Jayme Brereton
da75891dd8 made the define_groups function play nice on hhvm 2015-04-06 19:11:11 +02:00
czaks
66638348dc smart_build: buildThread 2015-04-06 19:06:04 +02:00
czaks
d14594ce63 functions.php fix: after_open_board support; so that we may disable smart_build immediately after open_board 2015-04-06 19:05:43 +02:00
czaks
97e0380d65 smart_build for buildIndex 2015-04-06 19:05:29 +02:00
czaks
854b9689b3 fix one of the previous commits: fix api_global 2015-04-06 19:05:04 +02:00
czaks
3f381ee569 add a global_api variable for buildIndex 2015-04-06 19:04:33 +02:00
czaks
453ecfdc6b unlink a .gz version of a file if it exists 2015-04-06 19:04:23 +02:00
czaks
08fd6ae474 dont rebuild a page, when not needed, even if it doesnt exist 2015-04-06 19:04:10 +02:00
Fredrick Brennan
6da9f7ad93 Make it so you can change names/file of user flags 2015-04-03 17:59:15 +08:00
Fredrick Brennan
1e91310f6a Cyclical threads ♺ 2015-04-03 14:56:28 +08:00
Fredrick Brennan
7f95ac8c9c Remove unused variable 2015-03-30 07:12:54 +08:00
Fredrick Brennan
12fa8ec3ef Edit static pages commit 2015-03-29 09:18:14 +08:00
8chan
2a40d82c00 Revert 9920a51ff5 2015-03-22 20:14:08 -07:00
Fredrick Brennan
440b0d5f82 Make oekaki a $config option, make locales load from inc/locale, one main.js file now possible again! 2015-03-11 18:01:04 +08:00
8chan
c04d46933e New post form part one 2015-03-10 16:18:28 -07:00
8chan
83cbe5977b less_ip is now per board, not site-wide 2015-03-06 02:00:03 -08:00
8chan
03419dc770 markup() would erroneously set $board on x-board ref 2015-02-26 01:13:07 -08:00
8chan
d970baa5d8 Public action logs commit (log.php)
Note: In a previous commit, I began making inc/mod/auth.php more modular with the check_login() function. Including it does NOT check mod login by default anymore like it does on vichan. You have to call check_login(). I've finally included it in inc/functions.php. If you have any custom pages that use inc/mod/auth.php, just including functions.php is enough now.
2015-02-25 17:21:49 -08:00
8chan
3312e38f07 Change from fopen/flock to dio_open/dio_fcntl in file_write
8chan uses NFS and flock() does not work over NFS. See http://0pointer.de/blog/projects/locking.html for more information.

Without proper file locking, race conditions are possible in ?/settings and other pages. The one in ?/settings is particularly bad, too many successive writes can cause a PHP file with bad syntax to be written which breaks an entire board and many scripts that call openBoard().

You need to install the dio.so module if you merge this commit.
2015-02-25 17:12:25 -08:00
8chan
4e335db3e8 Add event to quote backlinks 2015-02-18 16:55:03 -08:00
8chan
15987f919f Fix *0 secure tripcodes caused by accidentally feeding + signs to crypt() 2015-02-16 16:24:54 -08:00