Subversion Repositories ALCASAR

Rev

Rev 523 | Rev 533 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 523 Rev 528
Line 10... Line 10...
10
$Language = 'en';
10
$Language = 'en';
11
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
11
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
12
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
12
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
13
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
13
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
14
if($Language == 'es'){
14
if($Language == 'es'){
15
	$R_login1			= "El éxito de la autenticación.";
15
	$l_login1			= "El éxito de la autenticación.";
16
	$R_login2			= "Cierre esta ventana interrumpte la sesion.";
16
	$l_login2			= "Cierre esta ventana interrumpte la sesion.";
17
	$R_logout			= "Conexión de cierre";
17
	$l_logout			= "Conexión de cierre";
18
	$R_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
18
	$l_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
19
	$R_loggedout		= "Su sesión se cierra";
19
	$l_loggedout		= "Su sesión se cierra";
20
	$R_wait				= "Por favor, espere un momento ...";
20
	$l_wait				= "Por favor, espere un momento ...";
21
	$R_state_label				= "State";
21
	$l_state_label				= "State";		//à traduire
22
	$R_session_id_label			= "Session ID";
22
	$l_session_id_label			= "Session ID";	//à traduire
23
	$R_max_session_time_label	= "Max Session Time";
23
	$l_max_session_time_label	= "Max Session Time";	//à traduire
24
	$R_max_idle_time_label		= "Max Idle Time";
24
	$l_max_idle_time_label		= "Max Idle Time";		//à traduire
25
	$R_start_time_label			= "Start Time";
25
	$l_start_time_label			= "Start Time";	//à traduire
26
	$R_session_time_label		= "Tiempo de conexión";
26
	$l_session_time_label		= "Tiempo de conexión";
27
	$R_idle_time_label			= "Idle Time";	//à traduire
27
	$l_idle_time_label			= "Idle Time";	//à traduire
28
	$R_downloaded_label			= "Downloaded";	//à traduire
28
	$l_downloaded_label			= "Downloaded";	//à traduire
29
	$R_uploaded_label			= "Uploaded";	//à traduire
29
	$l_uploaded_label			= "Uploaded";	//à traduire
30
	$R_original_url_label		= "Original URL";	//à traduire
30
	$l_original_url_label		= "Original URL";	//à traduire
31
	$R_not_available			= "Not available";	//à traduire
31
	$l_not_available			= "Not available";	//à traduire
32
	$R_na						= "N/A";		//à traduire
32
	$l_na						= "N/A";		//à traduire
33
	$R_error					= "error";		//à traduire
33
	$l_error					= "error";		//à traduire
34
	$R_welcome					= "Welcome";	//à traduire
34
	$l_welcome					= "Welcome";	//à traduire
35
}
35
}
36
else if($Language == 'de'){
36
else if($Language == 'de'){
37
	$R_login1			= "Erfolgreiche Authentifizierung.";
37
	$l_login1			= "Erfolgreiche Authentifizierung.";
38
	$R_login2			= "Schlißen dieses fensters unterbricht die sitzung";
38
	$l_login2			= "Schlißen dieses fensters unterbricht die sitzung";
39
	$R_logout			= "Beenden der Verbindung";
39
	$l_logout			= "Beenden der Verbindung";
40
	$R_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
40
	$l_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
41
	$R_loggedout		= "Ihre Sitzung ist geschlossen";
41
	$l_loggedout		= "Ihre Sitzung ist geschlossen";
42
	$R_wait				= "Bitte warten Sie einen Moment ...";
42
	$l_wait				= "Bitte warten Sie einen Moment ...";
43
	$R_state_label				= "State";
43
	$l_state_label				= "State";		//à traduire
44
	$R_session_id_label			= "Session ID";
44
	$l_session_id_label			= "Session ID";	//à traduire
45
	$R_max_session_time_label	= "Max Session Time";
45
	$l_max_session_time_label	= "Max Session Time";	//à traduire
46
	$R_max_idle_time_label		= "Max Idle Time";
46
	$l_max_idle_time_label		= "Max Idle Time";		//à traduire
47
	$R_start_time_label			= "Start Time";
47
	$l_start_time_label			= "Start Time";	//à traduire
48
	$R_session_time_label		= "Online-zeit";
48
	$l_session_time_label		= "Online-zeit";
49
	$R_idle_time_label			= "Idle Time";	//à traduire
49
	$l_idle_time_label			= "Idle Time";	//à traduire
50
	$R_downloaded_label			= "Downloaded";	//à traduire
50
	$l_downloaded_label			= "Downloaded";	//à traduire
51
	$R_uploaded_label			= "Uploaded";	//à traduire
51
	$l_uploaded_label			= "Uploaded";	//à traduire
52
	$R_original_url_label		= "Original URL";	//à traduire
52
	$l_original_url_label		= "Original URL";	//à traduire
53
	$R_not_available			= "Not available";	//à traduire
53
	$l_not_available			= "Not available";	//à traduire
54
	$R_na						= "N/A";		//à traduire
54
	$l_na						= "N/A";		//à traduire
55
	$R_error					= "error";		//à traduire
55
	$l_error					= "error";		//à traduire
56
	$R_welcome					= "Welcome"; 	//à traduire
56
	$l_welcome					= "Welcome"; 	//à traduire
57
}
57
}
58
else if($Language == 'nl'){
58
else if($Language == 'nl'){
59
	$R_login1			= "Succesvolle authenticatie.";
59
	$l_login1			= "Succesvolle authenticatie.";
60
	$R_login2			= "Dit venster te sluiten onderbreekt uw sessie.";
60
	$l_login2			= "Dit venster te sluiten onderbreekt uw sessie.";
61
	$R_logout			= "Slotkoers verbinding";
61
	$l_logout			= "Slotkoers verbinding";
62
	$R_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
62
	$l_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
63
	$R_loggedout		= "Uw sessie is gesloten";
63
	$l_loggedout		= "Uw sessie is gesloten";
64
	$R_wait				= "Wacht een moment ...";
64
	$l_wait				= "Wacht een moment ...";
65
	$R_state_label				= "State";
65
	$l_state_label				= "State";		//à traduire
66
	$R_session_id_label			= "Session ID";
66
	$l_session_id_label			= "Session ID";	//à traduire
67
	$R_max_session_time_label	= "Max Session Time";
67
	$l_max_session_time_label	= "Max Session Time";	//à traduire
68
	$R_max_idle_time_label		= "Max Idle Time";
68
	$l_max_idle_time_label		= "Max Idle Time";		//à traduire
69
	$R_start_time_label			= "Start Time";
69
	$l_start_time_label			= "Start Time";	//à traduire
70
	$R_session_time_label		= "Online tijd";
70
	$l_session_time_label		= "Online tijd";
71
	$R_idle_time_label			= "Idle Time";	//à traduire
71
	$l_idle_time_label			= "Idle Time";	//à traduire
72
	$R_downloaded_label			= "Downloaded";	//à traduire
72
	$l_downloaded_label			= "Downloaded";	//à traduire
73
	$R_uploaded_label			= "Uploaded";	//à traduire
73
	$l_uploaded_label			= "Uploaded";	//à traduire
74
	$R_original_url_label		= "Original URL";	//à traduire
74
	$l_original_url_label		= "Original URL";	//à traduire
75
	$R_not_available			= "Not available";	//à traduire
75
	$l_not_available			= "Not available";	//à traduire
76
	$R_na						= "N/A";		//à traduire
76
	$l_na						= "N/A";		//à traduire
77
	$R_error					= "error";		//à traduire
77
	$l_error					= "error";		//à traduire
78
	$R_welcome					= "Welcome";	//à traduire
78
	$l_welcome					= "Welcome";	//à traduire
79
}
79
}
80
else if($Language == 'fr'){
80
else if($Language == 'fr'){
81
	$R_login1			= "Authentification réussie.";
81
	$l_login1			= "Authentification réussie.";
82
	$R_login2			= "La fermeture de cette fenêtre interrompt votre session.";
82
	$l_login2			= "La fermeture de cette fenêtre interrompt votre session.";
83
	$R_logout			= "Fermeture de la session";
83
	$l_logout			= "Fermeture de la session";
84
	$R_logout_question	= "Etes vous sûre de vouloir vous déconnecter?";
84
	$l_logout_question	= "Etes vous sûre de vouloir vous déconnecter?";
85
	$R_loggedout		= "Votre session est fermée";
85
	$l_loggedout		= "Votre session est fermée";
86
	$R_wait				= "Patientez un instant ....";
86
	$l_wait				= "Patientez un instant ....";
87
	$R_state_label				= "Etat";
87
	$l_state_label				= "Etat";
88
	$R_session_id_label			= "Session ID";
88
	$l_session_id_label			= "Session ID";
89
	$R_max_session_time_label	= "Temps de connexion autoris&eacute";
89
	$l_max_session_time_label	= "Temps de connexion autoris&eacute";
90
	$R_max_idle_time_label		= "Inactivité max. autorisée";
90
	$l_max_idle_time_label		= "Inactivité max. autorisée";
91
	$R_start_time_label			= "Début de connexion";
91
	$l_start_time_label			= "Début de connexion";
92
	$R_session_time_label		= "Durée de connexion";
92
	$l_session_time_label		= "Durée de connexion";
93
	$R_idle_time_label			= "Inactivité";
93
	$l_idle_time_label			= "Inactivité";
94
	$R_downloaded_label			= "Données téléchargées";
94
	$l_downloaded_label			= "Données téléchargées";
95
	$R_uploaded_label			= "Données envoyées";
95
	$l_uploaded_label			= "Données envoyées";
96
	$R_original_url_label		= "URL demandé";
96
	$l_original_url_label		= "URL demandé";
97
	$R_not_available			= "Not available";	//à traduire
97
	$l_not_available			= "Non disponible";
98
	$R_na						= "N/A";	//à traduire
98
	$l_na						= "N/D";	//à traduire
99
	$R_error					= "erreur";
99
	$l_error					= "erreur";
100
	$R_welcome					= "Bienvenue";
100
	$l_welcome					= "Bienvenue";
101
}
101
}
102
else {
102
else {
103
	$R_login1			= "Successful authentication.";
103
	$l_login1			= "Successful authentication.";
104
	$R_login2			= "Closing this window interrupts your session.";
104
	$l_login2			= "Closing this window interrupts your session.";
105
	$R_logout			= "Closing connection";
105
	$l_logout			= "Closing connection";
106
	$R_logout_question	= "Are you sure you want to disconnect now?";
106
	$l_logout_question	= "Are you sure you want to disconnect now?";
107
	$R_loggedout		= "Your session is closed";
107
	$l_loggedout		= "Your session is closed";
108
	$R_wait				= "Please wait a moment ...";
108
	$l_wait				= "Please wait a moment ...";
109
	$R_state_label				= "State";
109
	$l_state_label				= "State";
110
	$R_session_id_label			= "Session ID";
110
	$l_session_id_label			= "Session ID";
111
	$R_max_session_time_label	= "Max Session Time";
111
	$l_max_session_time_label	= "Max Session Time";
112
	$R_max_idle_time_label		= "Max Idle Time";
112
	$l_max_idle_time_label		= "Max Idle Time";
113
	$R_start_time_label			= "Start Time";
113
	$l_start_time_label			= "Start Time";
114
	$R_session_time_label		= "Session Time";
114
	$l_session_time_label		= "Session Time";
115
	$R_idle_time_label			= "Idle Time";
115
	$l_idle_time_label			= "Idle Time";
116
	$R_downloaded_label			= "Downloaded";
116
	$l_downloaded_label			= "Downloaded";
117
	$R_uploaded_label			= "Uploaded";
117
	$l_uploaded_label			= "Uploaded";
118
	$R_original_url_label		= "Original URL";
118
	$l_original_url_label		= "Original URL";
119
	$R_not_available			= "Not available";
119
	$l_not_available			= "Not available";
120
	$R_na						= "N/A";
120
	$l_na						= "N/A";
121
	$R_error					= "error";
121
	$l_error					= "error";
122
	$R_welcome					= "Welcome";
122
	$l_welcome					= "Welcome";
123
}
123
}
124
?>
124
?>
125
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
125
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
126
<html lang="fr">
126
<html lang="fr">
127
<!-- written by steweb57 -->
127
<!-- written by steweb57 -->
Line 132... Line 132...
132
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
132
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
133
<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
133
<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
134
<script type="text/javascript" src="./js/statusControler.js"></script>
134
<script type="text/javascript" src="./js/statusControler.js"></script>
135
<link type="text/css" href="./css/status.css" rel="stylesheet">
135
<link type="text/css" href="./css/status.css" rel="stylesheet">
136
<script language="JavaScript">
136
<script language="JavaScript">
-
 
137
	if (typeof isloggedout = 'undefined') isloggedout = true;
-
 
138
	
137
	function closePopup(){
139
	function closePopup(){
138
		this.focus();
140
		this.focus();
139
		self.opener=this;
141
		self.opener=this;
140
		self.close();
142
		self.close();
141
	}
143
	}
142
 
-
 
143
	var isloggedout = false;
-
 
144
 
-
 
145
  	function alcasarLogoff(){
144
  	function alcasarLogoff(){
146
	//pb sous Safari et Opera (OnbeforeUnload)
145
	//pb sous Safari et Opera (OnbeforeUnload)
147
		if (isloggedout === false){
146
		if (isloggedout === false){
148
	  		chilliClock.stop();
147
	  		chilliClock.stop();
149
			chilliController.logoff();
148
			chilliController.logoff();
150
			showWaitPage(5000);	
149
			showWaitPage(5000);	
151
			alert("<?php echo $R_loggedout; ?>");
150
			alert("<?php echo $l_loggedout; ?>");
152
		}
151
		}
153
		isloggedout = true;
152
		isloggedout = true;
154
	}
153
	}
155
	function logout() {
154
	function logout() {
156
		alcasarLogoff();
155
		alcasarLogoff();
157
		window.setTimeout("closePopup()",1000);
156
		window.setTimeout("closePopup()",1000);
158
	}
157
	}
159
	function logoutWithConfirmation(msg) {//"Are you sure you want to disconnect now?"
158
	function logoutWithConfirmation(msg) {
160
		if (confirm(msg)) {
159
		if (confirm(msg)) {
161
			logout();
160
			logout();
162
		}
161
		}
163
		return false;
162
		return false;
164
	}
163
	}
Line 171... Line 170...
171
<div id="loggedOutPage" class="c1">
170
<div id="loggedOutPage" class="c1">
172
<table id="disconnectTable">
171
<table id="disconnectTable">
173
<tr>
172
<tr>
174
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
173
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
175
<td>
174
<td>
176
<p class="text_auth"><?php echo $R_loggedout; ?></p>
175
<p class="text_auth"><?php echo $l_loggedout; ?></p>
177
</td>
176
</td>
178
</tr>
177
</tr>
179
</table>
178
</table>
180
</div>
179
</div>
181
<div id="statusPage" class="c1">
180
<div id="statusPage" class="c1">
182
<table border="0" id="statusTable"><!-- style="padding-top:4px;font-size:70%" -->
181
<table border="0" id="statusTable"><!-- style="padding-top:4px;font-size:70%" -->
183
<tr>
182
<tr>
184
<td rowspan="2" valign="top"><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
183
<td rowspan="2" valign="top"><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
185
<td>
184
<td>
186
<p class="text_auth"><?php echo $R_welcome; ?> <span id="userName"></span>.</p>
185
<p class="text_auth"><?php echo $l_welcome; ?> <span id="userName"></span>.</p>
187
<p class="text_auth"><?php echo $R_login1; ?></p>
186
<p class="text_auth"><?php echo $l_login1; ?></p>
188
<hr>
187
<hr>
189
<?php echo $R_login2; ?></td>
188
<?php echo $l_login2; ?></td>
190
</tr>
189
</tr>
191
<tr>
190
<tr>
192
<td align="center"><br>
191
<td align="center"><br>
193
<a href="#" onclick="return logoutWithConfirmation('<?php echo $R_logout_question;?>');" class="lien_deco"><?php echo $R_logout; ?></a><br>
192
<a href="#" onclick="return logoutWithConfirmation('<?php echo $l_logout_question;?>');" class="lien_deco"><?php echo $l_logout; ?></a><br>
194
<br></td>
193
<br></td>
195
</tr>
194
</tr>
196
<!--tr id="connectRow">
195
<!--tr id="connectRow">
197
<td id="statusMessageLabel" class="chilliLabel"><strong><?php echo $R_state_label; ?></strong></td>
196
<td id="statusMessageLabel" class="chilliLabel"><strong><?php echo $l_state_label; ?></strong></td>
198
<td id="statusMessage" class="chilliValue">Connected</td>
197
<td id="statusMessage" class="chilliValue">Connected</td>
199
</tr-->
198
</tr-->
200
<!--tr id="sessionIdRow">
199
<!--tr id="sessionIdRow">
201
<td id="sessionIdLabel" class="chilliLabel"><strong><?php echo $R_session_id_label; ?></strong></td>
200
<td id="sessionIdLabel" class="chilliLabel"><strong><?php echo $l_session_id_label; ?></strong></td>
202
<td id="sessionId" class="chilliValue"><?php echo $R_not_available; ?></td>
201
<td id="sessionId" class="chilliValue"><?php echo $l_not_available; ?></td>
203
</tr-->
202
</tr-->
204
<tr id="sessionTimeoutRow">
203
<tr id="sessionTimeoutRow">
205
<td id="sessionTimeoutLabel" class="chilliLabel"><strong><?php echo $R_max_session_time_label; ?></strong></td>
204
<td id="sessionTimeoutLabel" class="chilliLabel"><strong><?php echo $l_max_session_time_label; ?></strong></td>
206
<td id="sessionTimeout" class="chilliValue"><?php echo $R_not_available; ?></td>
205
<td id="sessionTimeout" class="chilliValue"><?php echo $l_not_available; ?></td>
207
</tr>
206
</tr>
208
<tr id="idleTimeoutRow">
207
<tr id="idleTimeoutRow">
209
<td id="idleTimeoutLabel" class="chilliLabel"><strong><?php echo $R_max_idle_time_label; ?></strong></td>
208
<td id="idleTimeoutLabel" class="chilliLabel"><strong><?php echo $l_max_idle_time_label; ?></strong></td>
210
<td id="idleTimeout" class="chilliValue"><?php echo $R_not_available; ?></td>
209
<td id="idleTimeout" class="chilliValue"><?php echo $l_not_available; ?></td>
211
</tr>
210
</tr>
212
<tr id="startTimeRow">
211
<tr id="startTimeRow">
213
<td id="startTimeLabel" class="chilliLabel"><strong><?php echo $R_start_time_label; ?></strong></td>
212
<td id="startTimeLabel" class="chilliLabel"><strong><?php echo $l_start_time_label; ?></strong></td>
214
<td id="startTime" class="chilliValue"><?php echo $R_not_available; ?></td>
213
<td id="startTime" class="chilliValue"><?php echo $l_not_available; ?></td>
215
</tr>
214
</tr>
216
<tr id="sessionTimeRow">
215
<tr id="sessionTimeRow">
217
<td id="sessionTimeLabel" class="chilliLabel"><strong><?php echo $R_session_time_label; ?></strong></td>
216
<td id="sessionTimeLabel" class="chilliLabel"><strong><?php echo $l_session_time_label; ?></strong></td>
218
<td id="sessionTime" class="chilliValue"><?php echo $R_not_available; ?></td>
217
<td id="sessionTime" class="chilliValue"><?php echo $l_not_available; ?></td>
219
</tr>
218
</tr>
220
<tr id="idleTimeRow">
219
<tr id="idleTimeRow">
221
<td id="idleTimeLabel" class="chilliLabel"><strong><?php echo $R_idle_time_label; ?></strong></td>
220
<td id="idleTimeLabel" class="chilliLabel"><strong><?php echo $l_idle_time_label; ?></strong></td>
222
<td id="idleTime" class="chilliValue"><?php echo $R_not_available; ?></td>
221
<td id="idleTime" class="chilliValue"><?php echo $l_not_available; ?></td>
223
</tr>
222
</tr>
224
<tr id="inputOctetsRow">
223
<tr id="inputOctetsRow">
225
<td id="inputOctetsLabel" class="chilliLabel"><strong><?php echo $R_downloaded_label; ?></strong></td>
224
<td id="inputOctetsLabel" class="chilliLabel"><strong><?php echo $l_downloaded_label; ?></strong></td>
226
<td id="inputOctets" class="chilliValue"><?php echo $R_na; ?></td>
225
<td id="inputOctets" class="chilliValue"><?php echo $l_na; ?></td>
227
</tr>
226
</tr>
228
<tr id="outputOctetsRow">
227
<tr id="outputOctetsRow">
229
<td id="outputOctetsLabel" class="chilliLabel"><strong><?php echo $R_uploaded_label; ?></strong></td>
228
<td id="outputOctetsLabel" class="chilliLabel"><strong><?php echo $l_uploaded_label; ?></strong></td>
230
<td id="outputOctets" class="chilliValue"><?php echo $R_na; ?></td>
229
<td id="outputOctets" class="chilliValue"><?php echo $l_na; ?></td>
231
</tr>
230
</tr>
232
<tr id="originalURLRow">
231
<tr id="originalURLRow">
233
<td id="originalURLLabel" class="chilliLabel"><strong><?php echo $R_original_url_label; ?></strong></td>
232
<td id="originalURLLabel" class="chilliLabel"><strong><?php echo $l_original_url_label; ?></strong></td>
234
<td id="originalURL" class="chilliValue"><?php echo $R_na; ?></td>
233
<td id="originalURL" class="chilliValue"><?php echo $l_na; ?></td>
235
</tr>
234
</tr>
236
</table>
235
</table>
237
</div>
236
</div>
238
<div id="waitPage">
237
<div id="waitPage">
239
<table id="waitTable">
238
<table id="waitTable">
240
<tr>
239
<tr>
241
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
240
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
242
<td>
241
<td>
243
<p class="text_auth"><img src="./images/wait.gif" width="16" height="16" class="wait" alt="<?php echo $R_wait; ?>"><?php echo $R_wait; ?></p>
242
<p class="text_auth"><img src="./images/wait.gif" width="16" height="16" class="wait" alt="<?php echo $l_wait; ?>"><?php echo $l_wait; ?></p>
244
</td>
243
</td>
245
</tr>
244
</tr>
246
</table>
245
</table>
247
</div>
246
</div>
248
<div id="errorPage">
247
<div id="errorPage">
249
<table id="errorTable">
248
<table id="errorTable">
250
<tr>
249
<tr>
251
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
250
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
252
<td><span id="errorMessage"><?php echo $R_error; ?></span></td>
251
<td><span id="errorMessage"><?php echo $l_error; ?></span></td>
253
</tr>
252
</tr>
254
</table>
253
</table>
255
</div>
254
</div>
256
</div>
255
</div>
257
<!--div id="debugPage" style="display:inline;">
256
<!--div id="debugPage" style="display:inline;">