52 Commits

Author SHA1 Message Date
Sanpaku
60350e7eea nofile + login captcha + whitspace
also prevent whitespace only subject when required
2022-01-07 04:30:40 +01:00
Sanpaku
9bcaaf1daf post requirements +fix
toggle to require op file on imageboard
toggle to require op subject on imageboard (textboard already has by default )

if no subject is given, check if neither image or comment is given. if true, error. if subject is not required, check if both image and subjectcomment is empty. you need at least one of the three to post a thread.

also changes error message for some length settings to be dynamic and not hardcoded
2022-01-07 03:33:18 +01:00
Sanpaku
7924f9fa44 bugfixes
fixed a bug with links that aren't ended with a newline.
fixed a bug when all threads are deleted causing threads.php updater to freak out.
fixed a bug where op file and thumbnail isn't deleted from server on thread deletion.
2022-01-06 00:34:33 +01:00
Sanpaku
f7444e7194 captcha, filtering
new captcha
new zalgo filtering because old one was messing up the format
2021-12-27 17:58:30 +01:00
Sanpaku
82457e5b44 filename
filename fix
2021-10-17 21:09:51 +02:00
Sanpaku
032a098135 audio fix 2021-10-14 03:29:47 +02:00
Sanpaku
e516211631 expand audio 2021-10-14 03:07:25 +02:00
Sanpaku
a3f3e3a0f7 output_html template, vid fix
- $output_html templating, will make more changes later with api toggle for JS stuff like cross-thread post-hovering and autoupdate and similar.
- video compatibility fix for blink browsers
 - description (frontpage) and board slogan (below title on page) are now separate.
- minor style changes
2021-10-13 23:25:38 +02:00
Sanpaku
a74d5efa1a video expansion
opens captcha on field focus if you're doubletabbing after writing your comment
also removed unnecessary hardcoded width/height on expanded images
2021-10-13 00:11:40 +02:00
Sanpaku
6785d60c45 mod_only board 2021-10-12 17:20:53 +02:00
Sanpaku
d3110ea2d9 captcha+ password+ quote+
some extra finishing touches to quote selection newlines
added a post.php generation time function
upgraded JS captcha functionality (keeping no-js captcha as before)
js/cookie post password
minor image margin change
2021-10-12 07:30:29 +02:00
Sanpaku
ac583901d4 temporary reply links
removed a couple stylesheets that were never intended to be included long term
better Tomorrow code look
quotelinks in css and a very temporary replyquoting function, need to rewrite some stuff before i allow for crossthread/crossboard/deletedpost checking without huge performance loss long term)
also fixed some postformatting regex
2021-10-11 18:57:26 +02:00
Sanpaku
ad852ab14c various fixes
tomorrow mod fix
download button compatibility fix
thumbnail res rounding fix
various html valid fixes
2021-10-09 23:17:39 +02:00
Sanpaku
ad5d92173a mod post in locked + toggleable download button
toggleable download button next to files with option for unix or original filename
posting in locked threads for mods+
borrowing a theme to experiment with different text board layouts later when i make more changes to textboards (some things are a bit off still).
2021-10-09 18:13:14 +02:00
Sanpaku
fc923d9e1f display mod level
showlevel in email field for moderators and above to display ## userlevel in their name (## Admin, ## Moderator, ## Janitor, ## User).
2021-10-08 22:46:11 +02:00
Sanpaku
a03ed0cdd3 cleanup
a lot of __dir__'s and __dir__ . '/../' replaced with $path
separate version file
all mod actions moved to mod-actions.php
all mod pages moved to templates/mod/
fixed manual ban typo causing all bans to show as manual ban on ban page
2021-10-08 20:39:33 +02:00
Sanpaku
6bbd058466 manual ban+delete ban
clear captcha field on image reload
manual ban support
delete bans
set first board in boardlist if no board is set to apply to ban theme if user visits post.php manually
2021-10-08 14:57:49 +02:00
Sanpaku
8edb3b0c2c minor ban fix
fix ban has expired message
add border to banned image
2021-10-07 17:40:27 +02:00
Sanpaku
dd1d1fe067 minor edits
extra moderation theme styling
post-button style fix for tomorrow theme
add version display
2021-10-07 16:56:02 +02:00
Sanpaku
87a8f7b74b bans+warnings & some style changes
fixed broken themes affected in edge (broken </select> that went ignored by other browsers)
moved post buttons to the left
removed post checkmark
timeuntil function
added warnings/temp bans/perm bans.
2021-10-07 00:23:13 +02:00
Sanpaku
e4bd80a122 edit/delete user
and minor report panel bug
2021-10-05 21:42:44 +02:00
Sanpaku
367a03ebb9 admin create users
admin can now create users
forgotten old password check to password change
minor box editing
2021-10-03 11:46:20 +02:00
Sanpaku
ac5d1bac07 global reports 2021-10-02 09:29:44 +02:00
Sanpaku
2e08ea8c08 mod dashboard navigation, show/dismissing user reports
global reports display/dismiss tomorrow probably
after that i'll handle the banlist and banning.
can link to a demo after that.
2021-10-01 12:31:34 +02:00
Sanpaku
176651e93f user edit password, exploit fix
user password now uses a unique salt per user, user can change password.

thread get exploit fix (if mod_security doesn't pickup /../ in get parameter)
2021-10-01 08:10:01 +02:00
Sanpaku
c0685d035f footer links, custom pages
just slap a page using the existing templates in the templates/pages/
2021-09-24 05:29:57 +02:00
Sanpaku
9f9a7a0edf mod tools
delete post/file without password if modlevel high enough (configurable)
sticky/lock/autosage buttons for threads
2021-09-20 02:24:19 +02:00
Sanpaku
733924d864 mod login
moderator sessions
additional post protections
minor deleted image url fix
2021-09-17 22:54:49 +02:00
Sanpaku
cb85c52ee6 Catalog
to do: get+cookie to set catalog settings like image size, show this hide that etc etc. otherwise functional enough.

+ minor pagination bugfix (exactly 10-20-30-40 would result in a blank final page as it removed 10 instead of 0).

+ width+height for thread status icons

+Extra theme (Cyanide)
2021-09-10 20:35:46 +02:00
Sanpaku
07ed52625d sticky threads, lock, autosage, new icons
new thread status icons
sticky threads now show up before the other threads, threads can now be set to sticky/locked/autosage and function as such, just missing mod panel to enable disable them.
2021-09-08 15:19:51 +02:00
Sanpaku
406443ba79 more pagination stuff
get form buttons instead of links for prev/next
styles
minor frontpage stuff in preparation for static pages
also stripping tags from thread body subject if no subject input
2021-09-08 11:28:49 +02:00
Sanpaku
8f4993fcde pagination
pagination complete
now need autosage function and sort with sticky threads...
2021-09-07 21:21:18 +02:00
Sanpaku
d73157f05f threads.php, recent.php
now index page pulls replies from a list of recent replies in that thread, and threads from a list of all threads. no need to check every thread and every reply on index page anymore, will help performance in the long run. already had much longer loading times at 30 threads, now its almost same as the other ones pretty much.
good performance boost, 5x faster, cannot imagine how bad it would get at 10-100 threads each with 1-100 replies lmao, or even more fuck
2021-09-07 15:40:49 +02:00
Sanpaku
03e1ec3f67 Finished post/file deletion!
major: added file deletion, post deletion, thread deletion with all its files
re-fixed post passwords
cleaned up reply scanning (isnumeric instead of excluding certain files, easier to expand)
added file deleted file
minor stylesheet change for files

add if modlevel checks later to skip password on deletes
2021-09-07 12:22:43 +02:00
Sanpaku
efab752f7e ID fix, report exploit fix, post passwords set
fixed report exploit, fixed thread/post ID's across boards+threads, fixed post password, working on post deletion.
2021-09-07 08:34:38 +02:00
Sanpaku
b84ee1ffc9 poster ID option, extra text theme 2021-09-05 11:36:39 +02:00
Sanpaku
15c8e6b6cd [code] [aa] [spoiler], fixed error theme for IB+BBS
correct theme should now display on errors
still need to fix a cookie init notice/warning on invalid GET board.
2021-09-05 07:54:44 +02:00
Sanpaku
85517ed9fe wordfilters, newlines(+max), quotes,rquotes,
ltrim+rtrim on post_body too, not trimming any spaces in body field. people can format their own posts for now.

add [aa] + [code] tags?
2021-09-05 06:11:16 +02:00
Sanpaku
f6d05875c4 more sanitization
\ $ was still able break free in _post (not _get)

oops
2021-09-05 05:09:04 +02:00
Sanpaku
42016adca0 sanitized filename, IB and BBS seperate themes
separate theme js+cookie for IB+BBS
Original filename display no longer vulnerable to html code (was a bit too quick there, good thing i double checked)

by default all IBs use Futaba, by default all txt boards use Kareha.
2021-09-05 04:12:29 +02:00
Sanpaku
ec17ff6792 per board configs, textboard stylesheet, textboard configs, boardlist config
create /database/boards/$boards['url']/config.php to use custom configuration on different boards
boardlist configuration to choose between url or board title
mobile viewport
added a kareha style for text boards, can also be used on imageboards while hiding thumbnails, can be used to create pseudo text boards with built in filesharing without breaking the textboard immersion (no images in your face, many bbs users upload 3p images and link to it anyways when relevant enough.
2021-09-04 13:00:47 +02:00
Sanpaku
5f7db55d11 video + downloads 2021-09-03 22:58:51 +02:00
Sanpaku
ac68c6f127 thumbnail transparency fix + audio
can now upload audio
transparency fixed
thread/board locking
thumbnail bug fix
2021-09-02 09:52:04 +02:00
Sanpaku
8c5a7bd855 thumbnails
minor time changes
thread display bugfix
thumbnails 99% functional (transparency seems to bug out still)
2021-09-02 06:11:31 +02:00
Sanpaku
23f4ff570d filenames, anchors 2021-09-01 23:55:28 +02:00
Sanpaku
30e55ac4cb image uploading
mostly works
2021-08-31 22:50:56 +02:00
Sanpaku
40ac8bcc63 main.php cleanup, cookie fix
main.php cleaned up to be easier to work on and less silly
fixed no-js default theme
minor stylesheet change
2021-08-31 19:16:33 +02:00
Sanpaku
e19bbeba46 thread stats + frontpage unique posters
all saved to info.php and frontpage.php for performance increase
2021-08-31 14:14:54 +02:00
Sanpaku
85718847bd file uploading
file uploading in work, can now check file extensions, mime type, and upload and rename the image.

up next obviously add some file info to the posts and display the image.

minor style changes
minor form changes
2021-08-31 08:11:58 +02:00
Sanpaku
b4e95a3446 secure captcha + post buttons + post password saving 2021-08-30 06:57:43 +02:00