Compare commits
2 commits
e47ede6bf9
...
5ae683fccd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ae683fccd | ||
|
|
b4060ece54 |
5 changed files with 5 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,4 +2,4 @@
|
|||
#*
|
||||
*.secret
|
||||
*.db
|
||||
*.ttf
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
BIN
captchafont.ttf
Normal file
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>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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue