Skip to content
Extraits de code Groupes Projets
Valider 2af96adb rédigé par vbochet's avatar vbochet
Parcourir les fichiers

Reformatage du fichier router.php, pour avoir un ensemble cohérent

parent ff72718a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!21Merge de Dev dans Master
...@@ -128,28 +128,36 @@ class Router ...@@ -128,28 +128,36 @@ class Router
else if ($parts[0] == "add_partie" && count($parts) == 1) { else if ($parts[0] == "add_partie" && count($parts) == 1) {
$result["controller"] = "Partie"; $result["controller"] = "Partie";
$result["action"] = "displayStep0"; $result["action"] = "displayStep0";
} else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "valid") { }
else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "valid") {
$result["controller"] = "Partie"; $result["controller"] = "Partie";
$result["action"] = "displayValid"; $result["action"] = "displayValid";
} else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "step1") { }
else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "step1") {
$result["controller"] = "Partie"; $result["controller"] = "Partie";
$result["action"] = "displayStep1"; $result["action"] = "displayStep1";
} else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "step2") { }
else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "step2") {
$result["controller"] = "Partie"; $result["controller"] = "Partie";
$result["action"] = "displayStep2"; $result["action"] = "displayStep2";
} else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "stepe1") { }
else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "stepe1") {
$result["controller"] = "Partie"; $result["controller"] = "Partie";
$result["action"] = "displayStepe1"; $result["action"] = "displayStepe1";
} else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "stepe2") { }
else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "stepe2") {
$result["controller"] = "Partie"; $result["controller"] = "Partie";
$result["action"] = "displayStepe2"; $result["action"] = "displayStepe2";
} else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep0") { }
else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep0") {
$result["controller"] = "Partie"; $result["controller"] = "Partie";
$result["action"] = "verifyStep0"; $result["action"] = "verifyStep0";
} else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep1") { }
else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep1") {
$result["controller"] = "Partie"; $result["controller"] = "Partie";
$result["action"] = "verifyStep1"; $result["action"] = "verifyStep1";
} else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep2") { }
else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep2") {
$result["controller"] = "Partie"; $result["controller"] = "Partie";
$result["action"] = "verifyStep2"; $result["action"] = "verifyStep2";
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter