diff --git a/.gitignore b/.gitignore index 23d26c1..0bc7dad 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ #* *.secret *.db -*.ttf + diff --git a/README.md b/README.md index b8c0088..d4cc7d4 100755 --- a/README.md +++ b/README.md @@ -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 ` 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=` 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. diff --git a/attribution.md b/attribution.md index fe6d4bb..ef2a0b9 100644 --- a/attribution.md +++ b/attribution.md @@ -1 +1,4 @@ +/css/img/bg.png: https://commons.wikimedia.org/wiki/File:Snowflake11_2.png +Captcha font: +https://www.gnu.org/software/freefont/ diff --git a/captchafont.ttf b/captchafont.ttf new file mode 100644 index 0000000..4815449 Binary files /dev/null and b/captchafont.ttf differ diff --git a/submit.php b/submit.php index 25ae2ab..1973ca9 100755 --- a/submit.php +++ b/submit.php @@ -64,7 +64,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { require 'common.php'; if (submitSite($name, $url, $summary, $category)) { session_destroy(); - echo("SiteShare | Success

Your site was submitted. Click here to go back to the homepage.

"); + echo("" . constant("sitename") . " | Success

Your site was submitted. Click here to go back to the homepage.

"); die(); } else { echo("Error");