30 lines
942 B
PHP
Executable File
30 lines
942 B
PHP
Executable File
<?php
|
|
|
|
session_start();
|
|
$id_club=$_GET['id_club'];
|
|
if(isset($_SESSION['type']) and isset($_SESSION['id'])) {
|
|
unset($_SESSION['type']);
|
|
unset($_SESSION['id']);
|
|
session_destroy();
|
|
echo "Déconnexion effectuée<br />";
|
|
}
|
|
echo "redirection vers la page de consultation";
|
|
sleep(2);
|
|
redirection("consult_borne.php?id_club=$id_club");
|
|
|
|
/* Redirection vers la page indiquée en pâral */
|
|
function redirection($url) {
|
|
echo "<?xml version='1.0' encoding='ISO-8859-1'?>";
|
|
echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>";
|
|
echo "<html xmlns='http://www.w3.org/1999/xhtml'>";
|
|
echo "<head>";
|
|
echo "<meta http-equiv='content-type' content='text/html; charset=ISO-8859-1' />";
|
|
echo "<meta http-equiv='refresh' content='1; url=$url' />";
|
|
echo "</head>";
|
|
echo "<body>";
|
|
echo "<p><a href='$url'>Redirection automatique en cours</a></p>";
|
|
echo "</body></html>";
|
|
}
|
|
|
|
|
|
?>
|