function __autoload($name) { include_once "../../../models/Classes/{$name}.class.php"; } $profil = new Profil(0, $_SESSION['tiary']['login'], $_SESSION['tiary']['password']); $diary = new IntimCalendar(); $date = date("j. n. Y"); if (isset($_GET['timestamp']) && $_GET['timestamp'] != 0) { $date = date("j. n. Y", $_GET['timestamp']); } $temperature = "36.0"; $err = array(); $blood = 0; $menstruace = 0; $timestampEntry = 0; $temperatureSelect = $diary->getLastTemperatur($profil->getId()); $temperatureINPUT = 0; $saved = 0; $factors = ""; $phlegm = ""; $suppository = ""; $comment = ""; $ovulation = 0; if (isset($_GET['date'])) { /** * DATUM */ $time = $_GET['date']; $time = str_replace(",", ".", $time); $time = str_replace("-", ".", $time); $time = explode(".", $time);
$previousDate = "last year"; break; default: $today = strtotime("last monday", $today); $plus = "+8 days"; $nextDate = "+8 days"; $previousDate = "monday"; $num = 7; break; } $today_const = $today; $next = strtotime($plus, $today); $nextDate = strtotime($nextDate, $today); $previousDate = strtotime($previousDate, $today); $entries = new IntimCalendar(); $temperatureSelect = $entries->getLastTemperatur($profil->getId()); $entriesAll = $entries->getEntries($today, $next, $profil->getId()); $thisWeek = strtotime("+8 days", $today); $howLongBetweenMenstruation = $entries->howLongBetweenMenstruation($profil->getId()); $howLongMenstruation = $entries->howLongMenstruation($profil->getId()); $lastMenstruation = $entries->getLastMenstruation($profil->getId()); $lastOvulation = $entries->getLastOvulation($profil->getId()); $predictionTerm = 6; //IMAGE $First_day_of_menstraution_img = $entries->getAllFirstDayMenstruation($profil->getId()); //IMAGE end if ($term == "month") { $month['monthNum'] = date("n", $today); $month['month'] = $mesic[$month['monthNum'] - 1] . ' ' . date("Y", $today); if ($month['monthNum'] == 1) { $month['month-1'] = $mesic[11];