Line 13... |
Line 13... |
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 |
$R_login1 = "El éxito de la autenticación.";
|
16 |
$R_login2 = "Cierre esta ventana interrumpte la sesion.";
|
16 |
$R_login2 = "Cierre esta ventana interrumpte la sesion.";
|
17 |
$R_logout = "Conexión de cierre";
|
17 |
$R_logout = "Conexión de cierre";
|
- |
|
18 |
$R_logout_question = "Are you sure you want to disconnect now?"; //à traduire
|
18 |
$R_loggedout = "Su sesión se cierra";
|
19 |
$R_loggedout = "Su sesión se cierra";
|
19 |
$R_wait = "Por favor, espere un momento ...";
|
20 |
$R_wait = "Por favor, espere un momento ...";
|
20 |
$R_state_label = "State";
|
21 |
$R_state_label = "State";
|
21 |
$R_session_id_label = "Session ID";
|
22 |
$R_session_id_label = "Session ID";
|
22 |
$R_max_session_time_label = "Max Session Time";
|
23 |
$R_max_session_time_label = "Max Session Time";
|
23 |
$R_max_idle_time_label = "Max Idle Time";
|
24 |
$R_max_idle_time_label = "Max Idle Time";
|
24 |
$R_start_time_label = "Start Time";
|
25 |
$R_start_time_label = "Start Time";
|
25 |
$R_session_time_label = "Tiempo de conexión";
|
26 |
$R_session_time_label = "Tiempo de conexión";
|
26 |
$R_idle_time_label = "Idle Time";
|
27 |
$R_idle_time_label = "Idle Time"; //à traduire
|
27 |
$R_downloaded_label = "Downloaded";
|
28 |
$R_downloaded_label = "Downloaded"; //à traduire
|
28 |
$R_uploaded_label = "Uploaded";
|
29 |
$R_uploaded_label = "Uploaded"; //à traduire
|
29 |
$R_original_url_label = "Original URL";
|
30 |
$R_original_url_label = "Original URL"; //à traduire
|
30 |
$R_not_available = "Not available";
|
31 |
$R_not_available = "Not available"; //à traduire
|
31 |
$R_na = "N/A";
|
32 |
$R_na = "N/A"; //à traduire
|
32 |
$R_error = "error";
|
33 |
$R_error = "error"; //à traduire
|
- |
|
34 |
$R_welcome = "Welcome"; //à traduire
|
33 |
}
|
35 |
}
|
34 |
else if($Language == 'de'){
|
36 |
else if($Language == 'de'){
|
35 |
$R_login1 = "Erfolgreiche Authentifizierung.";
|
37 |
$R_login1 = "Erfolgreiche Authentifizierung.";
|
36 |
$R_login2 = "Schlißen dieses fensters unterbricht die sitzung";
|
38 |
$R_login2 = "Schlißen dieses fensters unterbricht die sitzung";
|
37 |
$R_logout = "Beenden der Verbindung";
|
39 |
$R_logout = "Beenden der Verbindung";
|
- |
|
40 |
$R_logout_question = "Are you sure you want to disconnect now?"; //à traduire
|
38 |
$R_loggedout = "Ihre Sitzung ist geschlossen";
|
41 |
$R_loggedout = "Ihre Sitzung ist geschlossen";
|
39 |
$R_wait = "Bitte warten Sie einen Moment ...";
|
42 |
$R_wait = "Bitte warten Sie einen Moment ...";
|
40 |
$R_state_label = "State";
|
43 |
$R_state_label = "State";
|
41 |
$R_session_id_label = "Session ID";
|
44 |
$R_session_id_label = "Session ID";
|
42 |
$R_max_session_time_label = "Max Session Time";
|
45 |
$R_max_session_time_label = "Max Session Time";
|
43 |
$R_max_idle_time_label = "Max Idle Time";
|
46 |
$R_max_idle_time_label = "Max Idle Time";
|
44 |
$R_start_time_label = "Start Time";
|
47 |
$R_start_time_label = "Start Time";
|
45 |
$R_session_time_label = "Online-zeit";
|
48 |
$R_session_time_label = "Online-zeit";
|
46 |
$R_idle_time_label = "Idle Time";
|
49 |
$R_idle_time_label = "Idle Time"; //à traduire
|
47 |
$R_downloaded_label = "Downloaded";
|
50 |
$R_downloaded_label = "Downloaded"; //à traduire
|
48 |
$R_uploaded_label = "Uploaded";
|
51 |
$R_uploaded_label = "Uploaded"; //à traduire
|
49 |
$R_original_url_label = "Original URL";
|
52 |
$R_original_url_label = "Original URL"; //à traduire
|
50 |
$R_not_available = "Not available";
|
53 |
$R_not_available = "Not available"; //à traduire
|
51 |
$R_na = "N/A";
|
54 |
$R_na = "N/A"; //à traduire
|
52 |
$R_error = "error";
|
55 |
$R_error = "error"; //à traduire
|
- |
|
56 |
$R_welcome = "Welcome"; //à traduire
|
53 |
}
|
57 |
}
|
54 |
else if($Language == 'nl'){
|
58 |
else if($Language == 'nl'){
|
55 |
$R_login1 = "Succesvolle authenticatie.";
|
59 |
$R_login1 = "Succesvolle authenticatie.";
|
56 |
$R_login2 = "Dit venster te sluiten onderbreekt uw sessie.";
|
60 |
$R_login2 = "Dit venster te sluiten onderbreekt uw sessie.";
|
57 |
$R_logout = "Slotkoers verbinding";
|
61 |
$R_logout = "Slotkoers verbinding";
|
- |
|
62 |
$R_logout_question = "Are you sure you want to disconnect now?"; //à traduire
|
58 |
$R_loggedout = "Uw sessie is gesloten";
|
63 |
$R_loggedout = "Uw sessie is gesloten";
|
59 |
$R_wait = "Wacht een moment ...";
|
64 |
$R_wait = "Wacht een moment ...";
|
60 |
$R_state_label = "State";
|
65 |
$R_state_label = "State";
|
61 |
$R_session_id_label = "Session ID";
|
66 |
$R_session_id_label = "Session ID";
|
62 |
$R_max_session_time_label = "Max Session Time";
|
67 |
$R_max_session_time_label = "Max Session Time";
|
63 |
$R_max_idle_time_label = "Max Idle Time";
|
68 |
$R_max_idle_time_label = "Max Idle Time";
|
64 |
$R_start_time_label = "Start Time";
|
69 |
$R_start_time_label = "Start Time";
|
65 |
$R_session_time_label = "Online tijd";
|
70 |
$R_session_time_label = "Online tijd";
|
66 |
$R_idle_time_label = "Idle Time";
|
71 |
$R_idle_time_label = "Idle Time"; //à traduire
|
67 |
$R_downloaded_label = "Downloaded";
|
72 |
$R_downloaded_label = "Downloaded"; //à traduire
|
68 |
$R_uploaded_label = "Uploaded";
|
73 |
$R_uploaded_label = "Uploaded"; //à traduire
|
69 |
$R_original_url_label = "Original URL";
|
74 |
$R_original_url_label = "Original URL"; //à traduire
|
70 |
$R_not_available = "Not available";
|
75 |
$R_not_available = "Not available"; //à traduire
|
71 |
$R_na = "N/A";
|
76 |
$R_na = "N/A"; //à traduire
|
72 |
$R_error = "error";
|
77 |
$R_error = "error"; //à traduire
|
- |
|
78 |
$R_welcome = "Welcome"; //à traduire
|
73 |
}
|
79 |
}
|
74 |
else if($Language == 'fr'){
|
80 |
else if($Language == 'fr'){
|
75 |
$R_login1 = "Authentification réussie.";
|
81 |
$R_login1 = "Authentification réussie.";
|
76 |
$R_login2 = "La fermeture de cette fenêtre interrompt votre session.";
|
82 |
$R_login2 = "La fermeture de cette fenêtre interrompt votre session.";
|
77 |
$R_logout = "Fermeture de la session";
|
83 |
$R_logout = "Fermeture de la session";
|
- |
|
84 |
$R_logout_question = "Etes vous sûre de vouloir vous déconnecter?";
|
78 |
$R_loggedout = "Votre session est fermée";
|
85 |
$R_loggedout = "Votre session est fermée";
|
79 |
$R_wait = "Patientez un instant ....";
|
86 |
$R_wait = "Patientez un instant ....";
|
80 |
$R_state_label = "Etat";
|
87 |
$R_state_label = "Etat";
|
81 |
$R_session_id_label = "Session ID";
|
88 |
$R_session_id_label = "Session ID";
|
82 |
$R_max_session_time_label = "Temps de connexion autorisé";
|
89 |
$R_max_session_time_label = "Temps de connexion autorisé";
|
Line 85... |
Line 92... |
85 |
$R_session_time_label = "Durée de connexion";
|
92 |
$R_session_time_label = "Durée de connexion";
|
86 |
$R_idle_time_label = "Inactivité";
|
93 |
$R_idle_time_label = "Inactivité";
|
87 |
$R_downloaded_label = "Données téléchargées";
|
94 |
$R_downloaded_label = "Données téléchargées";
|
88 |
$R_uploaded_label = "Données envoyées";
|
95 |
$R_uploaded_label = "Données envoyées";
|
89 |
$R_original_url_label = "URL demandé";
|
96 |
$R_original_url_label = "URL demandé";
|
90 |
$R_not_available = "Not available";
|
97 |
$R_not_available = "Not available"; //à traduire
|
91 |
$R_na = "N/A";
|
98 |
$R_na = "N/A"; //à traduire
|
92 |
$R_error = "erreur";
|
99 |
$R_error = "erreur";
|
- |
|
100 |
$R_welcome = "Bienvenue";
|
93 |
}
|
101 |
}
|
94 |
else {
|
102 |
else {
|
95 |
$R_login1 = "Successful authentication.";
|
103 |
$R_login1 = "Successful authentication.";
|
96 |
$R_login2 = "Closing this window interrupts your session.";
|
104 |
$R_login2 = "Closing this window interrupts your session.";
|
97 |
$R_logout = "Closing connection";
|
105 |
$R_logout = "Closing connection";
|
- |
|
106 |
$R_logout_question = "Are you sure you want to disconnect now?";
|
98 |
$R_loggedout = "Your session is closed";
|
107 |
$R_loggedout = "Your session is closed";
|
99 |
$R_wait = "Please wait a moment ...";
|
108 |
$R_wait = "Please wait a moment ...";
|
100 |
$R_state_label = "State";
|
109 |
$R_state_label = "State";
|
101 |
$R_session_id_label = "Session ID";
|
110 |
$R_session_id_label = "Session ID";
|
102 |
$R_max_session_time_label = "Max Session Time";
|
111 |
$R_max_session_time_label = "Max Session Time";
|
Line 108... |
Line 117... |
108 |
$R_uploaded_label = "Uploaded";
|
117 |
$R_uploaded_label = "Uploaded";
|
109 |
$R_original_url_label = "Original URL";
|
118 |
$R_original_url_label = "Original URL";
|
110 |
$R_not_available = "Not available";
|
119 |
$R_not_available = "Not available";
|
111 |
$R_na = "N/A";
|
120 |
$R_na = "N/A";
|
112 |
$R_error = "error";
|
121 |
$R_error = "error";
|
- |
|
122 |
$R_welcome = "Welcome";
|
113 |
}
|
123 |
}
|
114 |
?>
|
124 |
?>
|
115 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
125 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
116 |
<html lang="fr">
|
126 |
<html lang="fr">
|
117 |
<!-- written by steweb57 -->
|
127 |
<!-- written by steweb57 -->
|
Line 122... |
Line 132... |
122 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
132 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
123 |
<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
|
133 |
<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
|
124 |
<script type="text/javascript" src="./js/statusControler.js"></script>
|
134 |
<script type="text/javascript" src="./js/statusControler.js"></script>
|
125 |
<link type="text/css" href="./css/status.css" rel="stylesheet">
|
135 |
<link type="text/css" href="./css/status.css" rel="stylesheet">
|
126 |
<script language="JavaScript">
|
136 |
<script language="JavaScript">
|
127 |
var blur = 0;
|
- |
|
128 |
var starttime = new Date();
|
- |
|
129 |
var startclock = starttime.getTime();
|
- |
|
130 |
var mytimeleft = 0;
|
- |
|
131 |
function closePopup(){
|
137 |
function closePopup(){
|
132 |
this.focus();
|
138 |
this.focus();
|
133 |
self.opener=this;
|
139 |
self.opener=this;
|
134 |
self.close();
|
140 |
self.close();
|
135 |
}
|
141 |
}
|
- |
|
142 |
|
- |
|
143 |
var isloggedout = false;
|
- |
|
144 |
|
136 |
function alcasarLogoff(){
|
145 |
function alcasarLogoff(){
|
- |
|
146 |
//pb sous Safari et Opera (OnbeforeUnload)
|
- |
|
147 |
if (isloggedout === false){
|
137 |
chilliClock.stop();
|
148 |
chilliClock.stop();
|
138 |
chilliController.logoff();
|
149 |
chilliController.logoff();
|
139 |
//showWaitPage(5000);
|
150 |
showWaitPage(5000);
|
- |
|
151 |
alert("<?php echo $R_loggedout; ?>");
|
- |
|
152 |
}
|
- |
|
153 |
isloggedout = true;
|
140 |
}
|
154 |
}
|
141 |
function logout() {
|
155 |
function logout() {
|
142 |
alcasarLogoff();
|
156 |
alcasarLogoff();
|
143 |
window.setTimeout("closePopup()",1000);
|
157 |
window.setTimeout("closePopup()",1000);
|
144 |
}
|
158 |
}
|
Line 146... |
Line 160... |
146 |
if (confirm(msg)) {
|
160 |
if (confirm(msg)) {
|
147 |
logout();
|
161 |
logout();
|
148 |
}
|
162 |
}
|
149 |
return false;
|
163 |
return false;
|
150 |
}
|
164 |
}
|
151 |
function logoutWithAlert(msg) {//"Are you sure you want to disconnect now?"
|
- |
|
152 |
alert(msg);
|
- |
|
153 |
logout();
|
- |
|
154 |
}
|
- |
|
155 |
function doTime() {
|
- |
|
156 |
window.setTimeout( "doTime()", 1000 );
|
- |
|
157 |
t = new Date();
|
- |
|
158 |
time = Math.round((t.getTime() - starttime.getTime())/1000);
|
- |
|
159 |
if (mytimeleft) {
|
- |
|
160 |
time = mytimeleft - time;
|
- |
|
161 |
if (time <= 0) {
|
- |
|
162 |
alert("Votre session est terminée");
|
- |
|
163 |
}
|
- |
|
164 |
}
|
- |
|
165 |
if (time < 0) time = 0;
|
- |
|
166 |
hours = (time - (time % 3600)) / 3600;
|
- |
|
167 |
time = time - (hours * 3600);
|
- |
|
168 |
mins = (time - (time % 60)) / 60;
|
- |
|
169 |
secs = time - (mins * 60);
|
- |
|
170 |
if (hours < 10) hours = "0" + hours;
|
- |
|
171 |
if (mins < 10) mins = "0" + mins;
|
- |
|
172 |
if (secs < 10) secs = "0" + secs;
|
- |
|
173 |
title = "$R_online_time : " + hours + ":" + mins + ":" + secs;
|
- |
|
174 |
if (mytimeleft) {
|
- |
|
175 |
title = "$R_remaining_time : " + hours + ":" + mins + ":" + secs;
|
- |
|
176 |
}
|
- |
|
177 |
if(document.all || document.getElementById){
|
- |
|
178 |
document.title = title;
|
- |
|
179 |
}
|
- |
|
180 |
else {
|
- |
|
181 |
self.status = title;
|
- |
|
182 |
}
|
- |
|
183 |
}
|
- |
|
184 |
</script>
|
165 |
</script>
|
185 |
</head>
|
166 |
</head>
|
186 |
<body OnbeforeUnload="javascript:alcasarLogoff();">
|
167 |
<body OnbeforeUnload="javascript:alcasarLogoff();">
|
187 |
<div id="Chilli">
|
168 |
<div id="Chilli">
|
188 |
<div id="locationName"></div>
|
169 |
<div id="locationName"></div>
|
Line 200... |
Line 181... |
200 |
<div id="statusPage" class="c1">
|
181 |
<div id="statusPage" class="c1">
|
201 |
<table border="0" id="statusTable"><!-- style="padding-top:4px;font-size:70%" -->
|
182 |
<table border="0" id="statusTable"><!-- style="padding-top:4px;font-size:70%" -->
|
202 |
<tr>
|
183 |
<tr>
|
203 |
<td rowspan="2" valign="top"><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
|
184 |
<td rowspan="2" valign="top"><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
|
204 |
<td>
|
185 |
<td>
|
205 |
<p class="text_auth">Bienvenue <span id="userName"></span>.</p>
|
186 |
<p class="text_auth"><?php echo $R_welcome; ?> <span id="userName"></span>.</p>
|
206 |
<p class="text_auth"><?php echo $R_login1; ?></p>
|
187 |
<p class="text_auth"><?php echo $R_login1; ?></p>
|
207 |
<hr>
|
188 |
<hr>
|
208 |
<?php echo $R_login2; ?></td>
|
189 |
<?php echo $R_login2; ?></td>
|
209 |
</tr>
|
190 |
</tr>
|
210 |
<tr>
|
191 |
<tr>
|
211 |
<td align="center"><br>
|
192 |
<td align="center"><br>
|
212 |
<a href="#" onclick="return logoutWithConfirmation('Are you sure you want to disconnect now?');" class="lien_deco"><?php echo $R_logout; ?></a><br>
|
193 |
<a href="#" onclick="return logoutWithConfirmation('<?php echo $R_logout_question;?>');" class="lien_deco"><?php echo $R_logout; ?></a><br>
|
213 |
<br></td>
|
194 |
<br></td>
|
214 |
</tr>
|
195 |
</tr>
|
215 |
<!--tr id="connectRow">
|
196 |
<!--tr id="connectRow">
|
216 |
<td id="statusMessageLabel" class="chilliLabel"><strong><?php echo $R_state_label; ?></strong></td>
|
197 |
<td id="statusMessageLabel" class="chilliLabel"><strong><?php echo $R_state_label; ?></strong></td>
|
217 |
<td id="statusMessage" class="chilliValue">Connected</td>
|
198 |
<td id="statusMessage" class="chilliValue">Connected</td>
|
Line 257... |
Line 238... |
257 |
<div id="waitPage">
|
238 |
<div id="waitPage">
|
258 |
<table id="waitTable">
|
239 |
<table id="waitTable">
|
259 |
<tr>
|
240 |
<tr>
|
260 |
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
|
241 |
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
|
261 |
<td>
|
242 |
<td>
|
262 |
<p class="text_auth"><img src="./images/wait.gif" width="16" height="16" class="wait" alt="wait..."><?php echo $R_wait; ?></p>
|
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>
|
263 |
</td>
|
244 |
</td>
|
264 |
</tr>
|
245 |
</tr>
|
265 |
</table>
|
246 |
</table>
|
266 |
</div>
|
247 |
</div>
|
267 |
<div id="errorPage">
|
248 |
<div id="errorPage">
|