-
Notifications
You must be signed in to change notification settings - Fork 0
/
legendPopup.php
136 lines (125 loc) · 4.27 KB
/
legendPopup.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* legendPopup.php
*
* Display legend for book colors
*
* PHP versions 4 and 5
*
* LICENSE: This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program (file license.txt);
* if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @category Display
* @author Christophe Laratte <[email protected]>
* @copyright 2003-2005 The OpenFlyers Group <[email protected]>
* @license http://www.gnu.org/licenses/gpl.html GNU-GPL License
* @version CVS: $Id: legendPopup.php,v 1.3.2.5 2007/10/03 09:35:58 claratte Exp $
* @link http://openflyers.org
* @since Sun Apr 6 2003
*/
// security constant used by others php files to test if they are called within index.php or not
define('SECURITY_CONST',1);
require_once('./conf/config.php');
// set the default include path
if (defined('PEAR_DIRECTORY') and (PEAR_DIRECTORY!='')) {
ini_set('include_path','.'.PATH_SEPARATOR.PEAR_DIRECTORY);
}
require_once('lang/'.DEFAULT_LANG.'.php'); // default language file necessary for correct initialisation of class definitions
// OF Date class based on PEAR one
require_once('classes/Date.class.php');
require_once('conf/config.php');
// pool functions
require_once('pool/functions.php');
// Serie manager class
require_once('classes/serie.class.php');
// Connection to database with initialisation of $database class
require_once('conf/connect.php'); // DataBase parameters
require_once('classes/db.class.php'); // MySQL database connector
$database=new DBAccessor(HOST,BASE,VISITOR,PASSWORD_VISITOR);
require_once('classes/userSession.class.php');
$userSession=new userSession($database);
define_global('userLang',DEFAULT_LANG);
$userSession->openLangFile($userLang);
///////////////////////////////////// HTML DISPLAY START HERE ////////////////////////////////////////////////////
$title='Légende des couleurs';
define('CLOSE_WINDOW',1);
require_once('includes/header.php');
?> </head>
<?php
if(isset($_REQUEST['hideLegendPopup'])or!($userSession->isLegendPopup()))
{
if(!$userSession->isNothingAllowed())
{
$userSession->setLegendPopup(false);
}
?>
<script type="text/javascript">
window.close();
</script>
<?php
}
else
{
?><body>
<h3><?php echo($lang['LEGEND_USED_SLOT']);?></h3>
<table class="BOOKVIEW">
<thead>
<tr>
<th> </th>
<th><?php echo($lang['LEGEND_OWNSELF']);?></th>
<th><?php echo($lang['LEGEND_OTHER']);?></th>
</tr>
</thead>
<tr class="line">
<th><?php echo($lang['ALONE']);?></th>
<td class="l"> </td>
<td class="o"> </td>
</tr>
<tr class="line">
<th><?php echo($lang['LEGEND_INSTRUCTION']);?></th>
<td class="m"> </td>
<td class="p"> </td>
</tr>
<tr class="line">
<th><?php echo($lang['LEGEND_UNFREE']);?></th>
<td colspan="2" class="q"> </td>
</tr>
</table>
<h3><?php echo($lang['LEGEND_FREE']);?></h3>
<table class="BOOKVIEW">
<thead class="line">
<tr>
<th><?php echo($lang['LEGEND_DAY']);?></th>
<th><?php echo($lang['LEGEND_TWILIGHT']);?></th>
<th><?php echo($lang['LEGEND_NIGHT']);?></th>
</tr>
</thead>
<tr class="line">
<td class="d"> </td>
<td class="t"> </td>
<td class="n"> </td>
</tr>
</table><?php
if(!$userSession->isNothingAllowed())
{
require_once('./displayClasses/requestForm.class.php');
$request=new requestForm('','','simple','legendPopup');
$request->addHidden('hideLegendPopup',true);
$request->close($lang['LEGEND_NO_MORE_DISPLAY']);
}
}
require_once('includes/footer.php');
?>