Compare commits

..

2 commits

Author SHA1 Message Date
Your Name
5ae683fccd add GNU freefont 2025-10-13 14:45:33 -04:00
Your Name
b4060ece54 remove old site name from submit message 2025-10-13 14:36:51 -04:00
5 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View file

@ -2,4 +2,4 @@
#*
*.secret
*.db
*.ttf

View file

@ -6,7 +6,6 @@ Needs php imagemagick & sqlite modules.
* `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.
* Put a ttf font in the directory and name it `captchafont.ttf`
* 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.

View file

@ -1 +1,4 @@
/css/img/bg.png:
https://commons.wikimedia.org/wiki/File:Snowflake11_2.png
Captcha font:
https://www.gnu.org/software/freefont/

BIN
captchafont.ttf Normal file

Binary file not shown.

View file

@ -64,7 +64,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
require 'common.php';
if (submitSite($name, $url, $summary, $category)) {
session_destroy();
echo("<html><head><link rel=\"stylesheet\" href=\"/css/main.css\" id=\"pagestyle\"><title>SiteShare | Success</title><body><p>Your site was submitted. Click <a href=\"/\">here</a> to go back to the homepage.</p></body></html>");
echo("<html><head><link rel=\"stylesheet\" href=\"/css/main.css\" id=\"pagestyle\"><title>" . constant("sitename") . " | Success</title><body><p>Your site was submitted. Click <a href=\"/\">here</a> to go back to the homepage.</p></body></html>");
die();
} else {
echo("Error");