PHP site-sharing script
| css | ||
| .gitignore | ||
| attribution.md | ||
| banner.webp | ||
| captcha.php | ||
| common.php | ||
| config.php | ||
| favicon.ico | ||
| index.php | ||
| manage.php | ||
| pagination.php | ||
| password.sh | ||
| random.php | ||
| README.md | ||
| rules.php | ||
| submit.php | ||
PHP scripts for a site-sharing website
Live demo: https://eternalwinter.xmpub.org/ Needs php imagemagick & sqlite modules.
Installation
git clone https://git.xmpub.org/xmpub/EternalWintermkdir secrets- Make sure the directory is writable by the web server.
chown -R www-data:www-data EternalWinter - Run
./password.sh <password>to generate the moderation password's hash. - Put a ttf font in the directory and name it
captchafont.ttf - Edit
config.phpto customize. - To moderate, visit a url and add
?manage=<your password>to the end of the url IMPORTANT: You need to add a line to your server configuration to block/secrets/since it contains sensitive data like the database and your password hash. - nginx:
location /secrets/ {
return 404;
}