Commit Graph
100 Commits
Author SHA1 Message Date
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
Michael Foster aaeac9de3c forgot this here 2013-08-16 21:51:10 +10:00
Michael Foster eb8de3f992 remove some autism from readme 2013-08-16 21:48:05 +10:00
Michael Foster 57e69268ef This wasn't usd anywhere. 2013-08-16 21:46:51 +10:00
Michael Foster 0f2497a5f6 Fix some styling for non-post img's 2013-08-16 21:34:28 +10:00
Michael Foster 4876a27232 Much better post modifiers: raw HTML, ban messages, etc. 2013-08-16 21:25:56 +10:00
Michael Foster cc62b888af Add poster flags. May be incomplete. 2013-08-16 21:11:20 +10:00
Michael Foster b666886416 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
Michael Foster 88dff2a683 Set $config['try_smarter'] to true. If you notice any problems, please report them to us. 2013-08-16 20:16:09 +10:00
Michael Foster 07b825c6d2 Don't create anti-bot stuff in buildThread() when asked to return HTML as a string. 2013-08-13 21:53:23 +10:00
Michael Foster c6e629bf89 allow wordfilters to be callbacks 2013-08-13 01:53:23 +10:00
Michael Foster 60b3cfc539 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 6fdbe76f7b bugfix: sometimes this acts weird 2013-08-12 23:35:27 +10:00
Michael Foster 6a1e8e834b Fix last commit: add chmod() to fix some permissions derping 2013-08-12 23:06:58 +10:00
Michael Foster 0de0bc6ceb Optional: Allow uploading by URL 2013-08-12 22:51:46 +10:00
Michael Foster a7a93ece3d $config['error']['invalidzip'] isn't used anywhere anymore 2013-08-12 22:14:26 +10:00
Michael Foster e0a8ffcfb9 ?/config: Link URLs in comments 2013-08-12 21:14:32 +10:00
Michael Foster 169c68e862 use single quotes 2013-08-12 21:08:40 +10:00
Michael Foster 5ba5c0973e Merge branch 'master' of github.com:savetheinternet/Tinyboard 2013-08-12 13:02:04 +10:00
Michael Foster adbb0c1fdf ... 2013-08-12 13:01:34 +10:00
Michael Foster 3a5f25f751 what 2013-08-12 13:00:06 +10:00
Michael c257deb581 Merge pull request #132 from JosephGoldbergStein/master
CSS changes
2013-08-11 19:34:25 -07:00
Michael 0de3ead32a Merge pull request #130 from JosephGoldbergStein/patch-1
Ferus.css border fix
2013-08-11 04:35:57 -07:00
Michael Foster 4fb941dbfe $config['boardlist_wrap_bracket'] default to true 2013-08-11 21:30:46 +10:00
Michael Foster aecfc37510 Rename ban_page_message to ban_page_extra 2013-08-11 21:30:02 +10:00
Michael Foster 5836cd23d2 Critical bug: users could not report OP posts, only replies (thanks to ctrlcctrlv for finding this) 2013-08-11 21:22:25 +10:00
Michael Foster 4bce3d7584 Clean: Make boardlist bracket wrapping optional 2013-08-11 21:06:13 +10:00
Michael Foster 1248e329d2 remove maximum-scale in <meta name="viewport"> 2013-08-05 05:05:38 -04:00
Michael Foster f1e3c53d8d exiftool: -q needed twice to suppress warning messages 2013-08-04 23:15:01 -04:00
Michael Foster c9fe458152 exiftool: -ignoreMinorErrors 2013-08-04 23:05:20 -04:00
Michael Foster 373fb99a7f Bugfix: exif_read_data() Incorrect APP1 Exif Identifier Code 2013-08-04 23:02:15 -04:00
Michael Foster 0c829aa8f6 bugfix 2013-08-04 18:48:32 -04:00
Michael Foster 7a51444110 This should probably still be ADMIN. By default, don't let mods or janitors edit any of the config. 2013-08-04 17:53:55 -04:00
Michael Foster c3da5ab4e1 ?/config: Advanced permissions 2013-08-04 17:53:09 -04:00
Michael Foster 6e0e5b1e8a Not the nicest-looking fix, but comments (actual comments, not code examples) beginning with "$" are ignored by ?/config. 2013-08-04 16:46:08 -04:00
Michael Foster acfda35648 gifsicle: redirect stdout to /dev/null but keep stderr going to stdout 2013-08-04 16:32:36 -04:00
Michael Foster b7070aeac6 Fix issue with installing and creating boards with MySQL < 5.5.3. Issue #129 2013-08-04 15:23:26 -04:00
Michael Foster 33a07e9ee0 bug fix, wrong index 2013-08-04 05:11:46 -04:00