/
cockpit-old.php
89 lines (72 loc) · 2.11 KB
/
cockpit-old.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?
$tab_cookies = initCookie();
include_once('top.php');
include_once('functions_engine.php');
include_once('secure.php');
if ( isset($_REQUEST['refresh']) && (($_REQUEST['refresh'] == "s_public")||($_REQUEST['refresh'] == "copie_colle")) ) {
initRefresh();
} else {
$info = initCockpit($tab_cookies);
bodyCockpit($info);
}
include_once('foot.php');
function initCockpit($tab_cookies)
{
include('gps_advanced_js.php3');
$info = initVue2d($tab_cookies);
javascriptRecherchator($info);
?>
<table class='mh_tdborder' width='98%' align='center'>
<tr class='mh_tdpage'>
<td>
<table width='100%' class='cockpit' align='center'>
<tr class='mh_tdpage'>
<td width='30%' valign='top' class='options_vue'>
<? afficherOptionsVue2d($info) ?>
</td>
<td width='45%' valign='top' class='options_recherchator'>
<? afficherCockpitRecherchator() ?>
</td>
<td width='15%' align='right' valign='top' class='options_radar'>
<? afficherCockpitRadar() ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
return $info;
}
function bodyCockpit($info)
{
if ($_REQUEST['recherche'] != "")
engine_recherche($_REQUEST['recherche']);
else
afficher_vue2d($info);
}
function initCookie()
{
if (isset($_REQUEST['anim'])) $anim = $_REQUEST['anim']; else $anim = "";
if (isset($_REQUEST['trolls_disparus'])) $trolls_disparus = $_REQUEST['trolls_disparus']; else $trolls_disparus = "";
if ($anim == "non" || ($_COOKIE['ANIMATIONS'] == "") ) {
setcookie("ANIMATIONS","non",time()+365*24*3600);
$anim="non";
} elseif ($anim == "oui") {
setcookie("ANIMATIONS","oui",time()+365*24*3600);
} else {
$anim=$_COOKIE['ANIMATIONS'];
}
if ( $trolls_disparus == "oui" || ($_COOKIE['TROLLS_DISPARUS'] == "") ) {
setcookie("TROLLS_DISPARUS","oui",time()+365*24*3600);
$trolls_disparus = "oui";
} elseif ( $trolls_disparus == "non") {
setcookie("TROLLS_DISPARUS","non",time()+365*24*3600);
} else {
$trolls_disparus = $_COOKIE['TROLLS_DISPARUS'];
}
$tab_cookies["anim"] = $anim;
$tab_cookies["trolls_disparus"] = $trolls_disparus;
return $tab_cookies;
}
?>