<?php

require_once dirname(dirname(__FILE__)) . '/dao/PictureDAO.php';
require_once dirname(dirname(__FILE__)) . '/dao/UserDAO.php';
//error_reporting(E_ERROR | E_PARSE);
session_start();
//var_dump($_SESSION);
if (isset($_SESSION['name'])) {
    $userid = $_SESSION["userid"];
    $username = $_SESSION['username'];
    $loggedIn = true;
    $dayToDisplay = $_SESSION['dayToDisplay'];
}
$userDAO = new UserDAO();
$fbToken = $userDAO->getUserToken($userid);
$pictureDAO = new PictureDAO();
$pictures = $pictureDAO->getAllPicturesForDay($dayToDisplay);
?>

<style>
	.ui-autocomplete-loading { background: white url('images/ui-anim_basic_16x16.gif') right center no-repeat; }
	#city { width: 25em; }
</style>

<script>
var picShareOverlay = {};
picShareOverlay.fbToken = "<?php 
echo $fbToken;
?>
";