diff --git a/attribution.md b/attribution.md index ef2a0b9..ea50b73 100644 --- a/attribution.md +++ b/attribution.md @@ -1,4 +1,4 @@ -/css/img/bg.png: +* /css/img/bg.png: https://commons.wikimedia.org/wiki/File:Snowflake11_2.png -Captcha font: +* /static/captchafont.ttf: https://www.gnu.org/software/freefont/ diff --git a/config.php b/config.php index b6bb010..4748a77 100755 --- a/config.php +++ b/config.php @@ -3,6 +3,10 @@ error_reporting(E_ERROR | E_PARSE); define("bannedhosts", array("google.com")); define("sitename", "Eternal Winter"); define("dbfile", "secrets/eternalwinter.db"); +define("static", "/static"); +define("banner", "banner.jpg"); +define("css", "main.css"); +define("captchafont", "captchafont.ttf"); define("footer", '- 🄯 xmpub -
Est. Oct 12, 2025
'); define("categories", array( "blog" => "Blog", @@ -26,5 +30,16 @@ define("categories", array( "other-nothttp" => "Other (nonhttp)" )); +function head($title=null) { + echo(""); + echo(''); + echo('' . constant("sitename")); + if ($title) { + echo(" | " . $title); + } + echo(""); + echo(""); +} + ?> diff --git a/index.php b/index.php index 8a7f1e6..805a6e0 100755 --- a/index.php +++ b/index.php @@ -1,13 +1,10 @@ + - - - - <?php echo constant("sitename"); ?> - -
+

lets you discover and share niche, non-corporate, hobby websites with others by submitting them to our database.
It's intended to help small forum operators, blog authors, and anyone else with a small website recieve traffic without having to market their site.

diff --git a/rules.php b/rules.php index ebb1c1e..e9c35e2 100755 --- a/rules.php +++ b/rules.php @@ -1,11 +1,8 @@ + - - - -<?php echo constant("sitename"); ?> | Rules -

Rules

diff --git a/captchafont.ttf b/static/captchafont.ttf similarity index 100% rename from captchafont.ttf rename to static/captchafont.ttf diff --git a/css/img/bg.png b/static/css/img/bg.png similarity index 100% rename from css/img/bg.png rename to static/css/img/bg.png diff --git a/css/img/paper.webp b/static/css/img/paper.webp similarity index 100% rename from css/img/paper.webp rename to static/css/img/paper.webp diff --git a/css/main.css b/static/css/main.css similarity index 92% rename from css/main.css rename to static/css/main.css index 82fc87a..a4f126c 100755 --- a/css/main.css +++ b/static/css/main.css @@ -3,7 +3,7 @@ html { font-family: "MS Gothic"; margin: auto; background-color: #a9f; - background-image: url("/css/img/bg.png"); + background-image: url("/static/css/img/bg.png"); background-size: 100px 100px; } @@ -27,7 +27,7 @@ hr { .about { background-color: lightyellow; border: 1px dashed black; - background-image: url("/css/img/paper.webp"); + background-image: url("/static/css/img/paper.webp"); background-blend-mode: multiply; margin-top: 10px; margin-bottom: 10px; @@ -74,7 +74,14 @@ td { } tr:nth-child(even) { background-color: #ffe; +.nsfw { + background-color: #f99; +} } +.nsfw { + background-color: #f99; +} + th { border-bottom: 1px solid #177; background-color: #9f9; @@ -99,9 +106,6 @@ input[type=text] { select { background-color: #fcf; } -.nsfw { - background-color: #f99; -} .selectedpage { background-color: #ef9; } diff --git a/static/img/banner.jpg b/static/img/banner.jpg new file mode 100644 index 0000000..4ff786f Binary files /dev/null and b/static/img/banner.jpg differ diff --git a/submit.php b/submit.php index 1973ca9..dcb5659 100755 --- a/submit.php +++ b/submit.php @@ -72,12 +72,12 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { die(); } } + ?> - - -<?php echo constant("sitename"); ?> | Submit - +

Submit Site