accesslevel != 'Admin') { header('Location: ../login.php'); exit; } $database = new Database(DB_HOST, DB_NAME, DB_USER, DB_PASS, DB_PORT, DB_SCMA); $dbconn = $database->getConn(); $maps_obj = new map_Class($dbconn, $_SESSION['user']->id); $rows = $maps_obj->getRows(); //TODO: get directory names with new maps ?>