<?
// Inhalt laden
$adminMenu             = \DynCom\mysyde\common\classes\Adminmenu::get();
$admin_start_parameter = "";

if ($_GET["level_1"] != "") {
    $include = $adminMenu[$_GET["level_1"]]['include'];
    if (isset($adminMenu[$_GET["level_1"]]['admin_start_parameter'])) {
        $admin_start_parameter = $adminMenu[$_GET["level_1"]]['admin_start_parameter'];
    }
}

if ($_GET["level_2"] != "") {
    $include = $adminMenu[$_GET["level_1"]]['subsites'][$_GET["level_2"]]['include'];
    if (isset($adminMenu[$_GET["level_1"]]['subsites'][$_GET["level_2"]]['admin_start_parameter'])) {
        $admin_start_parameter = $adminMenu[$_GET["level_1"]]['subsites'][$_GET["level_2"]]['admin_start_parameter'];
    }
}

if (($include <> '') && (file_exists($include))) {
    require_once($include);

    if (function_exists($admin_start_parameter)) {
        $admin_start_parameter();
    }
}

?>