Commit Graph
96 Commits
Author SHA1 Message Date
Zankaria 1b6d6f38f1 auth.php: add typing 2024-04-30 19:47:31 +02:00
Zankaria da4842eb7b auth.php: disallow unencrypted logins by default 2024-04-30 19:45:15 +02:00
Zankaria 0c51d46cdf auth.php: check if the cookie is set before deletion 2024-04-30 19:45:15 +02:00
Zankaria 9db8444c3c auth.php: use secured names and directives for mod cookies 2024-04-30 19:44:11 +02:00
Zankaria abdf82e1c8 auth.php: remove obsolete code 2024-04-30 19:44:11 +02:00
Zankaria 5a378dd605 config.php: reduce default login cookie expire timeout 2024-04-30 19:42:01 +02:00
Zankaria 39ce0e7dfc auth.php: trim 2024-04-30 11:36:11 +02:00
Zankaria af06d84094 style.css: limit user options panel width on mobile 2024-04-27 22:21:20 +02:00
Zankaria ebbb5fce53 Move twig template cache 2024-04-26 14:03:57 +02:00
Zankaria 4bb0f40cd1 index.html: trim 2024-04-24 17:01:38 +02:00
ZankariaandZankaria 5c99b0f4f3 docker: enable profiling with xdebug 2024-04-16 22:32:41 +02:00
ZankariaandZankaria fb191a0ffd docker: change compose database root password 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 575b265c74 docker: adjust php-fpm pool log config on compose 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 050bc59588 docker: enable JIT by default on compose 2024-04-16 22:32:41 +02:00
ZankariaandZankaria f8ea32376e docker: remove leftchan references from compose 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 5a5d315330 docker: remove leftypol branding from nginx compose 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 729219a3c4 docker: bootstrap remove leftypol specific files 2024-04-16 22:32:41 +02:00
ZankariaandZankaria d117619ce6 docker: boostrap script handle secrets.php, copy static files 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 5bdbe49f38 docker: move image to alpine linux 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 711e824153 docker: remove lainchan branding from compose file 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 9d9804db13 docker: compose mount local-www as root directory in nginx 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 79183ae8e6 docker: handle secrets.php 2024-04-16 22:32:41 +02:00
ZankariaandZankaria eb01768191 docker: use less used port for compose 2024-04-16 22:32:41 +02:00
ZankariaandZankaria c058ec12f9 Remove template/cache directory 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 1fed05c5ee docker: ignore empty gitkeep directories 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 2af07d006b docker: create empty robots.txt 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 8799c142b0 install.php: check that secrets.php is writable 2024-04-16 22:32:41 +02:00
ZankariaandZankaria efdf93e3dd template.php: trim 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 482962844a docker: fix missing tmp directory 2024-04-16 22:32:41 +02:00
ZankariaandZankaria cc8e458906 docker: split up application and dependency layers 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 1d385ad6aa docker: remove "meaningless" bits from nginx configuration 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 62f0e9894c docker: trim PHP configuration 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 90235b2bab docker: remove unused configuration 2024-04-16 22:32:41 +02:00
ZankariaandZankaria 8389c399bd Context: shorter lazy initialization 2024-04-16 22:30:37 +02:00
Zankaria a83bcf14a4 Context: simplify lazy initialization 2024-04-09 11:43:46 +02:00
Zankaria f93dd1fae5 Context: extract dependency building from the container 2024-04-09 11:33:06 +02:00
Zankaria fc716fd0a8 install.php: better SQL error reporting 2024-04-07 19:59:08 +02:00
Zankaria 710f6aa6c2 post.php: use logger 2024-04-04 12:44:37 +02:00
Zankaria 55cb6bc400 context.php: add log driver 2024-04-04 12:44:37 +02:00
Zankaria f05c290b67 log-driver.php: autoload the logging dirver 2024-04-04 12:44:37 +02:00
Zankaria 28395d55e5 Refactor the logging system 2024-04-04 12:44:37 +02:00
Zankaria 4d9d68b550 Substitute deprecated php functions calls 2024-04-04 11:09:43 +02:00
Zankaria eaacf27199 post.php: do not strip orientation metadata 2024-04-03 21:38:16 +02:00
Zankaria 6ceee8261e post.php: strip and reorient png and webp images 2024-04-03 21:34:51 +02:00
Zankaria 2bb1b0b9d4 post.php: remove double check 2024-04-03 21:24:10 +02:00
Zankaria 9072ce5992 post.php: strip metadata from png and webp image file types 2024-04-03 21:23:48 +02:00
Zankaria 542c9f3342 Remove check-updates functionality.
It relies on the defunct vichan.net website, no point keeping it around.
2024-04-03 14:38:26 +02:00
Zankaria f47332cdff Allow queue push to fail gracefully 2024-04-03 14:34:43 +02:00
Zankaria 09dc44ec40 functions.php: trim 2024-04-03 14:34:42 +02:00
Zankaria e61ed35aa0 Refactor queue.php 2024-04-03 14:33:51 +02:00
Zankaria 55034762b0 Format queue.php 2024-04-03 14:33:51 +02:00
Zankaria 760431606d Refactor lock.php 2024-04-03 14:33:51 +02:00
Zankaria 00b05099f3 Format lock.php 2024-04-03 14:33:51 +02:00
Zankaria d4bcc34d6d Add ban id to ban page. 2024-03-26 15:29:20 +01:00
Zankaria b739a8e846 banned.html: trim 2024-03-26 15:26:55 +01:00
Zankaria 018da09ac5 Fix CaptchaQueries naming 2024-03-26 14:16:19 +01:00
Zankaria 3e3fa057d5 bans.php: rebuild themes only if bans are deleted 2024-03-22 10:59:22 +01:00
Zankaria 67b88ec78f bans.php: group deletions 2024-03-22 10:59:13 +01:00
Zankaria a2eb3d9053 bans.php: trim 2024-03-22 10:57:10 +01:00
Zankaria 27ddd5158d psot.php: remove no-op lines 2024-03-21 16:15:49 +01:00
Zankaria e455080d42 post.php: refactor image metadata stripping into function 2024-03-21 16:02:09 +01:00
Zankaria af8240e166 Autoload CaptchaQueries 2024-03-21 15:14:13 +01:00
Zankaria dc903017ca Add CaptchaQueries 2024-03-21 15:14:13 +01:00
Zankaria 819ce71c55 Autload HttpDriver 2024-03-21 15:14:13 +01:00
Zankaria 2cad97775a post.php: use HttpDriver for remote file download 2024-03-21 15:14:13 +01:00
Zankaria c20b0ba6f0 Add context dependency container 2024-03-21 15:14:13 +01:00
Zankaria 3dc239e204 http-driver: refactor 2024-03-21 15:14:13 +01:00
Zankaria 65cebe9bd5 http-driver: add file size limit and timeout support 2024-03-21 15:14:13 +01:00
Zankaria 2a228e8ee4 Add http curl driver 2024-03-21 15:14:13 +01:00
Zankaria 2a8b69fa77 Add maximum report length 2024-03-15 16:37:59 +01:00
Zankaria d5109426d9 Prettier simple-antispam 2024-03-15 16:08:45 +01:00
Zankaria caa05e41a2 Add IPs of users deleting their own post to the mod log 2024-03-15 12:02:33 +01:00
Zankaria e2d771239c Critically enhance the simple antispam mechanism 2024-03-14 12:50:19 +01:00
Zankaria b25cffe12e functions.php: trim 2024-03-14 10:01:13 +01:00
Zankaria 2f88d0809f Remove APC support 2024-03-11 10:24:35 +01:00
Zankaria 0154e54f85 Remove xcache support 2024-03-11 10:24:35 +01:00
Zankaria 8cebc7f80c mod.php: trim 2024-03-11 10:24:35 +01:00
Zankaria 575cb856a5 install.php: trim 2024-03-11 10:24:35 +01:00
Zankaria 6715991cdd README: trim 2024-03-11 10:24:35 +01:00
Zankaria 58134f8cde cache.php: trim 2024-03-11 10:24:35 +01:00
Zankaria f683c72c39 config.php: trim 2024-03-11 10:24:30 +01:00
Zankaria 9ae988dd6f post.php: refactor image OCR into function 2024-03-08 10:24:02 +01:00
Zankaria 8978bb5442 post.php: fix bad call to download_file_into with wrong argument 2024-03-07 12:37:17 +01:00
Zankaria cb7a6ecf45 Remove obsolete dbschema.sql 2024-02-19 15:48:56 +01:00
Zankaria db7d51670e Format filter 2024-02-16 16:01:01 +01:00
Zankaria 24ebabb976 Remove 'convert_manual_orient' functionality.
It was supposed to help in case the user had an unspecified imagemagik version that was old in 2013...
2024-02-14 23:34:08 +01:00
Zankaria dd5c25f99c Remove remote server support
The functionality was marked as "I'm not even sure if this code works anymore" 11 years ago...
2024-02-14 23:00:52 +01:00
Zankaria 6cf8c393b5 Remove polyfills for php 5.4 and 5.6 2024-02-14 11:24:40 +01:00
Zankaria fde425111c Remove bans.php 2024-02-14 11:12:42 +01:00
Zankaria b35990e1cd Fix composer.json platform 2024-02-09 14:49:12 +01:00
Zankaria fb3843efd5 Remove the custom BMP polyfill.
It was previously required to support PHP < 7.2, but now the minimum supported version is PHP 7.4
2024-02-07 23:24:34 +01:00
Zankaria 3baa68c7b6 Initial refactor of functions.php 2024-02-03 17:17:14 +01:00
Zankaria d3cd289511 Refactor post.php: break up file upload 2024-01-30 14:37:08 +01:00
Zankaria c43229af8e Refactor post.php: extract symbol post body stripping 2024-01-30 14:36:31 +01:00
Zankaria d02c4eb31d Refactor post.php: split upload file hashing to a function 2024-01-30 10:35:11 +01:00
Zankaria 15cce3a31f Fix leading whitespace in post.php 2024-01-30 10:35:07 +01:00