* Produit une variable globale nommée '$le_participant'.\r
*/
\r
-include_once("config.php");
+include_once("config_bd.php");
include_once("class_participant.php");\r
$lien_mysql = mysql_connect($SQL_HOTE, $SQL_LOGIN, $SQL_PASS);
if (isset($_POST['effacer_cookie'])) # le membre se délogue
{
- setcookie("COOKIE_INFO_PATICIPANT", "", time() - 100); #'efface' le cookie membre
+ setcookie("COOKIE_INFO_PATICIPANT", "", time() - 100); # 'efface' le cookie membre
unset($HTTP_COOKIE_VARS["COOKIE_INFO_PATICIPANT"]);
unset($log);
}
if (isset($_POST['log'])) # le membre se logue
{
- $le_participant = new Participant($pseudo, $password);
+ $le_participant = new Participant($_POST['pseudo'], $_POST['password']);
if ($le_participant->valide)
{
setcookie ("COOKIE_INFO_PATICIPANT", $le_participant->info->id, time() + 31104000);