include "calendario.php"; include "funzioni.php"; if (!isset($Diff)) $Diff = 0; $today = getdate(); if (!isset($Year) || isset($OggiBut)) $Year = $today['year']; if (!isset($Month) || isset($OggiBut)) $Month = $today['mon']; if (!isset($Day) || isset($OggiBut)) $Day = $today['mday']; $JD = MyJDay($Day , $Month - 1, $Year ); if (isset($SumDate)) { $JD2 = $JD + $Diff; JD2Date($JD2, $Day2, $Month2, $Year2); ++$Month2; } else if (isset($DifDate)) { $JD2 = MyJDay($Day2, $Month2-1, $Year2); $Diff = $JD2 - $JD; } else if (isset($DecDay)) { --$JD; JD2Date($JD, $Day, $Month, $Year); ++$Month; } else if (isset($IncDay)) { ++$JD; JD2Date($JD, $Day, $Month, $Year); ++$Month; } else if (isset($DecDay2)) { --$JD2; JD2Date($JD2, $Day2, $Month2, $Year2); ++$Month2; } else if (isset($IncDay2)) { ++$JD2; JD2Date($JD2, $Day2, $Month2, $Year2); ++$Month2; } else { if (!isset($Year2) || isset($OggiBut2)) $Year2 = $today['year']; if (!isset($Month2) || isset($OggiBut2)) $Month2 = $today['mon']; if (!isset($Day2) || isset($OggiBut2)) $Day2 = $today['mday']; $JD2 = MyJDay($Day2, $Month2 - 1, $Year2); } ?>