Commit Graph
100 Commits
Author SHA1 Message Date
Michael Foster b7f16dee0f Add ! syntax (NOT) to filters. Don't throttle duplicate post bodies when they are empty 2013-09-07 12:58:23 +10:00
Michael Foster 55dc5cedc3 Steal make_comment_hex() from plainib 2013-09-07 12:50:32 +10:00
Michael Foster e9ccc5d72d Optionally EXPLAIN all SQL queries when in debug mode 2013-09-07 12:40:35 +10:00
Michael Foster 9ccf62bb61 yeah 2013-09-07 03:09:52 +10:00
Michael Foster 7b1a08d85c purge flood cache table after filter stuff, not before 2013-09-07 02:57:42 +10:00
Michael Foster ecda7abe92 bugfix lol 2013-09-07 00:04:22 +10:00
Michael Foster 33737fd723 CHARACTER SET not needed here 2013-09-06 23:10:25 +10:00
Michael Foster f309e4037c Better and faster basic flood prevention, while merging it into $config['filters']. 2013-09-06 23:09:18 +10:00
Michael Foster 14ff0fbeb3 inc/mod.php has been irrelevant for a while. Time to remove it. 2013-09-06 20:12:34 +10:00
Michael Foster 7f0de93608 Cleaner check to make sure inc/ files aren't accessed directly. 2013-09-06 20:12:04 +10:00
Michael Foster af357b5661 another index change 2013-09-02 11:41:17 +10:00
Michael Foster 9494e0185c new index on bans table 2013-09-02 09:46:42 +10:00
Michael Foster 22fcca343f New index in post tables for listing threads slightly faster (index pages) 2013-09-01 22:15:03 +10:00
Michael Foster cf3173d226 Fix issue #136 2013-09-01 09:57:09 +10:00
Michael Foster b51fc38783 Some SQL and indexes improvements 2013-09-01 02:04:42 +10:00
Michael Foster c567131ca7 bugfix: work with truncated filenames 2013-08-31 19:59:26 +10:00
Michael Foster 3287e57421 js/download-original.js 2013-08-31 19:49:06 +10:00
Michael Foster 8d14ef6bf7 lol 2013-08-31 13:33:26 +10:00
Michael Foster 94ac200d57 fix pm_snippet bug 2013-08-31 13:26:53 +10:00
Michael Foster d166fc70bd Fix \t in posts (editing posts, and HTML Tidy) 2013-08-31 13:23:29 +10:00
Michael Foster f1b1d41230 Update comments for persistent database connections and increase timeout 2013-08-30 15:05:13 +10:00
Michael Foster 46d41cd2a7 More track_cites work 2013-08-30 15:00:33 +10:00
Michael Foster 2d3846384a Rendering $debug: Copy to $_debug so that $debug doesn't become broken if we want to generate more than one file in a request 2013-08-30 09:00:47 +10:00
Michael Foster 343803afb9 More $config['debug'] improvements to time-related stuff 2013-08-30 08:39:11 +10:00
Michael Foster 8921eb9c1a Bugfix: pm_unreadcount cache not working correctly 2013-08-30 08:38:14 +10:00
Michael Foster 738179c766 HTML Tidy bug fix: broken attributes, and preserve whitespace properly 2013-08-29 21:24:38 +10:00
Michael Foster 471525a58b HTML Tidy fixes: UTF-8, preserving whitespace, keep attributes literal, don't wrap text 2013-08-29 21:05:03 +10:00
Michael Foster 8144e517e9 Don't set arbitrary cache timeouts for DNS stuff 2013-08-29 20:40:39 +10:00
Michael Foster 3f26aa5ac3 . 2013-08-29 20:05:24 +10:00
Michael Foster eb7cb42e93 $config['markup_repair_tidy']: Better comment 2013-08-29 18:59:36 +10:00
Michael Foster a8e3754375 Minor $config['try_smarter'] work 2013-08-29 18:55:25 +10:00
Michael Foster 7b817eea11 Fix markup again. And add the option to repair fucked up nesting (and more) with HTML Tidy ($config['markup_repair_tidy']) 2013-08-29 15:56:36 +10:00
Michael Foster 3b63cad71f $config['always_regenerate_markup'] 2013-08-29 15:29:04 +10:00
Michael Foster abd013d6e4 Add $config['always_regenerate_markup'] (99.9% of Tinyboard users should ignore this) 2013-08-29 15:28:45 +10:00
Michael Foster 334e69b69f Remove old code 2013-08-29 13:32:55 +10:00
Michael Foster 3545e2406e Perforamnce: Much more efficient >>X and >>>/board/X 2013-08-29 13:31:02 +10:00
Michael Foster 577a8b991d Performance: Use only one query for validating >>X links in posts 2013-08-29 12:52:31 +10:00
Michael Foster d7fc5adc22 Performance: Use only one INSERT INTO (with multiple rows) for tracked cites 2013-08-29 12:38:37 +10:00
Michael Foster 0bb254fdb3 Critical bugfix: SQL typo 2013-08-29 12:30:16 +10:00
Michael Foster 90eb8f1f37 redundant ORDER BY 2013-08-29 08:41:36 +10:00
Michael Foster 8257773807 $config['debug']: Show time initializing Tinyboard (before $debug was created) 2013-08-29 08:30:21 +10:00
Michael Foster 3fbd051737 Record time started (in milliseconds) at the very beginning of inc/functions.php, even when $config['debug'] is disabled (because we can't tell, yet). Gets a more accurate time for page generation. 2013-08-29 08:25:15 +10:00
Michael Foster aa27a22f7c wtf? duplicate code 2013-08-29 08:17:32 +10:00
Michael Foster 09027cd8ae Better cache debugging: Show hit/miss, etc. 2013-08-29 08:07:27 +10:00
Michael Foster 7a4e481333 Huge bugfix: Old tracked cites where not being purged correctly. Recommend query: "TRUNCATE TABLE cites;" to start over 2013-08-28 22:30:56 +10:00
Michael Foster c31e374a71 Allow Unix sockets for database connection 2013-08-28 20:09:30 +10:00
Michael Foster 10d59e949a Performance: Add expires index to antispm table to make purging old hashes a little quicker 2013-08-28 18:39:45 +10:00
Michael Foster f8f375ec30 Sitemap theme: Minimum time between generating, and only generate on post-thread and post-delete 2013-08-28 18:30:01 +10:00
Michael Foster 5aaa6887f6 Add ip index to post tables for faster ?/IP/ (and flood detection, etc.) 2013-08-28 18:02:28 +10:00
Michael Foster fcb88b16cd Bugfix: Corrupt images were not getting removed from /tmp (convert, gm, and gifsicle) 2013-08-28 17:20:29 +10:00
Michael Foster dc8b1948dd Performance: Only purge old antispam hashes once per request (at most) 2013-08-28 17:08:56 +10:00
Michael Foster a7ac3339de DNS(): Cache NXDOMAIN 2013-08-28 17:00:41 +10:00
Michael Foster 6ce78cb1a4 Bugfix: post editing: should be $board here, not $board['uri'] 2013-08-27 17:27:17 +10:00
Michael Foster 5003a692b4 exiftool: Use -overwrite_original. Important bugfix; old images were never being deleted when using exiftool (instead kept as *_original in /tmp) 2013-08-27 08:55:03 +10:00
Michael Foster 319cd2520f Upload by URL: still use fatal_error_handler() on shutdown 2013-08-27 08:13:23 +10:00
Michael Foster cdeccbb9ba Uploading files via URL: fix for URL parameters (eg. image.png?id=343543) 2013-08-26 12:13:40 +10:00
Michael Foster 5cc7bd860f Add cache and gm to pre-installation test. Don't die when we can't write to templates/cache. 2013-08-22 03:35:57 +10:00
Michael Foster a65c4f2c1f permissions fix 2013-08-21 23:03:38 +10:00
Michael Foster ec3eecd2e5 dark_roach.css: move images to stylesheets/img 2013-08-21 22:58:15 +10:00
Michael Foster d92b138762 Accidentally merged noko50 stuff 2013-08-21 22:53:48 +10:00
Michael Foster 11fa73e4d1 automatically initialize $config['api'] 2013-08-21 22:44:23 +10:00
Michael Foster a83715dcb0 single quotation marks please 2013-08-21 22:43:35 +10:00
Michael Foster b01a402d23 4chan-compatible api: better config.php comments 2013-08-21 22:41:42 +10:00
Michael Foster cbfafeea36 merge fail 2013-08-21 22:36:48 +10:00
Michael Foster 54a8c72121 Huge bug with deleting boards: $tmp_board unused; sometimes it would delete the wrong board's directory 2013-08-21 21:34:18 +10:00
Michael Foster 72beacc1da allow moving threads with non-image uploads 2013-08-21 20:54:46 +10:00
Michael Foster db8173fe62 Remember post password if entered manually 2013-08-20 23:34:41 +10:00
Michael Foster 86801e2ef2 safer installation 2013-08-20 17:43:21 +10:00
Michael Foster abfdd38e59 Unicode bi-directional text: Finally a working fix 2013-08-19 23:47:56 +10:00
Michael Foster 5438d7cf64 add alt="" to flags to make it standards-compliant 2013-08-19 20:31:15 +10:00
Michael Foster 69741e6c08 deleting boards: cache purging, delete directory after sql queries (in case we have permission errors, etc.) 2013-08-19 20:00:16 +10:00
Michael Foster e45ffb8592 custom timeouet for curl'ing upload urls 2013-08-19 18:54:10 +10:00
Michael Foster c8fcba9439 disregard 2013-08-19 05:22:08 +10:00
Michael Foster d2fdeead64 bidi_cleanup: Just replace with HTML5's <bdi> (for now, at least). The old code was hardly working, and had issued with older PHP versions. 2013-08-19 05:19:54 +10:00
Michael Foster dcb42a52cb typo 2013-08-19 04:24:07 +10:00
Michael Foster 5051e0572a Missing theme conf type "checkbox" 2013-08-19 02:03:54 +10:00
Michael Foster 740b710dd4 chmod(): images don't need +x lol 2013-08-19 01:54:14 +10:00
Michael Foster ae02ed69b2 use `` syntax 2013-08-19 01:13:51 +10:00
Michael Foster 154fbf5070 Huge bug: undoImage() was not working at all. This means lots of Tinyboard users probably have lone/permanent images. Working on Tinyboard-Tools script to remove all images/thumbs that don't belong. 2013-08-19 01:07:04 +10:00
Michael Foster 844a337e03 Make file and thumb 255 chars 2013-08-18 20:59:46 +10:00
Michael Foster 80804b9df6 Bugfix: $config['file_thumb'] being used incorrectly 2013-08-18 20:53:01 +10:00
Michael Foster dcf97d6b5b Add optional modifier: <tinyboard is_file> to tell Tinyboard that even though an image might have a thumbnail, it could still be a non-image upload 2013-08-18 18:17:12 +10:00
Michael Foster fa4dec36db Don't expand non-images 2013-08-18 16:40:07 +10:00
Michael Foster cff62b250c Bugfix: raw html posting 2013-08-18 04:49:56 +10:00
Michael Foster 3a27060503 GeoIP: Ignore country codes that aren't country codes: ap (Asia/Pacific), EU, etc. 2013-08-18 01:06:13 +10:00
Michael Foster 28f366b686 keep casing of escape modifiers 2013-08-17 17:56:38 +10:00
Michael Foster 998002fd34 better modifier escaping again 2013-08-17 17:53:39 +10:00
Michael Foster b2d5ec253b escape_markup_modifiers: make it case insensitive 2013-08-17 17:41:22 +10:00
Michael Foster e7f25aa480 add delete event 2013-08-17 16:06:45 +10:00
Michael Foster cd3e2ef458 js/expand-all-images.js 2013-08-17 14:54:41 +10:00
Michael Foster c0815ea25a Bugfix: When you hovered over a >>X link, then hid and unhid a thread (js/hide-threads.js) it would fuck up 2013-08-17 14:42:48 +10:00
Michael Foster e5103b543a fix aspect ratio displaying 2013-08-17 04:11:24 +10:00
Michael Foster 8858127498 Bugfix: post.filex => post.fileheight, etc. 2013-08-17 04:07:32 +10:00
Michael Foster 0d45fbc799 Add \n before post modifiers. Add flag alt for country flags. 2013-08-17 03:39:58 +10:00
Michael Foster 5774d21632 Post hover: hide images when need to 2013-08-16 23:49:57 +10:00
Michael Foster 0565e2119d Bugfix: Thumbnail sizes (thumbx => thumbwidth, etc.) 2013-08-16 23:25:32 +10:00
Michael Foster 0ad1c03997 Optional "flag style" and "flag alt" modifiers 2013-08-16 23:12:40 +10:00
Michael Foster 47ddd2f8b2 Fix editing raw HTML posts 2013-08-16 22:18:57 +10:00
Michael Foster a9fe4ea2db Change flag_country to just flag 2013-08-16 22:12:25 +10:00
Michael Foster 23f23b8301 Make js/inline-expanding.js better, now that post images are marked with .post-image 2013-08-16 22:02:57 +10:00