<?php session_start(); if (!isset($_SESSION["audience_id"])) { header('Location: index.php'); } else { include_once "api.php"; $audience_id = $_SESSION['audience_id']; $api = new Conducttr_API($_SESSION['audience_id']); $value = $api->get_audience_details(); if (!empty($value)) { $profile_image = $value[0]['profile_image']; $audience_first_name = $value[0]['audience_first_name']; $audience_last_name = $value[0]['audience_last_name']; $project_id = $value[0]['project_id']; } else { $profile_image = 'profiles/you.png'; $audience_first_name = 'You'; $project_id = $_SESSION['PROJECT_ID']; } } ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title> Badges </title> <meta name="mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes"> <link href="css/main_communicator.css" rel="stylesheet" type="text/css" />