<?php include 'templates/header.php'; include 'user.php'; include 'database/polls_fetch.php'; include "utilities/pollgoogle.php"; include_once 'templates/showPolls.php'; $all_groups = getGroupsByUserId(getUserIDbyUsername($_SESSION['username'])); include 'search_poll.php'; foreach ($all_groups as $group) { showPollGroupStat($group); } include 'templates/footer.php';
redirect("map-edit.php?id=" . (int) $_GET['id']); } $map = getMapById((int) $_GET['id'], (int) $user['id']); if (!$map) { redirect("map.php"); } $shapes = getShapesByMapId((int) $map['id']); $create_update = "Update"; if ($_GET['action'] == 'create') { $PAGE = "MAP_CREATE"; $create_update = "Create"; } else { $PAGE = "MAP_VIEW"; } $layers = getLayersByUserId($user['id']); $groups = getGroupsByUserId($user['id']); if (isAdmin($user)) { $projects = getProjectsByUserId($user['id']); } else { $projects = getMyProjects($user['id']); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title><?php echo $create_update; ?> Map</title>