23 lines
478 B
PHP
23 lines
478 B
PHP
|
<?php
|
||
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/tools/dbConnect.php';
|
||
|
session_start();
|
||
|
|
||
|
if (isset($_COOKIE['userData'])) {
|
||
|
$userDataEncoded = $_COOKIE['userData'];
|
||
|
$userData = json_decode($userDataEncoded, true); // 'true' pour obtenir un tableau associatif
|
||
|
|
||
|
$email = $userData['email'];
|
||
|
$name = $userData['name'];
|
||
|
$familyName = $userData['familyName'];
|
||
|
$role = $userData['role'];
|
||
|
}
|
||
|
|
||
|
// un utilisateur a cliqué sur le bouton "S'inscrire" d'un évènement
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
?>
|