<?php
if(!isset($_SESSION)) { session_start(); }  
require_once("./config/datenbankanbindung.php");
# Cache-Control damit Dokument beim Zurückbutton nicht als erloschen gilt
#header("Cache-Control: max-age=900");
header('Content-Type: text/html; charset=utf-8');
$db = dbconnect();
#require_once("controller/func_rollenrechte.php");
#require_once("controller/func_get_parameter.php");
#
#$vaid = $_SESSION["userid"];
##$login_dateiname = basename($_SERVER['PHP_SELF']);
#
#
#if(!isset($_SESSION['userid'])) {
#    header("location:../controller/admin_login.php");
#}
#
#
#$sql_activity = $db->query("UPDATE admin
#                               SET last_activity = NOW()
#                             WHERE vaid = '$vaid'
#                          ");
#                          
#
#
#  $db = dbconnect();
#  $result_rechte = $db->query("SELECT count(*) Anz
#                                 FROM lg_menu_entries 
#                                WHERE lower(link) like lower('$curpage%')
#                                  AND meid IN (SELECT DISTINCT meid
#                                                 FROM lg_admin_rollen_rechte_zuord a, lg_admin_rollen_user_zuord b
#                                                WHERE a.rid = b.rid
#                                                  AND b.VAID = $vaid)");
#  $row_rechte = $result_rechte->fetch_array();
#  if($row_rechte['Anz'] > 0){
#    return true;
#    exit;
#  }else{
#    return false;
#    exit;
#  }
  

#---------------------------------------------------------------------------------------------------------------------------------------
?>
