Extremely comfy textboard engine. https://textboard.lol
navska bc1bb5bf7a Enable blocking by IP range | 1 year ago | |
---|---|---|
lib | 1 year ago | |
static | 1 year ago | |
templates | 1 year ago | |
util | 1 year ago | |
.gitignore | 1 year ago | |
README.org | 1 year ago | |
about.php | 1 year ago | |
blocklist.txt | 1 year ago | |
conf.php | 1 year ago | |
data.json | 1 year ago | |
favicon.png | 1 year ago | |
index.php | 1 year ago | |
post.php | 1 year ago | |
subback.php | 1 year ago | |
thread.php | 1 year ago |
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.