diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/index.php b/index.php new file mode 100644 index 0000000..8eba2fc --- /dev/null +++ b/index.php @@ -0,0 +1,15 @@ +<?php + +include "data/config.php"; +include "lib/frontend.php"; +$frontend = new frontend(); + +$images = glob("banner/*"); + +echo $frontend->load( + "home.html", + [ + "server_short_description" => htmlspecialchars(config::SERVER_SHORT_DESCRIPTION), + "banner" => $images[rand(0, count($images) - 1)] + ] +); |