-
Notifications
You must be signed in to change notification settings - Fork 0
/
visualizzaDettagliLivello.php
116 lines (99 loc) · 2.72 KB
/
visualizzaDettagliLivello.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
define('INCLUDE_CHECK',true);
// Those files can be included only if INCLUDE_CHECK is defined
require_once 'user_access/connect.php';
require_once 'user_access/functions.php';
require_once 'functions_campi.php';
// Starting the session
session_name('tzLogin');
// Making the cookie live for 2 weeks
session_set_cookie_params(2*7*24*60*60);
session_start();
if(!isset($_SESSION['id'])){
header("Location: index.php");
exit;
}
if(isset($_SESSION['level']) && $_SESSION['level']<9){
header("Location: index.php");
exit;
}
if(isset($_SESSION['id']) && !isset($_COOKIE['myCalcettoID']) && !isset($_SESSION['rememberMe'])){
// If you are logged in, but you don't have the tzRemember cookie (browser restart)
// and you have not checked the rememberMe checkbox:
// Destroy the session
$_SESSION = array();
session_destroy();
}
if(isset($_GET['logoff'])){
$_SESSION = array();
session_destroy();
setcookie('myCalcettoID','',-1);
setcookie('myCalcettoUSR','',-1);
header("Location: index.php");
exit;
}
$script = '';
if($_SESSION['msg'])
{
// The script below shows the sliding panel on page load
$script = '
<script type="text/javascript">
$(function(){
$("div#panel").show();
$("#toggle a").toggle();
});
</script>';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Livelli | MyCalcetto</title>
<!-- Files START-->
<?php include 'script/files.php'; ?>
<!-- Files END-->
<?php echo $script; ?>
</head>
<body>
<div style="display: none;">
<div id="output"></div>
</div>
<!-- Panel START-->
<?php include 'script/panel.php'; ?>
<!-- Panel END-->
<div class="pageContent">
<div id="main">
<div class="container">
<?php
if($_SESSION['id']) {
include 'script/menu.php';
$user = $_SESSION['id'];
?>
<h1>Dettagli Livelli Utente</h1>
</div>
<div class="container">
<ol style="font-size: 16px;" start="0">
<!-- 0 --><li>Giocatori invitati successivamente</li>
<!-- 1 --><li>Giocatori standard</li>
<!-- 2 --><li>Giocatori ospiti</li>
<!-- 3 --><li>Non usato</li>
<!-- 4 --><li>Non usato</li>
<!-- 5 --><li>Non usato</li>
<!-- 6 --><li>Non usato</li>
<!-- 7 --><li>Non usato</li>
<!-- 8 --><li>Non usato</li>
<!-- 9 --><li>Admin</li>
</ol>
<div class="clear"></div>
</div>
<?php } else { ?>
header("Location: index.php");
<?php }?>
<div class="container tutorial-info">
Powered by <strong>Mako'</strong>.
</div>
</div>
</div>
</body>
</html>