Commit Graph
100 Commits
Author SHA1 Message Date
ZankariaandZankaria ceccbfc5b7 config.php: limit the number of dicerolls 2024-10-14 17:46:29 +02:00
ZankariaandZankaria fe7a667441 style.css: add diceroll styling 2024-10-14 12:13:21 +02:00
ZankariaandZankaria 003e8f6d3b maintenance.php: delete expired filesystem cache 2024-10-10 23:10:05 +02:00
ZankariaandZankaria 243e4894fa Use CacheDriver and Context for mod.php and mod pages 2024-10-10 23:10:05 +02:00
ZankariaandZankaria 589435b667 context.php: use shared cache driver 2024-10-10 23:10:05 +02:00
ZankariaandZankaria f138b4b887 cache.php: wrap new cache drivers 2024-10-10 23:10:05 +02:00
ZankariaandZankaria 66d2f90171 cache-driver.php: filesystem handle expired values. 2024-10-10 23:09:55 +02:00
ZankariaandZankaria 82ea1815fd Refactor cache driver 2024-10-10 22:56:56 +02:00
ZankariaandZankaria 0e8909ac4e pages.php: fix whitespace indentation 2024-10-06 11:33:20 +02:00
ZankariaandZankaria 6b60f841d4 template: supply data-resource-version to main.js 2024-09-19 22:28:55 +02:00
ZankariaandZankaria 3c5484a7c2 main.js: load styles with dyanamically provided resource version.
This is done because:
 - If the version is updated before the rebuild, someone might cache the old version in the meanwhile.
 - One could not rebuild javascript before updating the version. Now it's possible.
2024-09-19 22:28:52 +02:00
ZankariaandZankaria fcf5c3d73a templates: bust all css caches with resource_version 2024-09-19 22:01:51 +02:00
ZankariaandZankaria 9fbc816205 templates: bust all js caches with resource_version 2024-09-19 22:01:51 +02:00
Zankaria 6ea8fd5bf3 config.php: add missing default configuration, remove db settings 2024-08-21 14:05:29 +02:00
Zankaria 1191dfb193 pages.php: add copy fallback in case of already existing file when moving thread. 2024-08-18 01:06:45 +02:00
Zankaria d408ed0413 theme.php: rename functions to snake_case 2024-08-16 18:33:02 +02:00
Zankaria 453ae795f5 composer.json: autoload theme.php 2024-08-16 18:24:48 +02:00
Zankaria b2df2ab2a5 theme.php: extract theme functions from functions.php 2024-08-16 18:24:26 +02:00
Zankaria 81aebef2f4 pages.php: use modern array syntax for new empty arrays 2024-08-15 17:21:41 +02:00
Zankaria b64bac5eb8 pages.php: use the context to access the configuration array 2024-08-15 17:13:43 +02:00
Zankaria 524ae94624 mod.php: pass the context to the mod pages 2024-08-15 17:13:34 +02:00
Zankaria 19082aec56 mod.php: use modern array syntax 2024-08-15 17:13:27 +02:00
Zankaria e640217a8f post.php: fix DI method call 2024-08-15 16:39:12 +02:00
Zankaria 165ea5308a config.php: ops, wrong name for the native captcha 2024-08-15 16:33:56 +02:00
Zankaria f7073d5d7e post.php: do not verify the poster IP if the captcha is dynamic 2024-08-15 16:22:58 +02:00
Zankaria cb5fb68c5e header.html: format 2024-08-15 16:21:02 +02:00
Zankaria fb92e5fb68 config.php: rework captcha configuration 2024-08-15 16:20:58 +02:00
Zankaria a275d04efa captcha-queries.php: refactor NativeCaptchaQuery to use DI 2024-08-15 15:17:54 +02:00
Zankaria 933594194c captcha-queries.php: refactor remote captcha queries to use DI and abstract the implementation better 2024-08-15 15:11:32 +02:00
Zankaria 4d8a4db338 api.php: partially modernize the Api class 2024-08-11 16:14:03 +02:00
Zankaria d1b06acbe9 mod.php: remove last mod_page_* handler, use only mod_* for mod pages 2024-08-11 15:45:24 +02:00
Zankaria 80be41f47a config.php: make config sub-arrays more opcache friendly 2024-08-11 15:39:21 +02:00
Zankaria ee20bf574a functions.php: format _create_antibot 2024-08-11 10:14:54 +02:00
Zankaria 0c074016e7 context.php: much better Dependency Injection implementation 2024-08-11 10:06:20 +02:00
Zankaria 37658f1817 install.php: fix HTTPS check 2024-05-17 14:13:40 +02:00
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 5bb1202def Add num.php to autoloader 2024-04-30 15:57:02 +02:00
Zankaria f6960b8b3a functions.php: format and trim 2024-04-30 15:57:02 +02:00
Zankaria 7041cd13df functions: split off numeric functions 2024-04-30 15:56:59 +02:00
Zankaria 687e8e078a Add format.php to autoload 2024-04-30 15:56:56 +02:00
Zankaria b7eed34b83 functions: split off time formatting functions 2024-04-30 15:56:53 +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 c91c58ed07 Fix: substitute deprecated string interning syntax 2024-04-03 19:18:41 +02:00
Zankaria 99133c90fa config.php: fix date time diplay documentation 2024-04-03 17:38:12 +02:00
Zankaria 4ffe91e384 templates: substitute deprecated functions 2024-04-03 17:33:53 +02:00
Zankaria 1fa60e7386 index.hmtl: trim template 2024-04-03 17:33:53 +02:00
Zankaria 7479360aad catalog.html: format template 2024-04-03 17:33:48 +02:00
Zankaria 9a014e8557 template.php: fix deprecated string interning syntax 2024-04-03 17:33: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