PHP site-sharing script
Find a file
2025-10-13 16:49:39 -04:00
static add gnu freefont, fix nsfw css, add header function 2025-10-13 16:49:39 -04:00
.gitignore add GNU freefont 2025-10-13 14:45:33 -04:00
attribution.md add gnu freefont, fix nsfw css, add header function 2025-10-13 16:49:39 -04:00
banner.webp upload 2025-10-13 13:49:07 -04:00
captcha.php upload 2025-10-13 13:49:07 -04:00
common.php upload 2025-10-13 13:49:07 -04:00
config.php add gnu freefont, fix nsfw css, add header function 2025-10-13 16:49:39 -04:00
favicon.ico upload 2025-10-13 13:49:07 -04:00
index.php add gnu freefont, fix nsfw css, add header function 2025-10-13 16:49:39 -04:00
manage.php upload 2025-10-13 13:49:07 -04:00
pagination.php remove redundant manager check, empty secrets folder 2025-10-13 14:13:59 -04:00
password.sh upload 2025-10-13 13:49:07 -04:00
random.php upload 2025-10-13 13:49:07 -04:00
README.md add GNU freefont 2025-10-13 14:45:33 -04:00
rules.php add gnu freefont, fix nsfw css, add header function 2025-10-13 16:49:39 -04:00
submit.php add gnu freefont, fix nsfw css, add header function 2025-10-13 16:49:39 -04:00

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/EternalWinter
  • mkdir 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.
  • Edit config.php to 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;
}