include_once '../functions_auth.php'; initAuth(); include_once '../secure.php'; global $HTTP_GET_VARS; if (isset($HTTP_GET_VARS['taniere']) && $HTTP_GET_VARS['taniere'] != '' && is_numeric($HTTP_GET_VARS['taniere'])) { $taniere = $HTTP_GET_VARS['taniere']; } else { header("Location: ./index.php"); } //taniere concernée $no_troll = $_SESSION['AuthTroll']; // Id du troll connecté include_once "../functions.php3"; include_once "./inc/tresor.inc.php"; include_once "./inc/fonctions.inc.php"; global $HTTP_POST_VARS; include_once '../inc_connect.php3'; foreach ($HTTP_POST_VARS as $champ => $value) { $tab = explode("_", $champ); if ($tab[0] == "res") { $result = reserver($tab[1], $HTTP_POST_VARS['no_troll']); } else { continue; } if ($result != "") { echo $result; } } include_once "../inc_disconnect.php3"; header("Location: ./affichage.php?taniere=" . $taniere);
<?php require_once "includes/fonctions.php"; session_start(); if (empty($_SESSION["login"])) { header("Location: login.php"); } $jsonData = getData("medecins"); if (isset($_POST["submit"])) { extract($_POST); extract($_SESSION); reserver($id, $medecin, $date, $heure); } ?> <!DOCTYPE html> <html lang="en"> <head> <!-- Basic Page Needs –––––––––––––––––––––––––––––––––––––––––––––––––– --> <meta charset="utf-8"> <title>Portail Web - index</title> <meta name="description" content=""> <meta name="author" content=""> <!-- Mobile Specific Metas –––––––––––––––––––––––––––––––––––––––––––––––––– --> <meta name="viewport" content="width=device-width, initial-scale=1">
<?php include "begin.php"; ?> <div class='marg'> <h1>Merci pour cet achat!</h1> <?php $places = ""; if (!isset($_GET["over"])) { $places = reserver($_COOKIE['idMatch'], $_COOKIE['nbPlaces'], $_COOKIE['place']); setcookie("placesAttribuees", $places, time() + 86400); $_COOKIE["place"] = $places; header('Location: validation.php?over=1'); } else { if (strcmp($_COOKIE["place"], 'Libre') != 0) { echo "<p>Votre/Vos numéro(s) de place(s) : " . $_COOKIE["placesAttribuees"] . "</p>"; $places = $_COOKIE["placesAttribuees"]; } else { echo "<p>Vous avez réservé " . $_COOKIE["nbPlaces"] . " place(s) en emplacement libre."; $places = "Placement libre"; } } ?> </div> <?php require 'html_table.php'; $bdd = Connect_db(); $SQL_Query = 'insert into Facture values(null)';