get_group_info($conn, $_GET['id']); if (!isset($group) || empty($group)) header("Location: group.php"); } ?>
"; echo "By: ".$author_info['username']."
"; $group_members = $group_info->get_group_members($conn, $_GET['id']); if (!empty($group_members)) { $members_array = array(); foreach ($group_members as $member) { $member_info = $user_info->get_user_info($conn, $member); if (!empty($member_info['username'])) $members_array[] = $member_info['username']; } echo "Members: ".implode(", ", $members_array)."
"; } $upload_time = new DateTime($group['created_on']); echo "Created at: ".$upload_time->format('d/m/Y H:i:s T')."
"; ?> Last Modified: ".$diff->time($group['last_modified']).""; if ($_GET['mode'] == "edit") { if ($_SESSION['id'] == $group['author'] || $user_info->is_admin($conn, $_SESSION['id'])) { echo ""; ?> Update title"; ?> "; while ($image = mysqli_fetch_array($image_request)) { if (in_array($image['id'], $image_list)) { echo ""; } else { echo ""; } } echo " "; echo "Back"; } } else { if ($_SESSION['id'] == $group['author'] || $user_info->is_admin($conn, $_SESSION['id'])) { echo "Edit"; } } echo ""; } ?>