function getBagLoadSeason()
{
    $bagLoadSeason = $_SESSION["bag_check_season"];
    if (!isset($bagLoadSeason)) {
        $bagLoadSeason = getSeasonByYear("2012");
        var_dump("New Season");
        var_dump($bagLoadSeason);
    }
    $_SESSION["bag_check_season"] = $bagLoadSeason;
    return $bagLoadSeason;
}
function baselineHarvestData($baselineYear)
{
    $season = getSeasonByYear($baselineYear);
    echo "<h1>Remove hunts from report tables for this season.</h1>";
    flush();
    // Get all Hunt report data for this season
    $allHuntReports = getAllHuntReportsForASeason($baselineYear);
    if (isset($allHuntReports)) {
        // Remove all harvest counts for the hunts for this season.
        $numberOfHuntCountsRemoved = removeAllBaselineCounts($allHuntReports);
        echo $numberOfHuntCountsRemoved . " Hunt Counts Removed!<br>";
        // Remove all the hunts for this season.
        $numberOfHuntsRemoved = removeAllHuntReportsForASeason($season);
        echo $numberOfHuntsRemoved . " Hunts Removed!<br>";
    } else {
        echo "<br/><br/>No HuntReports for the Season.</p>";
    }
    echo "<h1>Process hunt versions for this season.</h1>";
    flush();
    $huntsForAYear = getSeasonHunts($season);
    echo count($huntsForAYear) . " Hunts with any hunt date within the season<br>";
    flush();
    // Find the final state of each hunt.
    $currentHuntDetailsList = getCurrentHuntDetailsList($huntsForAYear);
    echo count($currentHuntDetailsList) . " Hunts that are not deleted<br>";
    flush();
    $inSeasonHunts = 0;
    foreach ($currentHuntDetailsList as $oneHuntDetails) {
        if (withinSeason($oneHuntDetails, $season)) {
            $inSeasonHunts++;
            //echo("In Season Hunt Details");
            //print_r($oneHuntDetails);
            //echo("<br>");
            // Insert hunt report
            $newHuntReportId = saveNewHuntReportFromHuntDetails($baselineYear, $oneHuntDetails);
            $countList = getHarvetsListByHuntDetailsId($oneHuntDetails->getId());
            foreach ($countList as $oneCount) {
                saveNewHuntCountReport($newHuntReportId, $oneCount);
            }
        }
    }
    echo $inSeasonHunts . " Hunts that are not deleted and are in season<br>";
    flush();
}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bag Load</title>
<link href="AdminCSS.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="../">Piute Ponds Home Page</a>
<br>
<a href="admin_home.php">Admin Home Page</a>
<h1>Bag Load</h1>
This is the bag load home page.

<?php 
$speciesList = getAllSpecies();
$season = getSeasonByYear("2011");
$huntList = getHuntsForASeason($season);
?>

<h2><?php 
echo $season->getYearStart();
?>
</h2>
<h2><?php 
echo count($huntList);
?>
</h2>

<table border="1">
  <tr>
      <th>&nbsp;</th>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hunt Season Report</title>
<link href="season_report.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="../">Piute Ponds Home Page</a>
<br>
<a href="admin_home.php">Admin Home Page</a>
<h1 class="report_title">Hunt List for Reports</h1>
<p class="page_desc">This is the harvest report for 2011</p>

<?php 
$targetYear = $_POST['target_year'];
$season = getSeasonByYear($targetYear);
$reportHuntDates = getHuntDatesList($season);
$huntDateCount = count($reportHuntDates);
$reportHuntSeasonSpeciesIds = getReportHuntSeasonSpecies();
$huntSpeciesCount = count($reportHuntSeasonSpeciesIds);
$speciesCountTotalArray = array();
?>

<table class="report_table">
  <tr>
     <th class="report_table_title" colspan="<?php 
echo $huntSpeciesCount + 4;
?>
"><?php 
echo $season->getSeasonTitle();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php 
include_once 'php/piute_includes.php';
session_start();
redirectIfNotInRole('hunter', '../not-allowed.php');
$season = getSeasonByYear('2015');
$duckCountList = getAnonymousHarvestCountsForASeason($season);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Piute Ponds Hunting</title>

<link href="PiuteMasterCSS.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style15 {
	color: #FF0000;
	font-size: 18pt;
	font-style: italic;
}
.style16 {font-size: 24pt}
.style18 {color: #FF0000}
-->
</style>
<div id="apDiv2"><img src="images/Piute_Background_Image.jpg" width="720" height="778" alt="PiutePonds-Background_Image" /></div><!-- #BeginLibraryItem "/Library/Welcome-Box.lbi" --><div id="login"><span class="style9" id="heading1">
  <?php 
if (showLoginBanner()) {
    $userInfo = getCurrentUserInfo();
    if (isset($userInfo) && $userInfo->isLoggedIn() == true) {
        displayWelcomeBack($userInfo);
include_once 'php/piute_includes.php';
session_start();
redirectIfNotInRole('hunter', '../not-allowed.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Piute Ponds Duck Blind List</title>
<link href="DuckBlindCSS.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php 
$blindYear = $_REQUEST['year'];
$blindList = getAllBlindsByYear($blindYear);
$season = getSeasonByYear($blindYear);
?>

<h1>Duck Blind List for <?php 
echo $season->getSeasonTitle();
?>
</h1>

<table class="duck_blind_list">
  <tr class="duck_blind_list">
      <th class="duck_blind_list">Blind</th>
      <th class="duck_blind_list">Name</th>
      <th class="duck_blind_list">Home Phone</th>
      <th class="duck_blind_list">Work Phone</th>
  </tr>
  <?php