Extremely comfy textboard engine. https://textboard.lol

navska bc1bb5bf7a Enable blocking by IP range il y a 1 an
lib bc1bb5bf7a Enable blocking by IP range il y a 1 an
static 8fb236c248 Add basic JavaScript for user convenience il y a 1 an
templates bc1bb5bf7a Enable blocking by IP range il y a 1 an
util 3dce0627fc Fix Atom title trimming Unicode symbol apart il y a 1 an
.gitignore e9cbd696b4 Initial commit il y a 1 an
README.org 6ebd37a38b Add installation info il y a 1 an
about.php 135ef1d065 Add about page il y a 1 an
blocklist.txt d93c55302b Enable blocking by IP il y a 1 an
conf.php 519e5b1481 Add purge stale threads functionality il y a 1 an
data.json 35acd1a1e2 Add skeleton for posting il y a 1 an
favicon.png b86ee994d5 Add favicon il y a 1 an
index.php 500ce578e9 Refactor getting JSON data from file il y a 1 an
post.php 519e5b1481 Add purge stale threads functionality il y a 1 an
subback.php 500ce578e9 Refactor getting JSON data from file il y a 1 an
thread.php 500ce578e9 Refactor getting JSON data from file il y a 1 an

README.org

cudan

Yet another textboard engine.

Goal:

Kareha style textboard + some modern revamp.

Limitations:

Minimalist approach meaning as less dependencies as possible.

Disclaimer:

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.

Features:

  • inspired by good old Kareha:
  • thread based structure
  • thread index, thread list, thread subback
  • sage, nonoko, nonokosage
  • tripcode
  • Atom feed
  • innovation:
  • tags (defined by admin, feed can be filtered by tags)
  • subback: board stats, download threads,
  • modernized web design (e.g. dark responsive theme, max width is not 100%)

Stack:

PHP8, XHTML5, vanilla JS, local JSON file as "database".

Install

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>

Legend:

čudan is "strange" in Bosnian. Credit to Ayashii world.

Advertising: This project is written completely in GNU Emacs.

License: GPLv3.