-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
18 lines (15 loc) · 783 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
// Das was wir wirklich brauchen
require "load.php";
// Hier dann alles andere wie SQL-Queries und so
require "lib/rav/login.php";
require "lib/rav/signup.php";
require "lib/PHPCache/refresh.php";
if (!file_exists("cache/{$usertheme}/index.html") || (file_exists("cache/{$usertheme}/index.html") && time() - $config["cachetime"] > filemtime("cache/{$usertheme}/index.html"))) {
$examples = $conn->orderBy("RAND ()")->where("hidden", false)->get("avatars", $config["default"]["random"]);
}
// Nun bauen wir die Seite nach dem Thema
include "lib/Core/themes/{$usertheme}/part.header.php";
include "lib/Core/themes/{$usertheme}/part.menu.php";
include "lib/Core/themes/{$usertheme}/page.index.php";
include "lib/Core/themes/{$usertheme}/part.footer.php";