login($_auth_login, $_auth_password); } $returnURL = $GLOBALS["racine"].stringToUrl($GLOBALS["ARRAY_MUTUELLES_MUTAME"][$user_groupe]["TITRE"]).".html"; $query = "INSERT INTO utilisateurs_mutame_connexions (umc_id, umc_utilisateur_mutame, umc_session, umc_date) ". "VALUES ('', '".$user_id."', '".session_id()."', NOW())"; mysql_query($query) or die (mysql_error()); header("Location:".$returnURL.""); exit; } mysql_free_result($result); } } else if($_REQUEST["action"] == 'deconnexion'){ $user->session_kill(); $user->session_begin(); $_SESSION = array(); unset($_COOKIE[session_name()]); session_destroy(); header("Location:".$GLOBALS["racine"]."index.html"); exit; } } // FORMULAIRE $smarty->assign("errorFormulaire", $errorFormulaire); $smarty->assign("countErrorFormulaire", count($errorFormulaire)); // POST FORMULAIRE if(isset($_REQUEST["_login"])) $smarty->assign("_login", $_REQUEST["_login"]); else $smarty->assign("_login", ""); // PAGE DISPLAY $smarty->display('index.html', $my_cache_id); // CALCUL DU TEMPS DE CHARGEMENT $finChargementPage = microtime_float(); displayChargementPage($debutChargementPage, $finChargementPage); ?>