get("sites", "theme", ["siteid" => getsiteid()]);
if (!file_exists(__DIR__ . "/themes/$theme/theme.json")) {
$theme = "bootstrap";
}
}
define("SITE_THEME", $theme);
$template = getpagetemplate();
if (file_exists(__DIR__ . "/themes/$theme/$template.php")) {
include __DIR__ . "/themes/$theme/$template.php";
} else {
include __DIR__ . "/themes/$theme/default.php";
}
if (isset($_GET['edit'])) {
?>