Esempio n. 1
0
        echo '<script>document.location.href="index.php"; </script>';
    }
} else {
    /*
     * Si l'utilisateur n'est pas connecté on crée
     * le formulaire de connexion modal
     */
    $site->modal_login = $controleur->retourne_formulaire_login();
}
if (isset($_GET['jeton'])) {
    $jeton = $_GET['jeton'];
    $jeton = str_replace(' ', '+', $jeton);
    $jeton_decrypt = Cryptage::mc_decrypt($jeton);
    $parametres = array();
    //echo 'JETON - '.$jeton.'<br>';
    //echo 'JETON_DECRYPT - '.$jeton_decrypt;
    foreach (explode('&', $jeton_decrypt) as $chunk) {
        $param = explode("=", $chunk);
        if ($param) {
            $parametres[urldecode($param[0])] = urldecode($param[1]);
        }
    }
    $idjeton = $parametres['jeton'];
    $user = $parametres['user'];
    $categ = $parametres['utype'];
    $date = $parametres['date'];
    $site->left_sidebar = $controleur->retourne_formulaire_reinit_mdp($idjeton, $user, $categ, $date);
} else {
    $site->left_sidebar = $controleur->retourne_formulaire_mdp_oublie();
}
$site->affiche();