$id = "lokal" . $url;
     $ausgaben["lokal_" . $bereich . "_search"] = parser("administration-recent", '');
     if (count($dataloop["lokal_" . $bereich . "_release_recent"]) > 0 && $halt == -1) {
         $hidedata["lokal_" . $bereich . "_release_recent"]["num"] = count($dataloop["lokal_" . $bereich . "_release_recent"]);
         $dataloop["lokal_" . $bereich . "_release_recent"] = array_reverse($dataloop["lokal_" . $bereich . "_release_recent"], TRUE);
     }
     // berechtigung checken
     if (!priv_check($url, "admin;edit")) {
         continue;
     }
     $hidedata[$bereich . "_section"] = array("heading" => "#(" . $bereich . "_heading)", "new" => "#(" . $bereich . "_new)");
 }
 // normalen content ausschliesslich spezielle bereiche durchgehen
 // * * *
 $bereich = "content";
 $buffer = find_marked_content("/", $cfg, "inhalt", array(-2, -1), array(), FALSE, array("/aktuell", "/service/fragen"));
 $dataloop[$bereich . "_edit"] = $buffer[-1];
 $dataloop[$bereich . "_release_queue"] = $buffer[-2];
 $dataloop[$bereich . "_release_wait"] = $buffer[-2];
 $toggle_fields = array("edit" => array("all", "edit;publish"), "release_queue" => array("all", "publish"), "release_wait" => array("own", "edit"), "release_recent" => array("own", "edit;publish"));
 foreach ($toggle_fields as $tog_key => $tog_value) {
     if (is_array($dataloop[$bereich . "_" . $tog_key])) {
         foreach ($dataloop[$bereich . "_" . $tog_key] as $key => $value) {
             get_chefred($value["path"]);
             if ($tog_value[0] == "own" && $value["author"] != $_SESSION["forename"] . " " . $_SESSION["surname"]) {
                 unset($dataloop[$bereich . "_" . $tog_key][$key]);
                 continue;
             }
             if (priv_check($value["path"], $tog_value[1])) {
                 // tabellen farben wechseln
                 if ($color[$bereich . "_" . $tog_key] == $cfg["wizard"]["color"]["a"]) {
     }
     // suche in freigebenen artikeln immer einblenden
     $search = $url;
     $id = $url;
     $kate = $url;
     $ausgaben[$bereich . "_search"] = parser("administration-recent", '');
     // berechtigung checken
     if (!priv_check($url, "admin;edit")) {
         continue;
     }
     $hidedata[$bereich . "_section"] = array("heading" => "#(" . $bereich . "_heading)", "new" => "#(" . $bereich . "_new)");
 }
 // normalen content ausschliesslich spezielle bereiche durchgehen
 // * * *
 $bereich = "content";
 $buffer = find_marked_content("/", $cfg, "inhalt", array(-2, -1), array(), FALSE, array("/blog"));
 $dataloop[$bereich . "_edit"] = $buffer[-1];
 $dataloop[$bereich . "_release_queue"] = $buffer[-2];
 $dataloop[$bereich . "_release_wait"] = $buffer[-2];
 $toggle_fields = array("edit" => array("all", "edit;publish"), "release_queue" => array("all", "publish"), "release_wait" => array("own", "edit"), "release_recent" => array("own", "edit;publish"));
 foreach ($toggle_fields as $tog_key => $tog_value) {
     if (is_array($dataloop[$bereich . "_" . $tog_key])) {
         foreach ($dataloop[$bereich . "_" . $tog_key] as $key => $value) {
             get_chefred($value["path"]);
             if ($tog_value[0] == "own" && $value["author"] != $_SESSION["forename"] . " " . $_SESSION["surname"]) {
                 unset($dataloop[$bereich . "_" . $tog_key][$key]);
                 continue;
             }
             if (priv_check($value["path"], $tog_value[1])) {
                 // tabellen farben wechseln
                 if ($color[$bereich . "_" . $tog_key] == $cfg["wizard"]["color"]["a"]) {
if ($reload == -1) {
    header("Location: " . $cfg["wizard"]["basis"] . "/" . implode(",", $environment["parameter"]) . ".html");
}
// + + +
if (is_array($_SESSION["content"])) {
    // page basics
    // ***
    if ($environment["parameter"][5] != "") {
        $version = " AND version=" . $environment["parameter"][5];
    } else {
        $version = "";
    }
    // freizugebene seiten finden
    //         $url = tname2path($environment["parameter"][2]);
    $url = "/";
    $buffer = find_marked_content($url, $cfg, $cfg["wizard"]["default_label"]);
    $dataloop["releases"] = $buffer[-2];
    if (count($dataloop["releases"]) > 0) {
        $hidedata["releases"] = array();
    } else {
        $hidedata["nop"] = array();
    }
    if ($environment["parameter"][4] != "" && $environment["parameter"][5] != "") {
        if ($environment["parameter"][4] == "release") {
            // ERSTER TEST FAQ-WIZARD
            // alle dazugehoerigen blogs updaten
            $blog_sql = "SELECT tname FROM " . SITETEXT . " WHERE content ~ '\\\\[KATEGORIE\\]" . tname2path($environment["parameter"][2]) . "\\\\[\\/KATEGORIE\\]' group by tname";
            $blog_result = $db->query($blog_sql);
            while ($blog_data = $db->fetch_array($blog_result, 1)) {
                // naechste nicht versteckte versions-nummer finden
                $sql = "SELECT max(version) as max_version\n                                    FROM " . SITETEXT . "\n                                    WHERE lang = '" . $environment["language"] . "'\n                                    AND label ='" . $environment["parameter"][3] . "'\n                                    AND tname ='" . $blog_data["tname"] . "'";