Exemplo n.º 1
0
}
if (isset($_GET['Conditions'])) {
    $Weather->setConditions($_GET['Conditions']);
    $weatherCount++;
}
if (isset($_GET['ObservationDate']) && !isset($_GET['ObservationTime'])) {
    $php_errormsg = $php_errormsg . "Please set date AND Time of the observation.<br>";
    $weatherCount = 0;
}
if ((isset($_GET['Temperature']) || isset($_GET['Conditions'])) && !isset($_GET['ObservationDate'])) {
    $php_errormsg = $php_errormsg . " Please set the date and time of the observation. <br>";
    $weatherCount = 0;
}
if (!isset($user)) {
    print "<br>Resetting user object";
    $userID = $Plant->getPlantUser();
    $UserManager = new UserManager();
    $user = $UserManager->getUserByID($userID);
}
/* URW DEBUG
print " screen data was: <br>";

print ("<BR><BR><BR>Soil<BR><BR>");
var_dump ($Soil, null);

print ("<BR><BR><BR>Plant<br><br>");
var_dump ($Plant, null);

print ("<BR><BR><BR>Weather<br><br>");
var_dump($Weather, null);