= 0) { ini_set ("error_reporting", E_ALL & ~E_NOTICE & ~E_USER_NOTICE); set_error_handler(function($errno, $error){ if ( str_starts_with($error, 'Undefined array key')|| str_starts_with($error, 'Undefined variable')|| str_starts_with($error, 'Undefined global variable')|| str_starts_with($error, 'Trying to access array offset')|| str_starts_with($error, 'str_replace(): Passing null to parameter #3') ) { trigger_error($errno . $error, E_USER_NOTICE); } else { return false; } return true; }, E_WARNING | E_DEPRECATED); } else { error_reporting(E_ALL ^ E_NOTICE); } setlocale(LC_ALL, "de_DE.UTF-8"); ini_set("display_errors",1); //echo "
";print_r($_SERVER["DOCUMENT_ROOT"]);

$VIAINDEX = 1;
// $_SESSION["dir"]["root"] 					= "/var/www/vhosts/vka.de/httpdocs/vka.de";
$_SESSION["dir"]["root"] 					= str_replace("/restricted", "", $_SERVER["DOCUMENT_ROOT"]);
$_SESSION["include"]["glob"] 			= $_SESSION["dir"]["root"]."/__nfv9725h3bg__.php";
$_SESSION["include"]["functions"] = $_SESSION["dir"]["root"]."/restricted/_inc/functions.php";
$_SESSION["ext_base"]							= "http".($_SERVER["HTTPS"]?"s":null)."://".($_SERVER["HTTP_HOST"])."/";
$_SESSION["ext_base_fe"]					= "https://www.vka.de";


$_SESSION["media_dirs"]["pressemitteilung"] = "docs/0/";


require_once($_SESSION["include"]["glob"]);
require_once($_SESSION["include"]["functions"]);


$tmp = explode("|", base64_decode(substr(parse_url($_SERVER["REQUEST_URI"])["path"],1)));
array_walk($tmp,function ($tmp) use (&$QUERY) {
  if ($tmp) $QUERY[explode(":",$tmp)[0]] = explode(":",$tmp)[1];
});unset($tmp);

if (isset($_SERVER["HTTP_REFERER"])) {
  $QUERY["referer"]["backurl"] = parse_url($_SERVER["HTTP_REFERER"])["path"];
  $tmp = explode("|", base64_decode(substr($QUERY["referer"]["backurl"],1)));
  array_walk($tmp,function ($tmp) use (&$QUERY) {if($tmp) $QUERY["referer"][explode(":",$tmp)[0]] = explode(":",$tmp)[1];});unset($tmp);
}




if (empty($QUERY["inc"])) $QUERY["inc"] = "dashboard";
if (empty($_SESSION["user"])) $QUERY["inc"] = "login";
if (!file_exists($_SESSION["dir"]["root"]."/restricted/_pages/".$QUERY["inc"].".php")) {
	$js_function = "showSwal('404');";
	$QUERY["inc"] = "dashboard";
}

//z($_SESSION["user"]);

$menu = array(
	// array(
	// 	"icon"  => "dashboard",
  //   "rights" => 0,
	// 	"text" => "Dashboard",
	// 	"url"  => "/",
  //   "active" => preg_match("/^dashboard/", $QUERY["inc"])
	// ),

	array(
		"icon"  => "website",
    "rights" => 9,
		"text" => "Website",
    "active" => preg_match("/^seiten|menu|mitarbeiter/", $QUERY["inc"]),
		"url"  => array(
			array(
				"icon"  => "vertical_split",
        "rights" => 9,
				"text" => "Menüs",
        "active" => preg_match("/^menu/", $QUERY["inc"]),
				"url"  => array(
					array(
						"icon"  => "keyboard_arrow_right",
            "rights" => 9,
						"text" => "Hauptmenü",
            "active" => preg_match("/^menu-uebersicht/", $QUERY["inc"]) && preg_match("/main/", $QUERY["type"]),
						"url"  => "inc:menu-uebersicht|type:main-menu"
					),
					array(
						"icon"  => "keyboard_arrow_right",
            "rights" => 9,
						"text" => "Fußzeilenmenü",
            "active" => preg_match("/^menu-uebersicht/", $QUERY["inc"]) && preg_match("/footer/", $QUERY["type"]),
						"url"  => "inc:menu-uebersicht|type:footer"
					)
				)
			),
			array(
				"icon"  => "view_carousel",
        "rights" => 9,
				"text" => "Seiten",
        "active" => preg_match("/^seiten/", $QUERY["inc"]),
				"url"  => "inc:seiten-uebersicht",
			),
      array(
        "icon"  => "group",
        "rights" => 9,
        "text" => "Mitarbeiter",
        "active" => preg_match("/^mitarbeiter/", $QUERY["inc"]),
        "url"  => "inc:mitarbeiter-uebersicht"
      )
		)
	),
	array(
		"icon"  => "group",
    "rights" => 9,
		"text" => "Gruppenausschüsse",
		"url"  => "inc:gruppenausschuesse-uebersicht",
    "active" => preg_match("/^gruppenausschuesse/", $QUERY["inc"]),
	),
	array(
		"icon"  => "card_membership",
    "rights" => 9,
		"text" => "Mitgliedsverbände",
		"url"  => "inc:mitgliedsverbaende-uebersicht",
    "active" => preg_match("/^mitgliedsverbaende/", $QUERY["inc"]),
	),
	array(
		"icon"  => "today",
    "rights" => 9,
		"text" => "Presse/Publikationen",
    "active" => preg_match("/^content/", $QUERY["inc"]) && !preg_match("/1/", $QUERY["kategorie_id"]),
		"url"  => array(
      array(
    		"icon"  => "keyboard_arrow_right",
        "rights" => 9,
    		"text" => "Pressemitteilungen",
        "active" => preg_match("/^content/", $QUERY["inc"]) && preg_match("/6/", $QUERY["kategorie_id"]),
    		"url"  => "inc:content-uebersicht|kategorie_id:6"
    	),
      array(
    		"icon"  => "keyboard_arrow_right",
        "rights" => 9,
    		"text" => "News",
        "active" => preg_match("/^content/", $QUERY["inc"]) && preg_match("/9/", $QUERY["kategorie_id"]),
    		"url"  => "inc:content-uebersicht|kategorie_id:9"
    	),
      array(
    		"icon"  => "keyboard_arrow_right",
        "rights" => 9,
    		"text" => "VKA-Nachrichten",
        "active" => preg_match("/^content/", $QUERY["inc"]) && preg_match("/7/", $QUERY["kategorie_id"]),
    		"url"  => "inc:content-uebersicht|kategorie_id:7"
    	),
      array(
    		"icon"  => "keyboard_arrow_right",
        "rights" => 9,
    		"text" => "Tarifinfos",
        "active" => preg_match("/^content/", $QUERY["inc"]) && preg_match("/8/", $QUERY["kategorie_id"]),
    		"url"  => "inc:content-uebersicht|kategorie_id:8"
    	)
  	)
  ),
  array(
		"icon"  => "lock",
    "rights" => 5,
		"text" => "Mitgliederbereich",
    "active" => preg_match("/^uc_content|zugaenge/", $QUERY["inc"]),
		"url"  => array(
      array(
        "icon"  => "keyboard_arrow_right",
        "rights" => 5,
    		"text" => "Rundschreiben",
        "active" => preg_match("/^uc_content/", $QUERY["inc"]) && $QUERY["kategorie_id"]==1,
    		"url"  => "inc:uc_content-uebersicht|kategorie_id:1"
    	),
      array(
        "icon"  => "keyboard_arrow_right",
        "rights" => 5,
    		"text" => "Gremiensitzungen",
        "active" => preg_match("/^uc_content/", $QUERY["inc"]) && $QUERY["kategorie_id"]==10,
    		"url"  => "inc:uc_content-uebersicht|kategorie_id:10"
    	),
      array(
        "icon"  => "keyboard_arrow_right",
        "rights" => 5,
    		"text" => "Arbeitsvertragsmuster",
    		"url"  => "inc:seite-bearbeiten|id:109"
    	),
      array(
        "icon"  => "keyboard_arrow_right",
        "rights" => 5,
    		"text" => "Arbeitskampfrichtlinien",
    		"url"  => "inc:seite-bearbeiten|id:110"
    	),
      array(
        "icon"  => "fingerprint",
        "rights" => 5,
        "text" => "Zugänge",
        "active" => preg_match("/^content/", $QUERY["inc"]) && preg_match("/8/", $QUERY["kategorie_id"]),
        "url"  => "inc:zugaenge-uebersicht"
    	),
  	)
  ),

	array(
		"icon"  => "cloud_download",
    "rights" => 9,
		"text" => "Dateimanager",
		"tags" => 'data-toggle="modal" data-target="#filemanager"',
		"url"  => "#"
	)
)

?>


	
  
  
  

	
	
	
	
	
	
	

  VKA - Vereinigung der kommunalen Arbeitgeberverbände