Commit graph

36 commits

Author SHA1 Message Date
Zankaria
31086b05d9 bans.php: limit post body length to 12 KBs 2024-08-19 22:54:05 +02:00
3b8c6ae9fd bans.php: fix new_ban failing due to the message body being too big 2024-07-27 15:21:06 +02:00
a0049aff28 bans.php: fix typo in findSingleNoGc query 2024-07-23 19:49:04 +02:00
dfef661910 bans.php: fix forgot to extract the mask 2024-07-15 21:30:14 +02:00
60241a474c bans.php: FIX every IP matching to any ban that was going to expire eventually 2024-07-14 19:23:14 +02:00
88eb7d68a7 bans.php: do not deserialize post that does not exist 2024-07-14 19:13:51 +02:00
d69eebb1d3 bans.php: refactor to expose the moratorium on ban deletion from the database.
Also fixes the 'purge_bans' configuration for non-cache deployments.
2024-07-14 18:22:51 +02:00
6cf574a998 bans.php: use modern array syntax 2024-07-14 18:22:51 +02:00
1633baf421 bans.php: group deletion policy 2024-07-14 18:22:51 +02:00
bdc98b66ff bans.php: use modify inplace 2024-07-14 18:22:51 +02:00
d0b1c388eb bans.php: make the purge configurable 2024-07-14 18:22:51 +02:00
870d3812d3 bans.php: split find implementations 2024-07-14 18:22:51 +02:00
b88abb1c33 bans.php: split findSingle implementations 2024-07-14 18:22:51 +02:00
Zankaria
81f132dcf9 bans.php: rebuild themes only if bans are deleted 2024-07-14 18:22:51 +02:00
Zankaria
b009fc749e bans.php: group deletions 2024-07-14 18:22:51 +02:00
0ce203f1d2 bans.php: always print modLog 2024-05-22 22:24:04 +02:00
9efc35e441 bans.php: simplify modLog string 2024-05-22 22:22:56 +02:00
Zankaria
ef936d60a9 bans.php: format 2024-04-04 15:57:08 +02:00
discomrade
2605a6ff5d Merge vichan PHP8 fixes, configure composer, fix outstanding incompatibilities 2022-01-17 02:14:22 -01:00
discomrade
bba5e1bff3 Clean up duplicate code 2021-10-14 07:04:26 +00:00
Benjamin Southall
151bbe7b53 Casting to make bans work with newer PHP, as per vichan 2019-02-26 10:28:15 +10:00
Benjamin Southall
c58e37ce39 Merged lainchan with vichan master at 25/9/2016 0bd63149b7 @czaks czaks committed on GitHub 2 days ago 2016-09-25 16:34:47 +09:00
czaks
12e6aba5d4 (2/2) advanced build. implement a daemon that will build static pages.
implement a queue and a lock. fix notice in bans. and it even works!

the daemon is basic right now, it could work in a mode that it will defer building certain
pages until a certain time.
2016-05-08 13:23:41 +02:00
Michael Walker
9f00630b40 Display banned post contents if reason does not contain cp 2016-02-11 15:21:54 +00:00
Michael Walker
692ca79d8b Don't include post messages in public banlist 2015-10-17 23:57:36 +01:00
8chan
803c76a800 .x.x less confusing...will change to less_ip eventually 2014-10-11 20:37:58 +02:00
czaks
5d1b426fa3 fix bans.php on removing a ban by a semi-privileged mod 2014-10-11 20:13:05 +02:00
czaks
ef3bb46876 bans.php: surpress error 2014-10-09 02:00:31 +02:00
czaks
9b3fa77719 new banlist implementation; also includes a public banlist 2014-10-08 23:23:59 +02:00
Fredrick Brennan
7288f1dec7 Fix last commit 2014-09-20 16:49:32 +00:00
Fredrick Brennan
9070b061ee Bug fix: users were banned from /0/ if they had a ban anywhere else
Conflicts:
	inc/bans.php
2014-09-20 15:39:47 +00:00
8chan
66e026b361 ?/bans: fix pagination - can now see all bans on all boards if > $config[mod][banlist_page]
Conflicts:
	inc/bans.php
2014-09-13 16:43:46 +00:00
Michael Foster
cff15bd765 bugfix: bans 2013-09-18 14:02:01 +10:00
Michael Foster
840e8cd093 use own class's delete function when removing expiring ban 2013-09-18 08:59:36 +10:00
Michael Foster
3471f7c668 Optionally show post user was banned for 2013-09-18 08:47:34 +10:00
Michael Foster
b5ebd265f2 Forgot to include this file 2013-09-17 09:28:06 +10:00