使用環境 ( in Docker ):
SQLite()
/home/bbs
/srv/bbs
apache2.conf
<Directory /srv/> Options Indexes FollowSymLinks #AllowOverride None AllowOverride All Require all granted </Directory>
sites-available/000-default.conf
... DocumentRoot /srv/bbs/web ...
<?php define('SITE_NAME','夢之大地'); //這個為站台名稱 define('SITE_DOMAIN','172.17.0.1'); //這邊要讓 docker 可以透過 socket/netcat/telnet 連回去 bbs 主站 (ref: index.php) //站台域名 或 ip define('WEBSITE_DOMAIN','172.24.1.51:8080'); //好讀版的網址 define('DB_PATH','/srv/bbs/count.db'); //SQLite3 file的位置 include('uaocode.php'); //這行請不用動他 ini_set('display_errors', 1); //後面三行我亂加的,我也不知道能不能除錯 ini_set('display_startup_errors', 1); error_reporting(E_ALL); ?>
htmlspecialchars()
移植 pttbbs 的 grpc+protobuf?
仿照原專案邏輯用 python/go 重寫?
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up