-
Notifications
You must be signed in to change notification settings - Fork 1
/
next_level.php
64 lines (54 loc) · 1.78 KB
/
next_level.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
session_start();
$_SESSION["num_livello"] = $_SESSION["num_livello"] + 1;
$_SESSION["first_time"] = "true";
$_SESSION["livello_max"] = max($_SESSION["livello_max"],$_SESSION["num_livello"]);
switch ($_SESSION["num_livello"]) {
case 2:
$_SESSION['nome_livello'] = "livello_two";
$array = array(0,26,27,32);
$_SESSION['editable_row'] = $array;
break;
case 3:
$_SESSION['nome_livello'] = "livello_three";
$array = array(0,36,37,46);
$_SESSION['editable_row'] = $array;
break;
case 4:
$_SESSION['nome_livello'] = "livello_four";
$array = array(0,23);
$_SESSION['editable_row'] = $array;
break;
case 5:
$_SESSION['nome_livello'] = "livello_five";
$array = array(0,16);
$_SESSION['editable_row'] = $array;
break;
case 6:
$_SESSION['nome_livello'] = "livello_six";
$array = array(0,18);
$_SESSION['editable_row'] = $array;
break;
case 7:
$_SESSION['nome_livello'] = "livello_seven";
$array = array(0,29);
$_SESSION['editable_row'] = $array;
break;
case 8:
$_SESSION['nome_livello'] = "livello_eight";
$array = array(0,27);
$_SESSION['editable_row'] = $array;
break;
case 9:
$_SESSION['nome_livello'] = "livello_nine";
$array = array(0,24);
$_SESSION['editable_row'] = $array;
break;
case 10:
$_SESSION['nome_livello'] = "livello_ten";
$_SESSION["vittoria"] = "true";
$array = array(0,27);
$_SESSION['editable_row'] = $array;
break;
}
?>