session_start(); if (isset ($_POST["reset"]) && !(empty($_POST["reset"]))) { session_destroy(); } ?> include ("fonctions.php"); // -- RECUPERATION DES VARIABLES POSTEES --// if (isset ($_POST["etape"]) && !(empty($_POST["etape"]))) { $_SESSION["etape"] = $_POST["etape"]; }else{ $_SESSION["etape"]=1; } if (isset ($_POST["choixTheme"]) && !(empty($_POST["choixTheme"]))) { $_SESSION["theme"] = $_POST["choixTheme"]; } if (isset ($_POST["Tx"]) && !(empty($_POST["Tx"])) && isset ($_POST["Ty"]) && !(empty($_POST["Ty"]))) { $_SESSION["taillex"] = $_POST["Tx"]; $_SESSION["tailley"] = $_POST["Ty"]; for ($i = 1; $i <= $_SESSION["taillex"]; $i++) { for ($j = 1 ; $j <= $_SESSION["tailley"]; $j++) { $_SESSION["taille"][$i][$j]=rand (1, 9).".png"; } } } if (isset ($_POST["decoration"]) && !(empty($_POST["decoration"]))) { $_SESSION["decoration"] = $_POST["choixDecoration"]; } if (isset ($_POST["destination"]) && !(empty($_POST["destination"]))) { $dest = $_POST["destination"]; $dalle = $_POST["dallechange"]; $_SESSION["etape"] = $_POST["etape"]; $coord = explode ("-",$dest); $_SESSION["taille"][$coord[0]][$coord[1]] = $dalle; } unset ($_POST["choixTheme"]); unset ($_POST["Tx"]); unset ($_POST["Ty"]); unset ($_POST["choixDecoration"]); // -- FIN DE LA RECUPERATION ?>
| "); } echo (" |