print_header($day, $month, $year, $type_session); echo '<h1>' . get_vocab("noareas") . '</h1>'; echo '<a href="./admin/admin_accueil.php">' . get_vocab("admin") . '</a>' . PHP_EOL . '</body>' . PHP_EOL . '</html>'; exit; } print_header($day, $month, $year, $type_session); if (authGetUserLevel(getUserName(), -1) < 1 && $settings->get("authentification_obli") == 1) { showAccessDenied($back); exit; } if (authUserAccesArea(getUserName(), $area) == 0) { showAccessDenied($back); exit; } if (check_begin_end_bookings($day, $month, $year)) { showNoBookings($day, $month, $year, $back); exit; } if ($settings->get("verif_reservation_auto") == 0) { verify_confirm_reservation(); verify_retard_reservation(); } $ind = 1; $test = 0; $i = 0; while ($test == 0 && $ind <= 7) { $i = mktime(0, 0, 0, $month, $day - $ind, $year); $test = $display_day[date("w", $i)]; $ind++; } $yy = date("Y", $i);
} } $to_month = date('m', $date_); $to_year = date('Y', $date_); } if (Settings::get("authentification_obli") == 0 && getUserName() == '') { $type_session = "no_session"; } else { $type_session = "with_session"; } $back = ''; if (isset($_SERVER['HTTP_REFERER'])) { $back = htmlspecialchars($_SERVER['HTTP_REFERER']); } if (check_begin_end_bookings($day, $from_month, $from_year)) { showNoBookings($day, $from_month, $from_year, $back); exit; } if (authGetUserLevel(getUserName(), -1) < 1 && Settings::get("authentification_obli") == 1 || authUserAccesArea(getUserName(), $area) == 0) { showAccessDenied($back); exit; } // On vérifie une fois par jour si le délai de confirmation des réservations est dépassé // Si oui, les réservations concernées sont supprimées et un mail automatique est envoyé. // On vérifie une fois par jour que les ressources ont été rendue en fin de réservation // Si non, une notification email est envoyée if (Settings::get("verif_reservation_auto") == 0) { verify_confirm_reservation(); verify_retard_reservation(); } //print the page header
} if ((getSettingValue("authentification_obli")==0) and (getUserName()=='')) { $type_session = "no_session"; } else { $type_session = "with_session"; } $back = ''; if (isset($_SERVER['HTTP_REFERER'])) $back = grr_htmlSpecialChars($_SERVER['HTTP_REFERER']); // Construction des identifiants de la ressource $room, du domaine $area, du site $id_site Definition_ressource_domaine_site(); if (check_begin_end_bookings($day, $month, $year)) { showNoBookings($day, $month, $year, $area,$back,$type_session); exit(); } if((authGetUserLevel(getUserName(),-1) < 1) and (getSettingValue("authentification_obli")==1)) { showAccessDenied($day, $month, $year, $area,$back); exit(); } if(authUserAccesArea(getUserName(), $area)==0) { showAccessDenied($day, $month, $year, $area,$back); exit(); } // Fonction de comparaison
$day = date('d'); $month = date('m'); $year = date('Y'); } get_planning_area_values($area); if (authGetUserLevel(getUserName(), -1) < 1) { showAccessDenied($back); exit; } if (check_begin_end_bookings($day, $month, $year)) { if (Settings::get('authentification_obli') == 0 && getUserName() == '') { $type_session = 'no_session'; } else { $type_session = 'with_session'; } showNoBookings($day, $month, $year, $back . '&Err=yes'); exit; } if ($type_affichage_reser == 0) { $period = isset($_GET['period']) ? $_GET['period'] : null; if (isset($period)) { settype($period, 'integer'); } $dur_units = isset($_GET['dur_units']) ? $_GET['dur_units'] : null; $all_day = isset($_GET['all_day']) ? $_GET['all_day'] : null; if ($enable_periods == 'y') { $resolution = 60; $hour = 12; $minute = $period; $max_periods = count($periods_name); if ($dur_units == 'periods' && $minute + $duration > $max_periods) {
} // Récupération des données concernant l'affichage du planning du domaine get_planning_area_values($area); if(authGetUserLevel(getUserName(),-1) < 1) { showAccessDenied($day, $month, $year, '',$back); exit(); } if (check_begin_end_bookings($day, $month, $year)) { if ((getSettingValue("authentification_obli")==0) and (getUserName()=='')) $type_session = "no_session"; else $type_session = "with_session"; showNoBookings($day, $month, $year, '', $back."&Err=yes", $type_session); exit(); } if ($type_affichage_reser == 0) { // La fin de réservation est calculée à partir d'une durée $period = isset($_GET["period"]) ? $_GET["period"] : NULL; if (isset($period)) settype($period,"integer"); $dur_units = isset($_GET["dur_units"]) ? $_GET["dur_units"] : NULL; $all_day = isset($_GET["all_day"]) ? $_GET["all_day"] : NULL; if($enable_periods=='y') { $resolution = 60; $hour = 12; $minute = $period; $max_periods = count($periods_name);
$day = date("d"); $month = date("m"); $year = date("Y"); } get_planning_area_values($area); if (authGetUserLevel(getUserName(), -1) < 1) { showAccessDenied($back); exit; } if (check_begin_end_bookings($day, $month, $year)) { if (Settings::get("authentification_obli") == 0 && getUserName() == '') { $type_session = "no_session"; } else { $type_session = "with_session"; } showNoBookings($day, $month, $year, $back . "&Err=yes"); exit; } if ($type_affichage_reser == 0) { $period = isset($_GET["period"]) ? $_GET["period"] : NULL; if (isset($period)) { settype($period, "integer"); } $dur_units = isset($_GET["dur_units"]) ? $_GET["dur_units"] : NULL; $all_day = isset($_GET["all_day"]) ? $_GET["all_day"] : NULL; if ($enable_periods == 'y') { $resolution = 60; $hour = 12; $minute = $period; $max_periods = count($periods_name); if ($dur_units == "periods" && $minute + $duration > $max_periods) {