Example #1
0
include_once "lib/database.php";
// debug($_page);
// data definition
$order = "";
$ordertype = "";
$callid = false;
$callpage = "start";
$lang = "de";
$skin = "default";
$scroll = 0;
$history = "";
// get http parameters
$httpParam = new Config();
$httpParam->set($_GET);
$httpParam->set($_POST);
$page = $httpParam->page();
// =====================================
// load page configuration
$page_obj = new Page($httpParam->get(), "start");
$page = $page_obj->page();
// debug($page_obj);
if (file_exists("page/config.php")) {
    include_once "page/config.php";
    if (file_exists("page/" . $page . "/config.php")) {
        include_once "page/" . $page . "/config.php";
    } else {
        die("Seite nicht gefunden");
    }
} else {
    die("Fehlende Seitenkonfiguration");
}