Subversion Repositories ALCASAR

Rev

Rev 1277 | Rev 1325 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1277 Rev 1280
Line 1... Line 1...
1
<?php
1
<?php
2
/*
2
 
3
Fichier de gestion des langues
3
//Fichier de gestion des langues
4
Pour l'utilisation de ce fichier mettre une variable
-
 
5
$origine égal au nom du fichier php contenant l'include sans l'extension
-
 
6
avant l'include du fichier langues.php
-
 
7
*/
-
 
8
// Choix de la langue
4
// Choix de la langue
9
$Language = 'en';
5
$Language = 'en';
10
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
6
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
11
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
7
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
12
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
8
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
13
//-------------------
-
 
14
// En fonction de la langue et de la page d'appel remplissage des variables
9
// En fonction de la langue et de la page d'appel remplissage des variables
15
switch ($Language){
10
switch ($Language){
16
	case 'fr':
11
	case 'fr':
17
	//Français
12
	//Français
18
		$l_monday="lundi"; $l_tuesday="mardi"; $l_wednesday="mercredi"; $l_thursday="jeudi"; $l_friday="vendredi"; $l_saturday="samedi"; $l_sunday="dimanche";
13
		$l_monday="lundi"; $l_tuesday="mardi"; $l_wednesday="mercredi"; $l_thursday="jeudi"; $l_friday="vendredi"; $l_saturday="samedi"; $l_sunday="dimanche";
Line 211... Line 206...
211
		$l_createTicketsMSG = "Enter the number of users to create";
206
		$l_createTicketsMSG = "Enter the number of users to create";
212
		$l_spoofing = "MAC address spoofed (Watchdog)";
207
		$l_spoofing = "MAC address spoofed (Watchdog)";
213
		$l_virus = "Virus blocked (HAVP)";
208
		$l_virus = "Virus blocked (HAVP)";
214
		$l_fail2ban = "IP address blocked (Fail2Ban)";
209
		$l_fail2ban = "IP address blocked (Fail2Ban)";
215
	break;
210
	break;
216
 
-
 
217
 
-
 
218
 
-
 
219
	}
-
 
220
//Langue du Ticket d'impression en fonction de la liste déroulante
-
 
221
//$langue_imp=$_POST["langue_imp"];
-
 
222
switch ($langue_imp){
-
 
223
	case 'fr':
-
 
224
		$l_title_imp = "TICKET D'ACC&Egrave;S";
-
 
225
		$l_login_imp = "Utilisateur :";
-
 
226
		$l_password_imp = "Mot de passe :";
-
 
227
		$l_max_all_session_imp="P&eacute;riode autoris&eacute;e :";
-
 
228
		$l_session_timeout_imp="Dur&eacute;e d'une session :";
-
 
229
		$l_max_daily_session_imp="Dur&eacute;e quotidienne :";
-
 
230
		$l_max_monthly_session_imp ="Dur&eacute;e mensuelle :";
-
 
231
		$l_expiration_imp="Date d'expiration :";
-
 
232
		$v_illimit="Illimit&eacute;e";
-
 
233
		$v_without="Aucune";
-
 
234
	break;
-
 
235
	case 'de':
-
 
236
		$l_title_imp = "ZUGANG TICKET";
-
 
237
		$l_login_imp = "Login :";
-
 
238
		$l_password_imp = "Passwort :";
-
 
239
		$l_max_all_session_imp="Autorisierte Zeitraum :";
-
 
240
		$l_session_timeout_imp="Dauer der Sitzung :";
-
 
241
		$l_max_daily_session_imp="Stunden t&auml;glich :";
-
 
242
		$l_max_monthly_session_imp ="monatlich Dauer :";
-
 
243
		$l_expiration_imp="Verfallsdatum :";
-
 
244
		$v_illimit="Unbegrentz";
-
 
245
		$v_without="Ohne";
-
 
246
	break;
-
 
247
	case 'nl':
-
 
248
		$l_title_imp = "TOERANG TICKET";
-
 
249
		$l_login_imp = "Gebruikers :";
-
 
250
		$l_password_imp = "Wachtwoord :";
-
 
251
		$l_max_all_session_imp="toegestane duur :";
-
 
252
		$l_session_timeout_imp="Sessieduur :";
-
 
253
		$l_max_daily_session_imp="Dagelijkse uren :";
-
 
254
		$l_max_monthly_session_imp ="Maandelijkse duur :";
-
 
255
		$l_expiration_imp="Vervaldatum :";
-
 
256
		$v_illimit="Onbeperkte";
-
 
257
		$v_without="Ohne";
-
 
258
	break;
-
 
259
	case 'es':
-
 
260
		$l_title_imp = "TURISTICA ACCESO";
-
 
261
		$l_login_imp = "Usuario :";
-
 
262
		$l_password_imp = "Contraseña :";
-
 
263
		$l_max_all_session_imp="periodo autorizado :";
-
 
264
		$l_session_timeout_imp="Duración de Sesión :";
-
 
265
		$l_max_daily_session_imp="Duración diario :";
-
 
266
		$l_max_monthly_session_imp ="Duraci&oacute;n mensual :";
-
 
267
		$l_expiration_imp="Fecha de caducidad :";
-
 
268
		$v_illimit="Ilimitado";
-
 
269
		$v_without="Sin";
-
 
270
	break;
-
 
271
	case 'it':
-
 
272
		$l_title_imp = "TICKET D'ACCESSO";
-
 
273
		$l_login_imp = "Utenti :";
-
 
274
		$l_password_imp = "Password :";
-
 
275
		$l_max_all_session_imp="periodo autorizzato :";
-
 
276
		$l_session_timeout_imp="Durata della sessione :";
-
 
277
		$l_max_daily_session_imp="Durata quotidiano :";
-
 
278
		$l_max_monthly_session_imp ="Durata mensile :";
-
 
279
		$l_expiration_imp="Data di scadenza :";
-
 
280
		$v_illimit="Illimitato";
-
 
281
		$v_without="Senza";
-
 
282
	break;
-
 
283
	case 'pt':
-
 
284
		$l_title_imp = "BILHETE DE ACESSO";
-
 
285
		$l_login_imp = "Usuário :";
-
 
286
		$l_password_imp = "Senha :";
-
 
287
		$l_max_all_session_imp="Período autorizado :";
-
 
288
		$l_session_timeout_imp="duração de uma sessão :";
-
 
289
		$l_max_daily_session_imp="Duração diária :";
-
 
290
		$l_max_monthly_session_imp ="Duração Mensal :";
-
 
291
		$l_expiration_imp="Data de validade :";
-
 
292
		$v_illimit="Ilimitado";
-
 
293
		$v_without="Não";
-
 
294
	break;
-
 
295
	default:
-
 
296
		$l_title_imp = "ACCESS TICKET";
-
 
297
		$l_login_imp = "Login :";
-
 
298
		$l_password_imp = "Password :";
-
 
299
		$l_max_all_session_imp="Authorized period :";
-
 
300
		$l_session_timeout_imp="Session timeout :";
-
 
301
		$l_max_daily_session_imp="Max daily session :";
-
 
302
		$l_max_monthly_session_imp ="Max monthly session :";
-
 
303
		$l_expiration_imp="Expiration date :";
-
 
304
		$v_illimit="Unlimited";
-
 
305
		$v_without="Without";
-
 
306
	break;
-
 
307
	}
211
	}
308
?>
212
?>