|
|
@ -86,13 +86,13 @@ void global(void)
|
|
|
|
status = signup(clientID, clientPassword, cagnotte, suspended, isAdmin, &tLogClient);
|
|
|
|
status = signup(clientID, clientPassword, cagnotte, suspended, isAdmin, &tLogClient);
|
|
|
|
if(status == 0)
|
|
|
|
if(status == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("Inscription réussie.\nRetour au menu principal...\n");
|
|
|
|
printf("Inscription réussie, vous pouvez vous connecter.\nRetour au menu principal...\n");
|
|
|
|
sleep(3);
|
|
|
|
sleep(2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("Inscription échouée.\nRetour au menu principal...\n");
|
|
|
|
printf("Inscription échouée.\nRetour au menu principal...\n");
|
|
|
|
sleep(3);
|
|
|
|
sleep(2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
@ -100,6 +100,7 @@ void global(void)
|
|
|
|
//opposition();
|
|
|
|
//opposition();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
sauvegardeDonnees(tLogArticle, tLogClient, reference, weight, volume, unitPrice, clientID, clientPassword, cagnotte, isAdmin, suspended);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
case 9:
|
|
|
|
case 9:
|
|
|
|
debugMenu(reference, weight, volume, unitPrice, clientID, cagnotte, suspended, isAdmin, tLogArticle, tLogClient);
|
|
|
|
debugMenu(reference, weight, volume, unitPrice, clientID, cagnotte, suspended, isAdmin, tLogArticle, tLogClient);
|
|
|
|