EternalWinter/config.php

45 lines
1.3 KiB
PHP
Executable file

<?php
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",
"forum" => "Forum",
"forum-gaming" => "Forum/Gaming",
"forum-hobby" => "Forum/Hobby",
"forum-int" => "Forum/International",
"forum-anonymous" => "Forum/Anonymous",
"search" => "Search engine",
"chat" => "Chat",
"wiki" => "Wiki",
"wiki-personal" => "Wiki/Personal",
"music" => "Music",
"anime" => "Anime",
"publicserver" => "Public server",
"Other" => "Other",
"xmpp-server" => "XMPP server",
"xmpp-muc" => "XMPP room",
"irc" => "IRC",
"matrix-room" => "Matrix room",
"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>");
}
?>