66 lines
1.4 KiB
PHP
Executable File
66 lines
1.4 KiB
PHP
Executable File
<?php
|
|
session_start();
|
|
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
|
|
if(isset($_SESSION['Admin']) and $_SESSION['Admin']==1) {
|
|
?>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="fr">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
|
|
<title>LE SERVEUR VOCAL DE RESERVATION DES SALLES DE TENNIS</title>
|
|
<link rel="stylesheet" href="style.css" type="text/css">
|
|
</head>
|
|
|
|
<body>
|
|
<div id="tout">
|
|
<?php
|
|
include("enTete.php");
|
|
include("menu.php");
|
|
echo "<div id='contenu'>";
|
|
echo "<center><h1>Ajout d'un nouveau club</h1></center><br />";
|
|
|
|
$num_fft=$_POST['num_fft'];
|
|
$type=$_POST['type'];
|
|
|
|
if($type=='corpo') {
|
|
include("fct_nouvclub_corpo.php");
|
|
}
|
|
else {
|
|
/* Passe les balises HTML */
|
|
function passeTag($file_handle) {
|
|
while($c!='>') {
|
|
$c=fgetc($file_handle);
|
|
}
|
|
|
|
}
|
|
|
|
/* Passe un élément inutile */
|
|
function passeElement($file_handle) {
|
|
while($c!='<') {
|
|
$c=fgetc($file_handle);
|
|
}
|
|
}
|
|
|
|
include("fct_nouv_club.php");
|
|
}
|
|
recup_club($num_fft);
|
|
|
|
echo "Le club a été ajouté avec succès.";
|
|
|
|
|
|
echo "<br /><br />";
|
|
|
|
include("deco_admin.php");
|
|
include("piedDePage.php");
|
|
/* sinon si la personne n'est pas autorisé la renvoyer àla page de login */
|
|
}
|
|
else
|
|
{
|
|
echo("Non autorisé - Redirection vers la page d'identification dans 2 secondes");
|
|
sleep(2);
|
|
include("admin_login.php");
|
|
}
|
|
?>
|