1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00
Commit Graph

302 Commits

Author SHA1 Message Date
Michael Foster
2cc9eb468a Change flag_country to just flag 2013-08-16 22:12:25 +10:00
Michael Foster
44e16593b6 Much better post modifiers: raw HTML, ban messages, etc. 2013-08-16 21:25:56 +10:00
Michael Foster
5fdc0878c9 A few modifications:
1. Finally, clean up some of the crappy code in inc/display.php; no more extreme clutter. new Thread() and new Post() take an array as the first parameter now.

2. Poster country flags. Currently requires the "geoip" extension.

3. Give post images a classname. This was also long-overdue.
2013-08-16 21:08:01 +10:00
czaks
13e0e451da Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	inc/config.php
	inc/display.php
	inc/functions.php
2013-08-13 14:46:16 -04:00
Michael Foster
f454d0f4a4 Upload via URL: Make sure we're not vulnerable to this buffer overflow exploit. http://www.exploit-db.com/exploits/24487/ 2013-08-13 00:07:23 +10:00
Michael Foster
2e48fcce06 bugfix: sometimes this acts weird 2013-08-12 23:35:27 +10:00
Michael Foster
7f98229769 Fix last commit: add chmod() to fix some permissions derping 2013-08-12 23:06:58 +10:00
Michael Foster
44590b5756 Optional: Allow uploading by URL 2013-08-12 22:51:46 +10:00
czaks
0c52d1b93c Merge branch 'noko50-new-dev11' of http://github.com/fallenPineapple/Tinyboard
Conflicts:
	inc/functions.php
2013-08-11 17:49:29 -04:00
czaks
24b1adc501 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	inc/config.php
	inc/display.php
	inc/mod/pages.php
	js/catalog-link.js
	post.php
	templates/banned.html
2013-08-11 09:50:33 -04:00
Michael Foster
d579197c42 Critical bug: users could not report OP posts, only replies (thanks to ctrlcctrlv for finding this) 2013-08-11 21:22:25 +10:00
fallenPineapple
b5d99ac9a6 noko50 reply fix 2013-08-11 06:29:30 -04:00
fallenPineapple
42f6b8e0bb Adds "noko50" (View Last 50 Posts) pages. (Broken Reply) 2013-08-10 17:16:30 -04:00
ctrlcctrlv
dc943a91fc Critical bug: users could not report OP posts, only replies 2013-08-09 17:53:23 +00:00
czaks
f56f5356ca Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-08-04 23:31:53 -04:00
Michael Foster
3e95f7fc15 exiftool: -q needed twice to suppress warning messages 2013-08-04 23:15:01 -04:00
Michael Foster
64a47355f1 exiftool: -ignoreMinorErrors 2013-08-04 23:05:20 -04:00
Michael Foster
7044ec8ace Bugfix: exif_read_data() Incorrect APP1 Exif Identifier Code 2013-08-04 23:02:15 -04:00
czaks
64147c93fa Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-08-04 01:00:23 -04:00
Michael Foster
ad660bf719 Some logic fixes. Don't strip exif twice. 2013-08-04 00:54:27 -04:00
Michael Foster
da73fd3283 Use exiftool to patch bug for now. 2013-08-04 00:48:28 -04:00
czaks
381a0d5823 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-08-03 22:18:46 -04:00
Michael Foster
6bd6faa57d Fix for instances with old GraphicsMagick or ImageMagick versions (no -auto-orient). 2013-08-03 22:14:25 -04:00
root
82f4a3d58f Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-08-03 21:49:38 -04:00
Michael Foster
593f8757f2 Bugfix: gm and auto-orient thumbnailing 2013-08-03 21:47:24 -04:00
czaks
9d6f58d226 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-08-03 21:01:26 -04:00
Michael Foster
7211d9c069 Only use identify if we have to 2013-08-03 20:50:37 -04:00
Michael Foster
67da80e354 Better image processing. Add support for GraphicsMagick (a fork of ImageMagick) and exiftool (for stripping EXIF metadata quickly). 2013-08-03 20:34:59 -04:00
czaks
8f7367d925 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	inc/config.php
	inc/functions.php
	templates/generic_page.html
	templates/index.html
2013-08-03 19:05:25 -04:00
Michael Foster
ad5570ada2 Update $config['try_smarter']. Should be working now. 2013-08-03 17:42:34 -04:00
Michael Foster
d59e74f394 Major config.php cleanup and a few minor misc fixes. 2013-08-02 20:52:58 -04:00
czaks
d1a5e9d2cf Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	stylesheets/dark.css
	stylesheets/futaba+vichan.css
	stylesheets/miku.css
	stylesheets/stripes.css
	stylesheets/testorange.css
	stylesheets/wasabi.css
2013-08-01 23:43:20 -04:00
Michael Foster
d71f49c801 Don't redraw image again after correcting image orientation; Correct image orientation with convert+gifsicle too 2013-08-01 21:28:16 -04:00
czaks
926b2c31ed Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-08-01 00:47:33 -04:00
Michael Foster
d379224e3f Add optional database table prefix (issue #118; see issue comments for details) 2013-07-31 22:14:26 -04:00
czaks
ef9ede073f Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	inc/functions.php
2013-07-31 21:03:13 -04:00
Michael Foster
da5048a0e4 SQL cleanup 2013-07-31 20:51:43 -04:00
czaks
0eaf52583f Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	templates/thread.html
2013-07-31 19:25:04 -04:00
Michael Foster
2b74f8b37d Markup modifiers: raw HTML 2013-07-31 19:18:55 -04:00
Michael Foster
be11041471 Markup modifiers. Fix issue #66 (public ban message lost when rebuilding post body) 2013-07-31 18:59:54 -04:00
czaks
625a7961bd Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-07-31 17:02:30 -04:00
Michael Foster
a8c929e0e7 Fix issue #74. Note: This bug may break the display of certain filenames prior to upgrade. 2013-07-31 16:34:50 -04:00
czaks
7e58e50516 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	inc/config.php
	inc/display.php
	inc/functions.php
	inc/image.php
	js/expand.js
	js/hide-threads.js
	js/local-time.js
	js/smartphone-spoiler.js
	templates/header.html
	templates/index.html
	templates/main.js
	templates/page.html
	templates/post_reply.html
	templates/post_thread.html
	templates/thread.html
2013-07-31 14:54:20 -04:00
Michael Foster
bb820f6da9 Issue #126 2013-07-31 12:05:19 -04:00
czaks
eed8767039 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	inc/functions.php
	inc/mod/pages.php
	install.php
	js/expand.js
	mod.php
2013-07-31 02:30:44 -04:00
Michael Foster
ca6cb1fdea Allow Unicode in board URIs. 2013-07-31 02:08:55 -04:00
Michael Foster
a01f53b4a4 Upgrade to utf8mb4 charset for MySQL server versions above 5.5.3. Keep support for older versions. Fix charsets for multiple columns and tables. 2013-07-30 22:08:56 -04:00
Michael Foster
e2adc0093d MySQL's utf8 charset only supports up to 3-byte symbols. Insterting four byte symbols (U+010000 to U+10FFFF) can be done maliciously to break HTML mark-up.
The ideal solution was to convert to MySQL's utf8mb4 charset, but then we would lose support for MySQL < 5.5.3. In this fix, incompatible characters are encoded as HTML numeric character references (eg. #65536) and just stripped from body_nommarkup.
2013-07-30 16:41:10 -04:00
czaks
f5115f1945 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-07-28 20:51:43 -04:00
Michael Foster
d9dfed5e1c Fix for last commit 2013-07-28 20:46:00 -04:00
Michael Foster
9a14d32c77 Strip combining characters from Unicode strings (eg. Zalgo) 2013-07-28 20:33:26 -04:00
czaks
73414519ba Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-07-22 10:14:17 -04:00
Michael Foster
f798bb5209 Option to automatically strip EXIF metadata from JPEGs 2013-07-21 15:50:45 -04:00
czaks
600324b137 Remove imgcaptcha, this code is unused in any of our forks and needs work to get here back.
Revert "Merge branch 'imgcaptcha' of https://github.com/asiekierka/Tinyboard"

This reverts commit 49afb685c8, reversing
changes made to 2451a0f29c.

Conflicts:

	js/imgcaptcha.js
2013-07-20 22:47:26 -04:00
czaks
274a86dd03 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	templates/themes/sitemap/info.php
2013-07-20 17:28:34 -04:00
Michael Foster
731cfba33b Only store video URLs in database, instead of the generated player HTML. 2013-07-19 18:36:12 -04:00
Michael Foster
2650da760c I just realized that ImageMagick had a -auto-orient switch. No need for all that code. 2013-07-19 09:39:46 -04:00
czaks
495c6fa846 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	post.php
2013-07-18 15:19:03 -04:00
Michael Foster
34b5f62600 Themes edit: Split "post" into two seperate actions: "post" (replies) and "post-thread". And add a $board variable. 2013-07-18 12:06:26 -04:00
czaks
6152ed43bd Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	install.php
	templates/index.html
	templates/thread.html
2013-07-16 13:02:13 -04:00
Michael Foster
2ec71f9b3e incrementSpamHash() was duplicated for some reason 2013-07-16 01:34:36 -04:00
czaks
a139c44a80 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
	templates/page.html
2013-06-21 16:41:39 -04:00
czaks
2542aec237 SPDY: send back updated thread/index after post
Sets X-Associated-Content header, which is at least recognized
by Apache mod_spdy.
2013-06-21 16:37:56 -04:00
Macil Tech
aa881058a3 Adds image_hard_limit and reply_hard_limit options.
Also reworks the numPosts() function and uses it elsewhere too.
2013-06-18 12:21:41 -05:00
Marcin Łabanowski
5cc2a67e63 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard into HEAD
Conflicts:
	mod.php
2013-01-23 18:58:38 +01:00
Michael Save
53fa21b76c Automatically rotate and mirror images based on EXIF orientation (only compatiable with "convert" option selected at the moment) 2013-01-24 03:24:38 +11:00
Marcin Łabanowski
6990cab263 Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-01-21 13:17:13 +01:00
Michael Save
4f58617507 Copyright and license update for 2013. 2013-01-20 21:23:46 +11:00
Marcin Łabanowski
f6b7b3901a Merge branch 'master' of https://github.com/savetheinternet/Tinyboard 2013-01-19 16:23:02 +01:00
Macil Tech
ef7c998b02 Add field_disable_subject and field_disable_reply_subject config options. 2013-01-19 01:37:48 -06:00
Michael
b91845ea7e Merge pull request #93 from Macil/image_reject_repost_in_thread
Add image_reject_repost_in_thread option
2013-01-18 23:03:16 -08:00
Macil Tech
14469f80a9 Removed redundant code in image processing.
Both paths of the code here did the same thing.
2013-01-19 00:39:29 -06:00
Macil Tech
15043b39cf Add image_reject_repost_in_thread option 2013-01-19 00:25:24 -06:00
asiekierka
f030a0e95a fixed to actually work 2012-12-22 18:16:09 +01:00
Michael Save
c0760892b5 Merge branch 'mod-rewrite'
Conflicts:
	inc/lib/Twig/Extensions/Extension/Tinyboard.php
	install.php
	mod.php
	stylesheets/style.css
	templates/index.html
	templates/page.html
	templates/thread.html
2012-08-27 02:28:04 +10:00
Michael Save
fa24147525 Temporary bugfix for incorrectly escaped email field 2012-08-27 02:18:31 +10:00
Michael Save
9062a7cf34 $post['id'] 2012-05-27 20:55:56 +10:00
Michael Save
c1c7adb0e9 Bugfix: the number of successful passes for an anti-spam "hash" was often incorrectly incremented 2012-05-07 23:51:58 +10:00
Michael Save
7af775cf80 Bugfix: the number of successful passes for an anti-spam "hash" was often incorrectly incremented 2012-05-07 23:51:15 +10:00
Michael Save
8b2e62f105 custom capcode permissions 2012-05-07 18:22:20 +10:00
Michael Save
36b8397f9f Bugfix: with file uploading (introduced with last commit) 2012-05-05 18:12:11 +10:00
Michael Save
15f290b34f Bugfix: non-image file uploading 2012-05-05 18:11:45 +10:00
Michael Save
ca87a005be Bugfix: with file uploading (introduced with last commit) 2012-04-20 19:48:11 +10:00
Michael Save
adfeeaa635 Bugfix: with file uploading (introduced with last commit) 2012-04-20 19:47:25 +10:00
Michael Save
fe3a7250fe Bugfix: non-image file uploading 2012-04-20 19:04:53 +10:00
Michael Save
a2ad7d16fe Bugfix: non-image file uploading 2012-04-20 19:04:37 +10:00
Michael Save
8e42d64f55 typo 2012-04-14 03:44:00 +10:00
Michael Save
e1e225448a typo 2012-04-14 03:43:04 +10:00
Michael Save
17a56af9a7 code cleanup 2012-04-13 00:18:19 +10:00
Michael Save
ef6f5a2e48 Removed board.id. Use the board URI/name at the key instead. 2012-04-12 23:23:47 +10:00
Michael Save
0f984ebf77 Improved Tinyboard anti-bot/spam filter. See large comment in inc/config.php for details. 2012-04-12 21:56:01 +10:00
Michael Save
c98a8afc1d large cleanup 2012-04-12 02:49:22 +10:00
Michael Save
41355cbd44 moved $OP to $post['op']. post() now has one argument instead of two. 2012-04-11 02:18:06 +10:00
Michael Save
4e9cc24fad increase character limit on board URI, title and subtitle 2012-04-09 21:13:44 +10:00
Michael Save
6aec1a61ba New event: post-after 2012-04-03 00:16:25 +10:00
Michael Save
2ed3a91bc3 Convert $post to an object before passing it to event(). This way it can be modified by event handlers before entering the database. See http://tinyboard.org/docs/events.html#examples 2012-03-24 15:31:35 +11:00
Michael Save
f2df725984 $post['file_path'] 2012-03-19 02:55:34 +11:00
Michael Save
975ddcb2df Moved rebuildThemes() in post.php back for now. 2012-03-19 02:53:33 +11:00
Michael Save
b93d735b7d New feature: "events". Will eventually replace/extend "themes". 2012-03-19 02:41:06 +11:00
Michael Save
bf78900dda Better upload handling (don't move file before handling it) 2012-03-18 19:53:56 +11:00