Compare commits
No commits in common. "5ae683fccd2f4724b9b824f9e757efdcd2bee88d" and "e47ede6bf9303a75e28b6d609e4046bd2bb3eb5e" have entirely different histories.
5ae683fccd
...
e47ede6bf9
5 changed files with 3 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,4 +2,4 @@
|
|||
#*
|
||||
*.secret
|
||||
*.db
|
||||
|
||||
*.ttf
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ 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.
|
||||
|
|
|
|||
|
|
@ -1,4 +1 @@
|
|||
/css/img/bg.png:
|
||||
https://commons.wikimedia.org/wiki/File:Snowflake11_2.png
|
||||
Captcha font:
|
||||
https://www.gnu.org/software/freefont/
|
||||
|
|
|
|||
BIN
captchafont.ttf
BIN
captchafont.ttf
Binary file not shown.
|
|
@ -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>" . constant("sitename") . " | 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>SiteShare | 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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue