|
|
@ -142,9 +142,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
$database = new SQLite3("data.db");
|
|
|
|
$database = new SQLite3("data.db");
|
|
|
|
|
|
|
|
|
|
|
|
//$ph = $_POST["game_mode"]."|".$_POST["difficulty"]."|".$_POST["dotsAmount"]."|".$_POST["pause"];
|
|
|
|
// echo isset($_POST["game_mode"])." ".isset($_POST["difficulty"])." ".isset($_POST["dotsAmount"])." ".isset($_POST["pause"]);
|
|
|
|
//echo "<h1 id='aya2' class='texte mode-container' >".$ph."</h1>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$toDisp=5;
|
|
|
|
$toDisp=5;
|
|
|
|
if(isset($_POST["game_mode"]) && $_POST["game_mode"]!="" && $_POST["difficulty"]!="" && $_POST["dotsAmount"]!="" && $_POST["pause"]!="")
|
|
|
|
if(isset($_POST["game_mode"]) && $_POST["game_mode"]!="" && $_POST["difficulty"]!="" && $_POST["dotsAmount"]!="" && $_POST["pause"]!="")
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -157,8 +155,8 @@ else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$db_game_mode="5p";
|
|
|
|
$db_game_mode="5p";
|
|
|
|
$db_difficulty="easy";
|
|
|
|
$db_difficulty="easy";
|
|
|
|
$db_dotsAmount=$_COOKIE["dotsAmount"];
|
|
|
|
$db_dotsAmount=(isset($_COOKIE["dotsAmount"])) ? $_COOKIE["dotsAmount"] : 4;
|
|
|
|
$db_pause=$_COOKIE["pause"];
|
|
|
|
$db_pause=(isset($_COOKIE["pause"])) ? $_COOKIE["pause"] : 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(stristr($db_game_mode, "p") === FALSE)
|
|
|
|
if(stristr($db_game_mode, "p") === FALSE)
|
|
|
@ -200,7 +198,6 @@ if(isset($_POST["game_mode"]) && $_POST["game_mode"]!="" && $_POST["difficulty"]
|
|
|
|
echo "<input type='hidden' id='pauseSel' value='".$_POST["pause"]."'/>";
|
|
|
|
echo "<input type='hidden' id='pauseSel' value='".$_POST["pause"]."'/>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<div class="mode-container">
|
|
|
|
<div class="mode-container">
|
|
|
|
<ul id="btns_play">
|
|
|
|
<ul id="btns_play">
|
|
|
|