diff --git a/code/data.db b/code/data.db index dc1940c..9050313 100644 Binary files a/code/data.db and b/code/data.db differ diff --git a/code/ress/button_survie_15.png b/code/ress/button_survie_15.png new file mode 100644 index 0000000..3141a04 Binary files /dev/null and b/code/ress/button_survie_15.png differ diff --git a/code/ress/button_survie_30.png b/code/ress/button_survie_30.png new file mode 100644 index 0000000..f5bc904 Binary files /dev/null and b/code/ress/button_survie_30.png differ diff --git a/code/ress/button_survie_45.png b/code/ress/button_survie_45.png new file mode 100644 index 0000000..5a50af7 Binary files /dev/null and b/code/ress/button_survie_45.png differ diff --git a/code/score.php b/code/score.php index 5376660..97d2763 100644 --- a/code/score.php +++ b/code/score.php @@ -12,11 +12,12 @@ $database = new SQLite3("data.db"); if(stristr($_GET['mode'], "p") === FALSE) { $sql='select max(points) from scores where mode="'.$_GET['mode'].'" and diff="'.$_GET['diff'].'"'; - //$sql='select max(points) from score where game_mode=' + //$sql='select max(points) from score where game_mode='.$_GET['mode'].'" and difficulty="'.$_GET['diff'].'" and dots_amount='.getCookie("dotsAmount").' and pause='.getCookie("pause"); } else { $sql='select min(points) from scores where mode="'.$_GET['mode'].'" and diff="'.$_GET['diff'].'"'; + //$sql='select max(points) from score where game_mode='.$_GET['mode'].'" and difficulty="'.$_GET['diff'].'" and dots_amount='.getCookie("dotsAmount").' and pause='.getCookie("pause"); } $result = $database->query($sql);