Extremely comfy textboard engine. https://textboard.lol
navska bc1bb5bf7a Enable blocking by IP range | 1 år sedan | |
---|---|---|
lib | 1 år sedan | |
static | 1 år sedan | |
templates | 1 år sedan | |
util | 1 år sedan | |
.gitignore | 1 år sedan | |
README.org | 1 år sedan | |
about.php | 1 år sedan | |
blocklist.txt | 1 år sedan | |
conf.php | 1 år sedan | |
data.json | 1 år sedan | |
favicon.png | 1 år sedan | |
index.php | 1 år sedan | |
post.php | 1 år sedan | |
subback.php | 1 år sedan | |
thread.php | 1 år sedan |
Yet another textboard engine.
Kareha style textboard + some modern revamp.
Minimalist approach meaning as less dependencies as possible.
Modern revamp doesn't mean JavaScript bloat. Minimalist approach doesn't mean "suckless" ideology. One should not take it to any side of extreme to make a convenient web site.
PHP8, XHTML5, vanilla JS, local JSON file as "database".
On Debian-like, you will need to install these:
apt install php php-simplexml # mandatory
apt install apache2 certbot python3-certbot-apache git #optional
~.htaccess~ is not recommended by Apache.
Instead you want to put something like this into site config (sites-available
):
<Directory /var/www/cudan>
Options -Indexes
AllowOverride All
<Files conf.php>
Require all denied
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
# Index redirect
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://%{HTTP_HOST}/ [R=301,L]
</IfModule>
</Directory>
<Directory /var/www/cudan/lib>
Require all denied
</Directory>
<Directory /var/www/cudan/templates>
Require all denied
</Directory>
čudan is "strange" in Bosnian. Credit to Ayashii world.
Advertising: This project is written completely in GNU Emacs.
License: GPLv3.