[ "success" => [ "success" => true, "title" => "Update user informations", "info" => "Your informations have been updated!", "timer" => true, "toSrc" => true ] ], // Login sans cookie "login" => [ "success" => [ "success" => true, "title" => "Sign-in", "info" => "You are now successfully logged in!", "timer" => true, "toSrc" => false ], "fail" => [ "success" => false, "title" => "Sign-in", "info" => "You have entered bad credentials.", "timer" => true, "toSrc" => true ] ], // Login avec cookie "loginCookie" => [ "success" => [ "success" => true, "title" => "", "info" => "", "timer" => false, "toSrc" => false ], "fail" => [ "success" => false, "title" => "Auto-login", "info" => "Something wrong happened.", "timer" => true, "toSrc" => false ] ], // Log out "logout" => [ "success" => [ "success" => true, "title" => "Sign-out", "info" => "You are now logged out.", "timer" => true, "toSrc" => false ] ], // Ajout mission "missionRegister" => [ "success" => [ "success" => true, "title" => "Mandate a mission", "info" => "Mission successfully mandated.", "timer" => true, "toSrc" => true ], "fail" => [ "success" => false, "title" => "Mandate a mission", "info" => "The mission has not been mandated.", "timer" => true, "toSrc" => true ], "notConnected" => [ "success" => false, "title" => "Mandate a mission", "info" => "You must sign-in as client first.", "timer" => true, "toSrc" => false ] ], // Acceptation d'une mission "missionAccepted" => [ "success" => [ "success" => true, "title" => "Pending mission", "info" => "You have accepted the mission!", "timer" => true, "toSrc" => true ], "fail" => [ "success" => false, "title" => "Pending mission", "info" => "The mission has not been accepted.", "timer" => true, "toSrc" => true ] ], // Validation d'une mission "missionValidated" => [ "success" => [ "success" => true, "title" => "Mission update", "info" => "The mission is now marked as completed!", "timer" => true, "toSrc" => true ], "fail" => [ "success" => false, "title" => "Mandate update", "info" => "The mission has not been marked as completed.", "timer" => true, "toSrc" => true ] ], // Ajout d'un commentaire & note "missionReview" => [ "success" => [ "success" => true, "title" => "Mission review", "info" => "Your review has been sucessfully registered!", "timer" => true, "toSrc" => true ], "fail" => [ "success" => false, "title" => "Mission review", "info" => "Error, your review has not been resgistered.", "timer" => true, "toSrc" => true ] ], // Ajout utilisateur "userAdd" => [ "success" => [ "success" => true, "title" => "Sign-up", "info" => "Your account has been successfully created, you can now sign-in with.", "timer" => true, "toSrc" => false ], "fail" => [ "success" => false, "title" => "Sign-up", "info" => "We can't create an account with the given informations.", "timer" => true, "toSrc" => true ] ], // Delete utilisateur "adminDelUser" => [ "success" => [ "success" => true, "title" => "Deletion of an account", "info" => "The account is successfully delated.", "timer" => true, "toSrc" => true ], "fail" => [ "success" => false, "title" => "Deletion of an account", "info" => "The account is not delated.", "timer" => true, "toSrc" => true ] ], // Ajout categorie "adminAddJob" => [ "success" => [ "success" => true, "title" => "Add a job category", "info" => "The job category is successfully added!", "timer" => true, "toSrc" => true ], "fail" => [ "success" => false, "title" => "Add a job category", "info" => "The job category is not added.", "timer" => true, "toSrc" => true ] ], // Suppression categorie "adminDelJob" => [ "success" => [ "success" => true, "title" => "Deletion of a job category", "info" => "The job category is successfully deleted!", "timer" => true, "toSrc" => true ], "delete" => [ "success" => false, "title" => "Deletion of a job category", "info" => "The job category is not deleted.", "timer" => true, "toSrc" => true ] ], // Suppression mission "adminDelMission" => [ "success" => [ "success" => true, "title" => "Deletion of a mission", "info" => "The mission is successfully deleted!", "timer" => true, "toSrc" => true ], "delete" => [ "success" => false, "title" => "Deletion of a mission", "info" => "The mission is not deleted.", "timer" => true, "toSrc" => true ] ] ]; ?>