Initial commit

This commit is contained in:
Timon Ostertun
2020-09-19 12:56:10 +02:00
commit 139543199e
618 changed files with 128530 additions and 0 deletions

40
index.php Normal file
View File

@@ -0,0 +1,40 @@
<?php
require_once(__DIR__ . '/server/config.php');
require_once(__DIR__ . '/server/log.php');
$request = false;
if (isset($_GET['request'])) {
$request = explode('/', $_GET['request']);
}
if ($request === false) {
$request = array();
}
if (count($request) >= 1) {
$site = array_shift($request);
} else {
$site = '';
}
if ($site == '') {
$site = 'index';
}
define('LINK_PRE', SERVER_ADDR . '/');;
if (!file_exists(__DIR__ . '/content/' . $site . '.php')) {
$site = '404';
}
$sp = [
'title' => 'Regatten.net ' . $_CLASSES[BOATCLASS]['name']['de'], // This is the page title
'backbutton' => false, // Show a back button (true, false, string). If a string is given, the back button is a link to this page.
'activenav' => false, // Select which entry of bottom nav should be active (1-5). false for none
'output' => '', // This is where the site content goes
'menus' => '' // Additional menus go here
];
require_once(__DIR__ . '/content/' . $site . '.php');
require_once(__DIR__ . '/server/buildpage.php');
?>