add gnu freefont, fix nsfw css, add header function

This commit is contained in:
Your Name 2025-10-13 16:49:39 -04:00
parent 5ae683fccd
commit f114e23c4b
10 changed files with 35 additions and 22 deletions

View file

@ -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", '<small>- 🄯 <a href="https://www.xmpub.org">xmpub</a> -<br>Est. Oct 12, 2025</small>');
define("categories", array(
"blog" => "Blog",
@ -26,5 +30,16 @@ define("categories", array(
"other-nothttp" => "Other (nonhttp)"
));
function head($title=null) {
echo("<head>");
echo('<link rel="stylesheet" href="' . constant("static") . "/css/" . constant("css") . '" id="pagestyle">');
echo('<title>' . constant("sitename"));
if ($title) {
echo(" | " . $title);
}
echo("</title>");
echo("</head>");
}
?>