Subversion Repositories ALCASAR

Rev

Rev 1287 | Rev 1749 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
1280 richard 1
<?php
1748 richard 2
/*******************
3
* READ CONF FILE   *
4
********************/
5
$CONF_FILE="/usr/local/etc/alcasar.conf";
6
if (!file_exists($CONF_FILE)){
7
	exit("Requested file ".$CONF_FILE." isn't present");}
8
if (!is_readable($CONF_FILE)){
9
	exit("Can't read the file ".$CONF_FILE);}
10
$ouvre=fopen($CONF_FILE,"r");
11
if ($ouvre){
12
	while (!feof ($ouvre))
13
	{
14
		$tampon = fgets($ouvre, 4096);
15
		if (strpos($tampon,"=")!==false){
16
			$tmp = explode("=",$tampon);
17
			$conf[$tmp[0]] = $tmp[1];
18
		}
19
	}
20
	fclose($ouvre);
21
}
1280 richard 22
//Langue du Ticket d'impression en fonction de la liste déroulante
23
switch ($langue_imp){
24
	case 'fr':
1281 richard 25
		$l_title_imp = "TICKET D'ACCÈS";
1280 richard 26
		$l_login_imp = "Utilisateur :";
27
		$l_password_imp = "Mot de passe :";
28
		$l_max_all_session_imp="Période autorisée :";
29
		$l_session_timeout_imp="Durée d'une session :";
30
		$l_max_daily_session_imp="Durée quotidienne :";
31
		$l_max_monthly_session_imp ="Durée mensuelle :";
32
		$l_expiration_imp="Date d'expiration :";
33
		$l_unlimited="Illimitée";
34
		$l_without="Aucune";
35
		$l_duplicate="Duplicata";
1748 richard 36
		$l_explain = "Entrer 'http://".$conf["HOSTNAME"].$conf["DOMAIN"]."' dans votre navigateur
37
			pour gérer votre compte (mot de passe, certificat, etc.).
1287 richard 38
			Entrer 'http://logout' dans votre navigateur pour vous déconnecter.";
1280 richard 39
		$l_footer_imp = "Généré par ALCASAR";
40
	break;
41
	case 'de':
42
		$l_title_imp = "ZUGANG TICKET";
43
		$l_login_imp = "Login :";
44
		$l_password_imp = "Passwort :";
45
		$l_max_all_session_imp="Autorisierte Zeitraum :";
46
		$l_session_timeout_imp="Dauer der Sitzung :";
47
		$l_max_daily_session_imp="Stunden t&auml;glich :";
48
		$l_max_monthly_session_imp ="monatlich Dauer :";
49
		$l_expiration_imp="Verfallsdatum :";
50
		$l_unlimited="Unbegrentz";
51
		$l_without="Ohne";
52
		$l_duplicate="Duplikat";
1287 richard 53
		$l_explain = "Geben Sie 'http://alcasar' in Ihrem Browser, um Ihr Konto zu verwalten (kennwort, zertifikat, etc.).
54
			Geben Sie 'http://logout' in Ihrem Browser zu trennen.
1280 richard 55
			";
56
		$l_footer_imp = "Präsentiert von ALCASAR";
57
	break;
58
	case 'nl':
59
		$l_title_imp = "TOERANG TICKET";
60
		$l_login_imp = "Gebruikers :";
61
		$l_password_imp = "Wachtwoord :";
62
		$l_max_all_session_imp="toegestane duur :";
63
		$l_session_timeout_imp="Sessieduur :";
64
		$l_max_daily_session_imp="Dagelijkse uren :";
65
		$l_max_monthly_session_imp ="Maandelijkse duur :";
66
		$l_expiration_imp="Vervaldatum :";
67
		$l_unlimited="Onbeperkte";
68
		$l_without="Ohne";
69
		$l_duplicate="Duplicaat";
1287 richard 70
		$l_explain = "Voer 'http://alcasar' in uw browser om uw account te beheren (wachtwoord, certificaat, etc.).
71
			  Voer 'http://logout' in uw browser de verbinding te verbreken.";
1280 richard 72
		$l_footer_imp = "Powered by ALCASAR";
73
	break;
74
	case 'es':
75
		$l_title_imp = "TURISTICA ACCESO";
76
		$l_login_imp = "Usuario :";
77
		$l_password_imp = "Contraseña :";
78
		$l_max_all_session_imp="periodo autorizado :";
79
		$l_session_timeout_imp="Duración de Sesión :";
80
		$l_max_daily_session_imp="Duración diario :";
81
		$l_max_monthly_session_imp ="Duraci&oacute;n mensual :";
82
		$l_expiration_imp="Fecha de caducidad :";
83
		$l_unlimited="Ilimitado";
84
		$l_without="Sin";
85
		$l_duplicate="Duplicado";
1287 richard 86
		$l_explain = "Escribe 'http://alcasar' de su navegador para administrar su cuenta (contraseña, certificado, etc.).
87
			Escribe 'http://logout' de su navegador para desconectar.";
1280 richard 88
		$l_footer_imp = "Desarrollado por ALCASAR";
89
	break;
90
	case 'it':
91
		$l_title_imp = "TICKET D'ACCESSO";
92
		$l_login_imp = "Utenti :";
93
		$l_password_imp = "Password :";
94
		$l_max_all_session_imp="periodo autorizzato :";
95
		$l_session_timeout_imp="Durata della sessione :";
96
		$l_max_daily_session_imp="Durata quotidiano :";
97
		$l_max_monthly_session_imp ="Durata mensile :";
98
		$l_expiration_imp="Data di scadenza :";
99
		$l_unlimited="Illimitato";
100
		$l_without="Senza";
101
		$l_duplicate="Duplicato";
1287 richard 102
		$l_explain = "Inserisci 'http://alcasar' nel tuo browser per gestire il tuo account (password, certificato, ecc).
103
			Inserisci 'http://logout' nel tuo browser per disconnettersi.";
1280 richard 104
		$l_footer_imp = "Powered by ALCASAR";
105
	break;
106
	case 'pt':
107
		$l_title_imp = "BILHETE DE ACESSO";
108
		$l_login_imp = "Usuário :";
109
		$l_password_imp = "Senha :";
110
		$l_max_all_session_imp="Período autorizado :";
111
		$l_session_timeout_imp="duração de uma sessão :";
112
		$l_max_daily_session_imp="Duração diária :";
113
		$l_max_monthly_session_imp ="Duração Mensal :";
114
		$l_expiration_imp="Data de validade :";
115
		$l_unlimited="Ilimitado";
116
		$l_without="Sem";
117
		$l_duplicate="Duplicado";
1287 richard 118
		$l_explain = "Digite 'http://alcasar' no seu navegador para gerenciar sua conta (senha, certidão, etc).
119
			Digite 'http://logout' no seu navegador para desligar.";
1280 richard 120
		$l_footer_imp = "Desenvolvido por ALCASAR";
121
	break;
122
	default:
123
		$l_title_imp = "ACCESS TICKET";
124
		$l_login_imp = "Login :";
125
		$l_password_imp = "Password :";
126
		$l_max_all_session_imp="Authorized period :";
127
		$l_session_timeout_imp="Session timeout :";
128
		$l_max_daily_session_imp="Max daily session :";
129
		$l_max_monthly_session_imp ="Max monthly session :";
130
		$l_expiration_imp="Expiration date :";
131
		$l_unlimited="Unlimited";
132
		$l_without="Without";
133
		$l_duplicate="Duplicate";
1287 richard 134
		$l_explain = "Enter 'http://alcasar' in your browser to manage your account (password, certificate, etc.).
135
			Enter 'http://logout' in your browser to disconnect.";
1280 richard 136
		$l_footer_imp = "Powered by ALCASAR";
137
	break;
138
	}
1287 richard 139
?>